[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

vpn1 needs to have the following route:

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

and vpn2 needs this:

route add -net netmaks 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
HB>         |
HB>         |
HB> vpn1 eth0: connects to Internet
HB>      eth1:
HB>         |
HB>         |
HB>     ssh tunnel with ppp
HB>         |
HB>         |
HB> vpn2 eth0: connects to Internet
HB>      eth1:
HB>         |
HB>         |
HB> lan2

HB> the route command that I run on vpn2 is

HB> /sbin/route add -net gw

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

HB>   *      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> 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