LinuxQuestions.org
Review your favorite Linux distribution.
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 12-27-2004, 06:18 AM   #1
tr00st
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 9.2 (for server) / Suse 9.1 (for desktop)
Posts: 2

Rep: Reputation: 0
Angry Installed OpenVPN, Partially Works


I've been trying to get two LANs connected via a VPN (diagram is available, but I can't post a URL), with a pair of netgear routers providing the internet connections. For reference, the two LANs are:
a) 192.168.0.x (255.255.255.0) (router is 192.168.0.1, linux box is 192.168.0.2)
b) 192.168.3.x (255.255.255.0) (router is 192.168.3.1, linux box is 192.168.3.2)
So far, I have been able to install openVPN and get it working, so much as the two linux boxes will connect using the VPN and are able to exchange data with each other, however they cannot connect to other machines on each other's networks (eg: 192.168.0.2 cannot connect to 192.168.3.3) and the other machines cannot connect over the VPN (192.168.0.3 cannot connect to 192.168.3.x). I believe this may be something to do with the routing, but I'm not completely sure. Any help would be appreciated.

Thanks in advance,

Trust.
 
Old 12-27-2004, 02:26 PM   #2
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Rep: Reputation: 15
it might help if you post the routing from these 2 machines..
the command "ip route show" would help..
 
Old 12-27-2004, 02:36 PM   #3
tr00st
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 9.2 (for server) / Suse 9.1 (for desktop)
Posts: 2

Original Poster
Rep: Reputation: 0
Ok, I've run "ip route show" and get:
Code:
0.0.0.0 via 192.168.0.1 dev eth0
192.168.3.0/24 via 192.168.3.2 dev tun0
192.168.0.0/24 dev eth0  scope link
127.0.0.0/8 dev lo  scope link
default via 192.168.0.1 dev eth0
 
Old 12-27-2004, 02:40 PM   #4
stoffell
Member
 
Registered: Apr 2003
Location: belgium
Distribution: debian
Posts: 72

Rep: Reputation: 15
the routing table off the 2 is necessary.

If you want to connect subnet 192.168.0.x with 192.168.3.x you could use the ip 10.1.1.1 and 10.1.1.2 for the tunnel devices. (tun0 on the firewalls)

Check the howto (on openvpn.sf.net) for examples. The tunX device needs separate ip adresses. Unless you are using bridging but that is not needed in this situation.

For a firewall supporting OpenVPN very good, check www.shorewall.net
 
  


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
Suse Linux 10.0 partially installed? shane_kelly55 SUSE / openSUSE 1 08-18-2005 11:44 PM
Acer hot keys? (aspire 1500 series) : works partially vmicho Linux - Laptop and Netbook 1 03-20-2005 09:58 AM
DHCP fails, static IP partially works bigRez Linux - Networking 1 04-20-2004 06:23 PM
Installed DSL, but nothing works squirellplaying DamnSmallLinux 5 03-14-2004 02:53 AM
ALSA prob: works fine as root but only partially as nonroot user. Choey Slackware 2 11-01-2003 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration