Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-21-2005, 03:22 PM   #1
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90

Rep: Reputation: 15
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 ( ) 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:
(Internal IP:

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.

/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 promisc up
/sbin/ifconfig eth1 promisc up

/sbin/ifconfig br0 netmask broadcast

/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

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

Edit: Formatting

Last edited by Dewar; 01-21-2005 at 03:25 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
openvpn is making me use windows!!! xnomad Linux - Networking 2 10-28-2005 06:34 AM
[openvpn] routing at server side Zym0tiC Linux - Networking 2 10-06-2005 03:40 PM
setting up bridged connection with guest OS in VMware jogurt666 Linux - Software 0 10-02-2005 07:53 AM
Connection Windows to a Linux server Skaan Linux - Networking 3 06-11-2005 03:16 PM
Share an internet connection betwen a linux server and a windows client GiGA Linux - Software 4 08-21-2002 09:22 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration