[ovs-discuss] OVS + OpenVPN configuration Problem

Priyanki Vashi vashi.priyanki at gmail.com
Mon Feb 10 16:16:42 UTC 2014


Hi There ,

I am new to openvswitch and also new to networking in general. I am in the
process of setting up a VPN tunnel with OVS + OpenVPN.

OVS version, I am running is 2.0.0 and OpenVPN is 2.2.1. I have
successfully created certificate for server and client. Just to understand
basic concept I tried to setup a tunnel without bridging mode and it worked
fine meaning that I successfully able to ping VPN Client and VPN server.

Now when I am trying to setup the tunnel in a bridged mode (using OVS
bridges), I am phasing problems.
In this configuration, I am able to successfully create TAP interfaces and
they are also added in my bridge but I still can't ping VPN server and
Client with these newly created TAP interfaces.

After reading some of the already existing post on this topic, I understand
that OpenVswitch + OpenVPN could be configured successfully but I could not
get much configuration info from this post. (
http://openvswitch.org/pipermail/discuss/2010-July/004135.html)

Also, there is a problem that these newly created TAP interfaces are not
shown as a data path in the output of ovs-dbctl show but I am not sure what
could be the problem.

I am not sure if my scripts (up and down), which creates and configures TAP
interfaces are missing something so I am sharing my up/down script as well
as Server.conf file so that someone, who might have done this successfully
can quickly have a look and help me.

Thank you in advance but I am hoping to get some help on my problem.

Best Regards,
Priyanki.

Up script
#!/bin/bash


# Define Bridge Interfaces
BR=tipc-br
TAPDEV=tap11
ifconfig $TAPDEV 0.0.0.0 promisc up
ovs-vsctl add-port $BR $TAPDEV -- set interface $TAPDEV type=internal
ifconfig $TAPDEV 192.168.169.110 netmask 255.255.255.0
ifconfig $TAPDEV txqueuelen 5000
ovs-vsctl show



Down script
#!/bin/bash

# Define Bridge Interfaces
BR=tipc-br
TAPDEV=tap11

/sbin/ifconfig $TAPDEV 0.0.0.0 down
ovs-vsctl del-port $BR $TAPDEV
ovs-vsctl show
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140210/90671324/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server.conf
Type: application/octet-stream
Size: 10512 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140210/90671324/attachment-0002.obj>


More information about the discuss mailing list