[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-users] Another routing issue

  • Subject: Re: [Openvpn-users] Another routing issue
  • From: Zvone Zagar <zvone.zagar@xxxxxxxx>
  • Date: Tue, 14 Dec 2004 00:36:32 +0100

Steve Kieu wrote:


route add -net netmask

Why sunny has through eth0 whereas ifconfig
eth0 shows the ip addr of eth0 is ?

Sadly, but I don't quite understand. Sunny and OpenVPN gateway are on the same LAN (Sunny has, gateway has; both have mask and broadcast - Sunny can reach gateway and vice verse)

let's make it clear, from your lengthy emaul :-) here
is what I summarize:

Office vpn gateway

ppp0 *
tun0 =>


Route is: gw (so there is a route to
your home lan) via eth0 (not get it? where is network can not find it anywhere)

The output of 'route' on office gateway shows LAN. I checked my post.

it should be via eth0

Now the home vpn
ppp0 *
tun0 => route: gw


route: gw (rout to home lan
through office vpn this route is fine) via eth0.


OK suppose the info I got is correct we trace the fate
of packet from home to sunny:


Home does not know how to route no in its
routing table. Then you add route add -net netmask gw

Home gateway has been set: route add -net netmask gw Office server and gateway live in that network.

Now home knows ; and it will send the packets t0 through tun0, reach the office.
Now the office in turn it doesn't understand network. It has only the route to ; not even it has the IP
If you fix that problem the Office would be able to
know where to send ; (which is eth0) and it will
finally reach sunny box. The route back is fine.

So you should examine why the Office and sunny has
strange network like that. Is it unintentional or
intentional? If not try to re configure those boxes
and fix it. so that u have

I hope I have answered in the first paragraph.

office: eth0 there will be no route ; instead it would
be via eth0

The same for sunny; there will not be the route but via eth0.

For quick test try at office
route add -net netmask dev

and at sunny
route add -net netmask dev

and test again..

I did as You suggested. But the result is always the same. You have spent to much precious time to solve my problem.
I am going to dig deeper and will let you know when the 'beast' will be reached (I hope in my lifetime).


Find local movie times and trailers on Yahoo! Movies.

Thanks  Zvone Z.

Openvpn-users mailing list