Would be nice if OpenVPN would detect the correct settings by istelf.
Finding the correct old routing table line is easy:
STEP A:
- filter where both Destination and Genmask are 0.0.0.0
Then
STEP B:
- IF Gateway != 0.0.0.0 THEN
use existing code to deal with it
- ELSE
route add VPN_SERVER_IP THE_DEV_FROM_THE_ROUTING_TABLE_FOUND_IN_STEP_A
eg. route add 145.11.22.33 ppp0
Regards,
David
Hi Laurent,
the messages seems pretty clear: when you're connecting using your ppp
interface then openvpn cannot determine the default gateway on your
network; you need to specify it explicitly or make sure that you *have*
a default gateway when connecting thru ppp.
Laurent GUERBY wrote:
> In the client logs in the ppp case I have a "cannot read current default
> gateway from system" message:
>
>
the SERVERIP routing table shows the default GW:
> >>>>> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
>
where as with PPP your routing table does not have any 'UG' entries:
> #route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 10.6.6.6 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
>
fix this and your openvpn connection should work...
HTH,
JJK
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users