Hi, is it possible to add static routes when you don't know the ip that will gonna be assign by vpn server? The idea is to use connection only to connect to the remote
networks, all the default traffic should not be sent to the vpn.
In configuration IPV4, I set routes: Routes Automatic: Off address: 192.168.8.0 netmask: 255.255.255.0 gateway: 0.0.0.0 x - Use this connection only for resources on its network.
When connecting, the route is added but no traffic! This
configuration works with nm-vpnc ip r shows: 192.168.8.0/24 dev wlp3s0f0 proto static scope link metric 50
Since i know the ip address of the vpn, i know set the routes: Routes Automatic: Off address: 192.168.8.0 netmask: 255.255.255.0 gateway: 192.168.20.3 x - Use this connection only for resources on its network.
This works, i see the route and the traffic to remote network is
ok. ip r shows: 192.168.8.0/24 via 192.168.20.3 dev wlp3s0f0 proto static metric 50
Could be a nice feature to detect the assign ip address to the
vpn and replace the 0.0.0.0 when configuring the route.
BTW, tested with git version, last commit b2a4514a78d39e2f4c9760d655e9a762be2c5f96.
Thanks. António |