daavichdh
Hello, when I start my openvpn server it creates some routes on the server, like:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth4
192.168.56.0 192.168.56.2 255.255.255.0 UG 0 0 0 tun3
192.168.56.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun3
It works fine using the default gw of the server (my main internet connection). But I want to change and use an alternative internet connection which is not the default one on this server (the new one is 192.168.4.1). If I set it with route directive in .conf file this is my routing:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth4
192.168.56.0 192.168.4.1 255.255.255.0 UG 0 0 0 eth3
192.168.56.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun3
But it doesn't work, I can't stablish the connection. I need something like this but I don't know how to get it:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth4
192.168.56.0 192.168.56.2 255.255.255.0 UG 0 0 0 tun3
192.168.56.2 192.168.4.1 255.255.255.255 UH 0 0 0 tun3
I tried with route command but crashes:
>route add -host 192.168.56.2 gw 192.168.4.1 dev tun3
SIOCADDRT: No such process
Any ideas?.
thanks