Page 1 of 1

New user bridge help

Posted: Tue Jun 07, 2011 10:05 pm
by bilbonvidia
Hello, I have been looking at the guides on the open dns website and am trying to set up a bridge connection. I have created the bridge on my windows 7 machine and assigned a static address to the bridge. I can get connected to my vpn server windows 7 machine and the tap adapter on my windows 7 client gets an ip address but I cannot ping anything on my lan. I was wondering if I had missed anything. (firewalls disabled) heres my files:

server:
port 443
proto tcp
dev tap
dev-node tap-bridge
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server-bridge 192.168.0.3 255.255.255.0 192.168.0.100 192.168.0.110
client-to-client
keepalive 10 120
cipher AES-256-CBC
persist-key
persist-tun
verb 3
mute 20


client:
client
dev tap
proto tcp
remote mydyndnsaddy 443
resolv-retry infinite
nobind
tls-client
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert client1.crt
key client1.key
cipher AES-256-CBC
comp-lzo
verb 3

Re: New user bridge help

Posted: Wed Jun 08, 2011 7:09 am
by maikcat
hi there,

just checking..

are you using openvpn ver 2.1 and above?
did you rename your bridge connection to tap-bridge ?
192.168.0.3 is the openvpn servers ip?
did you enabled ip forwarding to your server?

Michael.

Re: New user bridge help

Posted: Wed Jun 08, 2011 10:30 am
by bilbonvidia
Hi Mike Thanks for responding. I am using 2.1 and above and yes the bridge connection is tap-bridge which had originally caught me out. Yes 192.168.0.3 is tthe servers ip.

I dont think that I have enable ip forwarding, how is that done? Is that still needed when bridging?

Re: New user bridge help

Posted: Wed Jun 08, 2011 10:44 am
by janjust
on windows, IP forwarding is enabled using a registry key

Code: Select all

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Value: IPEnableRouter
Type: REG_DWORD
Data: 0x00000001 (1)
reboot the machine after enabling IP forwarding.

Re: New user bridge help

Posted: Wed Jun 08, 2011 11:20 am
by bilbonvidia
Thank you, is this the for the VPN server?

Re: New user bridge help

Posted: Wed Jun 08, 2011 12:32 pm
by janjust
yes , this needs to be done on the machine running the bridge; I hope that is your openvpn server.

Re: New user bridge help

Posted: Wed Jun 08, 2011 4:34 pm
by bilbonvidia
Thanks, it worked. :)

Re: New user bridge help

Posted: Thu Jun 09, 2011 7:31 am
by maikcat
ok then

Closing topic.

Michael