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

[Openvpn-users] net_gateway on kernel 2.6 machines


  • Subject: [Openvpn-users] net_gateway on kernel 2.6 machines
  • From: Michael Setzer <michael.setzer@xxxxxxxxxx>
  • Date: Tue, 6 Feb 2007 14:47:46 +0100

Hi there,

now something tricky: :)

I connect to an openvpn server which provides some routes to the clients via

push "route <subnet> <mask>"

Works fine with all clients. Now I try to re-route some hosts on one of my 
clients (roadwarrior) to the machine's default gateway and use something like

route <address> 255.255.255.255 net_gateway

in the client's config-file.

But it only tells me

Feb  6 11:13:06 mordor ovpn-telefonica[18309]: OpenVPN ROUTE: net_gateway 
undefined -- unable to get default gateway from system
Feb  6 11:13:06 mordor ovpn-telefonica[18309]: OpenVPN ROUTE: failed to 
parse/resolve route for host/network: <address>

The client uses a ADSL DialIn and the routing tables look like this (only the 
necessary part):

<IPADDRESS>   0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
0.0.0.0         0.0.0.0         0.0.0.0         U         0 0          0 ppp0

An a machine with a 2.4 kernel it looks like

<IPADDRESS>      0.0.0.0        255.255.255.255 UH        0 0          0 ppp0
0.0.0.0        <IPADDRESS>      0.0.0.0        UG        0 0          0 ppp0

and here it works fine.

Is there any solution how I can use the net_gateway option?

I'll appreciate any help!

Regards,

Michael
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users