Enabling OpenVPN server on multiple interfaces?
Jeff Shanholtz <jeffsubs <at> shanholtz.com>
2005-10-01 22:19:12 GMT
I currently have OpenVPN successfully working on my external interface
(internet). I want it to also serve my wireless network which is on its own
network (i.e. I have 3 nic's - one for local network, one for internet, one
for wireless). In other words, I want wireless clients to be firewalled out
of my local network until they vpn in.
So I want OpenVPN to serve both my external interface and my wireless
network. However, when I try to connect to the vpn over the wireless
network, it fails to connect with this error: "TCP/UDP: Socket bind failed
on local address [undef]:1194: Address already in use (WSAEADDRINUSE)". I am
using a static configuration (this is for personal use only for now) and I
know there isn't already another vpn connection established.
I'm quite certain my iptables firewall is properly configured. Everything
works fine across the internet so I essentially duplicated all my external
interface rules for my wireless. I can get a dhcp address and ping back and
forth on my wireless network (I mean before attempting to connect to the
vpn). And bringing down my firewall makes no difference either.
It almost seems like the server is only binding to the external interface,
but looking at the man page it appears that by default it binds to all
interfaces, so I'm not sure what the problem could be. The only difference
between my working "across the internet" client conf file and the one I'm
using for my wireless connection is the remote address setting.
Anyway, here's my server conf file, followed by my client conf file. If
anyone can shed some light on this problem I'd be grateful.
ifconfig 10.8.0.1 10.8.0.2
keepalive 10 60
ifconfig 10.8.0.2 10.8.0.1
keepalive 10 60
route 192.168.0.0 255.255.255.0
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl