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 08-11-2014, 10:27 AM   #1
Highjo
Member
 
Registered: Jan 2007
Posts: 36

Rep: Reputation: 0
VPN Networking Issues. Subnet can't go through already established tunnel.How to fix?


Hello All,

I am not an expert but an anthousiaste who have been trying his hands around lots of networking stuff.

I have been tasked to setup a VPN with a client. Which I did. Used VyOS(192.168.5.25) on amazon VPC(192.168.5.0/24) and set 2 tunnels and everything. From VyOS box I can ping the other network IP 10.2.0.10.

I have created another box on my amazon VPC which has the IP 192.168.5.40 and it can't ping 10.2.0.10. I have seen somewhere That it's gateway should be set to VyOS ip so I did so

Code:
sudo route add -net 0.0.0.0/0 gw 192.168.5.25
Code:
ubuntu@ip-192-168-5-40:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.5.25  0.0.0.0         UG    0      0        0 eth0
default         192.168.5.1   0.0.0.0         UG    0      0        0 eth0
192.168.5.0   *               255.255.255.0   U     0      0        0 eth0
Ping are still failling. I am half way through but can't still make client's network available to my network.

Can any networking guru shed some light? That will be really appreciated Thanks

Regards,
 
Old 08-11-2014, 04:39 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,226

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Why do you have two gateways in your route table? The gateway should be on whatever machine is routing packets out to other networks.
 
Old 08-12-2014, 04:55 AM   #3
Highjo
Member
 
Registered: Jan 2007
Posts: 36

Original Poster
Rep: Reputation: 0
Thanks for your reply. 192.168.5.1 is the first eth in order to replace it I set the one I want it to use 192.168.5.25. I think each time I want to remove the actual default 192.168.5.1 the box becomes unaccessible . I was wondering weither I need a second ethernet interface. Because I access the box via ssh.

Questions: Can't I have different gateways for different subnets?

Last edited by Highjo; 08-12-2014 at 04:57 AM.
 
  


Reply

Tags
subnet, vpn


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
Sonicwall VPN tunnel established but won't route Noway2 Linux - Networking 0 03-05-2012 03:53 PM
How to established VPN Server using linux cheesewizz Linux - Networking 1 11-14-2008 04:53 AM
Networking question - VPN Tunnel JohnD23 General 2 04-19-2007 07:58 AM
OpenVPN route issues, all traffic through VPN tunnel stuartornum Linux - Server 4 03-05-2007 04:07 AM
2.6: ping on established(!) VPN tunnel doesn't! sundialsvcs Linux - Networking 1 12-09-2005 06:09 PM

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

All times are GMT -5. The time now is 03:56 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