LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   OpenVPN Bridged Connection. Linux Server to Windows XP (https://www.linuxquestions.org/questions/linux-networking-3/openvpn-bridged-connection-linux-server-to-windows-xp-280611/)

Dewar 01-21-2005 03:22 PM

OpenVPN Bridged Connection. Linux Server to Windows XP
 
I have managed to set up a routed connection between two Linux firewalls using OpenVPN in the past, but now I have a more difficult problem. I have used the bridging FAQ at openvpn.net ( http://openvpn.net/bridge.html ) to get part of the way, but my topology is a bit different than the one displayed there. Here is what I've got....

Single Windows XP Remote
(External IP: DHCP)

|
connecting to
|

Linux Server
(External IP: xxx.xxx.xxx.xxx)
(Internal IP: 192.168.0.1)

I think I've got a pretty good grasp on how to set up the linux server (scripts are attached) but I'm not sure exactly what to do on the windows end since the XP machine only has one IP (it's external ip) instead of two like the examples given.

Here's the script on the Linux machine (firewall rules have been omitted,) please correct it if I've done anything wrong, and advise exactly how to setup the OpenVPN on the XP remote.

Code:

/sbin/modprobe tun
/sbin/modprobe bridge

/usr/sbin/openvpn --mktun --dev tap0

/usr/sbin/brctl addbr br0
/usr/sbin/brctl addif br0 tap0
/usr/sbin/brctl addif br0 eth1

/sbin/ifconfig tap0 0.0.0.0 promisc up
/sbin/ifconfig eth1 0.0.0.0 promisc up

/sbin/ifconfig br0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255

/usr/sbin/openvpn --tun-mtu 1500 --tun-mtu-extra 64 --dev tap0 \
                  --secret /home/dharwell/openvpn-1.6.0/key \
                  --ping 40  --float --comp-lzo --daemon --port 6000

Thanks in Advance
-Dewar

PS: Note, this connection must be bridged so that windows networking works properly.

Edit: Formatting


All times are GMT -5. The time now is 10:35 AM.