LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-21-2005, 03:22 PM   #1
Dewar
Member
 
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 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

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


Reply


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


All times are GMT -5. The time now is 06:07 PM.

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