LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2004, 08:50 AM   #1
OpsVentus
LQ Newbie
 
Registered: Jan 2004
Location: Nijmegen, the Netherlands
Posts: 17

Rep: Reputation: 0
Question Connecting 2 networks via VPN


Hello,

In my attempt to connect 2 networks via VPN I ran into a problem.
I want to connect the two networks but internet on my network has to keep working. When I connect with routing “All to Tunnel” the internet goes down on my network. But the connection is good, I can connect remote desktop to the server in the other network. When I connect with routing “LAN to LAN” a connection is made but he gives this error message:

route add –net ‘192.168.15.1/24’ dev ‘ppp0’
route: netmask doesn’t match route address

And then it gives a usage of route and then:

pptp-php-gtk: command failed, exit code 4

route add –net ‘192.168.15.1/24’ dev ‘ppp0’
route: netmask doesn’t match route address

And then it gives a usage of route and then:

pptp-php-gtk: command failed, exit code 4

Then it gives some iptables rules witch go fine and it ends with:
pptp-php-gtk: connected

So I think the connection is made but I can’t connect remote desktop to the server in the other network.

My network got this setup:
Server hot: auto ip from DHCP
Server cold: 192.168.0.1
Other computers: 192.168.0.*

Other network got this setup:
Server hot: auto ip from DHCP
Server cold: 192.168.15.254
Other computers: 192.168.15.*

Can anyone help me?
 
Old 01-23-2004, 09:02 AM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
This should work:

192.168.15.0/24

Last edited by J_Szucs; 01-23-2004 at 10:37 AM.
 
Old 01-23-2004, 02:00 PM   #3
OpsVentus
LQ Newbie
 
Registered: Jan 2004
Location: Nijmegen, the Netherlands
Posts: 17

Original Poster
Rep: Reputation: 0
Cool Works

Thanks now it works.
 
  


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
route command help connecting two windows networks sra Linux - Networking 1 09-28-2005 04:15 PM
connecting two networks sfichera Linux - Networking 1 03-26-2005 09:54 AM
Assistance - VPN Bridging Multiple Networks neillans Linux - Networking 2 12-03-2003 05:12 AM
connecting multiple networks kierl Linux - General 2 03-14-2003 04:59 PM
VPN - Virtual Private Networks? bnicolas Linux - Newbie 1 08-16-2001 05:24 PM

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

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

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