Client config:
### Client configuration file for OpenVPN
# Specify that this is a client
client
# Bridge device setting
dev tap
# Host name and port for the server (default port is 1194)
# note: replace with the correct values your server set up
remote <my-host-name-hidden> 1194
# Client does not need to bind to a specific local port
nobind
# Keep trying to resolve the host name of OpenVPN server.
## The windows GUI seems to dislike the following rule.
##You may need to comment it out.
resolv-retry infinite
# Preserve state across restarts
persist-key
persist-tun
# SSL/TLS parameters - files created previously
ca ca.crt
cert scott.crt
key scott.key
# Since we specified the tls-auth for server, we need it for the client
# note: 0 = server, 1 = client
tls-auth ta.key 1
# Specify same cipher as server
cipher BF-CBC
# Use compression
comp-lzo
# Log verbosity (to help if there are problems)
verb 3
No firewall on the server, just straight Ubuntu 11.04
When I stopped OpenVPN to run those commands I got this:
root@OpenVPN:~# /etc/init.d/openvpn stop
* Stopping virtual private network daemon(s)... * Stopping VPN 'server' [ OK ]
root@OpenVPN:~# openvpn --mktun --dev tap0
Tue Aug 30 09:05:28 2011 TUN/TAP device tap0 opened
Tue Aug 30 09:05:28 2011 Persist state set to: ON
root@OpenVPN:~# brctl addbr br0
device br0 already exists; can't create bridge with the same name
root@OpenVPN:~# brctl addif br0 eth0
device eth0 is already a member of a bridge; can't enslave it to bridge br0.
root@OpenVPN:~# brctl addif br0 tap0
root@OpenVPN:~# ifconfig eth0 promisc 0.0.0.0 up
root@OpenVPN:~# ifconfig tap0 promisc 0.0.0.0 up
root@OpenVPN:~# ifconfig br0 192.168.1.80 netmask 255.255.255.0 broadcast 192.168.1.255
root@OpenVPN:~# service openvpn start
* Starting virtual private network daemon(s)... * Autostarting VPN 'server' device tap0 is already a member of a bridge; can't enslave it to bridge br0.
[fail]