[lug] routing problems

PC Drew drewpc at colorado.edu
Tue Aug 1 19:32:49 MDT 2000


I'm not sure if you've already done this, but here are some notes:

vpn1 needs to be the default gateway for lan1 and same for vpn2 and
lan2

vpn1 needs to have the following route:

route add -net 192.168.2.0 netmask 255.255.255.0 gw <public IP of vpn2>

and vpn2 needs this:

route add -net 192.168.1.0 netmaks 255.255.255.0 gw <public IP of vpn1>

Then it should work.  I hope :)

--
PC Drew


Thus spake Hugh Brown on Tuesday, August 01, 2000, 6:43:12 PM:

HB> I am trying to set up a vpn using ppp over ssh.

HB> I am able to make the connection and the two boxen twixt which is the
HB> ssh tunnel can ping each other on the non-Internet routed interface, but
HB> I can't get them to ping something on the lan side.  So let me try to
HB> illustrate a little better,

HB> lan1 192.168.1.1
HB>         |
HB>         |
HB> vpn1 eth0: connects to Internet
HB>      eth1: 192.168.1.254
HB>         |
HB>         |
HB>     ssh tunnel with ppp
HB>         |
HB>         |
HB> vpn2 eth0: connects to Internet
HB>      eth1: 192.168.2.254
HB>         |
HB>         |
HB> lan2 192.168.2.1


HB> the route command that I run on vpn2 is

HB> /sbin/route add -net 192.168.1.0/24 gw 192.168.1.254

HB> when I check the routing table the relevant line is

HB> 192.168.1.254   *               255.255.255.255 UH    0      0        0
HB> ppp0

HB> If I try and ping lan1 from vpn2, it tries to go out over the Internet. 
HB> Same sort of setup on vpn1 with the same sort of results.

HB> I know it must be a simple command, but I can't figure it out.

HB> TIA,

HB> Hugh

HB> _______________________________________________
HB> Web Page:  http://lug.boulder.co.us
HB> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug






More information about the LUG mailing list