Hello.
I connect to my openvpn server over Linux (Debian), iOS, Android - everything is ok.
But over router (as client) with TomatoUSB firmware it's a problem with routing.
I connect to my ISP over L2TP protocol, then I connect to my openvpn server.
Logs from Debian (OpenVPN 2.3.2 i486-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Jun 3 2013):
/sbin/route add -net 50.7.7.7 netmask 255.255.255.255 dev ppp0
/sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.5.0.1
/sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.5.0.1
Initialization Sequence Completed
Logs from TomatoUSB (OpenVPN 2.3.2 mipsel-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Apr 14 2014):
/sbin/route add -net 50.7.7.7 netmask 255.255.255.255 gw 89.179.2.2
ERROR: Linux route add command failed: external program exited with error status: 1
/sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.5.0.1
/sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.5.0.1
Initialization Sequence Completed
I tried to add manually:
/sbin/route add -net 50.7.7.7 netmask 255.255.255.255 gw 89.179.2.2
route: SIOCADDRT: No such process
So it does not work. But
/sbin/route add -net 50.7.7.7 netmask 255.255.255.255 dev ppp0
works great if I use it manually on router.
So I have a question, why openvpn detects a gateway in a wrong way?
It runs
/sbin/route add -net 50.7.7.7 netmask 255.255.255.255 gw 89.179.2.2
instead of
/sbin/route add -net 50.7.7.7 netmask 255.255.255.255 dev ppp0
What should I do?
Thanks in advance.
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.190.48.1 255.255.255.255 UGH 0 0 0 vlan1
89.179.2.2 10.190.48.1 255.255.255.255 UGH 2 0 0 vlan1
93.81.81.81 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.190.48.1 0.0.0.0 255.255.255.255 UH 0 0 0 vlan1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
10.190.48.0 0.0.0.0 255.255.248.0 U 0 0 0 vlan1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 89.179.2.2 0.0.0.0 UG 0 0 0 ppp0
0.0.0.0 10.190.48.1 0.0.0.0 UG 1 0 0 vlan1