I need to run the following command after my client connects:
/sbin/ip route add default via 10.8.0.1 dev tun0 table vpn
So I added the following to the client config:
Somehow, it doesn't work with script-security 1, even tough the reference manual says that "built-in" executables such as ifconfig, ip and route can be called with script-security 1.route-up '/sbin/ip route add default via 10.8.0.1 dev tun0 table vpn'
script-security 2
The error message is
Am I doing something wrong? What can script-security 1 be used for if it's not calling the ip executable? Is there another way to add a route to a secondary table in openvpn?WARNING: External program may not be called unless '--script-security 2' or higher is enabled. See --help text or man page for detailed info.
thanks