Current syntax only allows setting network/IP
set interfaces openvpn vtun0 server push-route x.x.x.x/x
It should also support optional arguments (e. g. metric) as specified in the openvpn man page
--route network/IP [netmask] [gateway] [metric]
Current syntax only allows setting network/IP
set interfaces openvpn vtun0 server push-route x.x.x.x/x
It should also support optional arguments (e. g. metric) as specified in the openvpn man page
--route network/IP [netmask] [gateway] [metric]
This would make sense. Some could imagine that there is a P2P linkt between two sites and a WAN IPSec Backup link
PR for current https://github.com/vyos/vyos-1x/pull/974
Server site:
set interfaces openvpn vtun10 server push-route 100.64.60.0/24 metric '10'
Client site:
[email protected]:~$ show ip route 100.64.60.0/24 Routing entry for 100.64.60.0/24 Known via "kernel", distance 0, metric 10, best Last update 00:04:50 ago * 10.10.0.1, via vtun10
Not all clients support the gateway option (get issues in mac and windows):
Mac
tun_prop_route_error: route destinations other than vpn_gateway or net_gateway are not supported