Start/Stop VPN policies by shell

Hi,
I have a B-1300.
How Can I stop and start VPN Policies by shell?
I tried:
\etc\init.d\dnsmasq restart or reload
\etc\init.d\gl_route_policy restart or reload
thanks

You should change the setting in uci then reload or restart the firewall etc. I am not so sure about the sequence of scripts so pls try.

For example, to enable, use

uci set glconfig.route_policy.enable=1
uci commit glconfig
/etc/init.d/firewall reload

uci set glconfig.route_policy.enable=1
uci commit glconfig
/etc/init.d/firewall reload
/etc/init.d/gl_route_policy restart

So it is perfect.
thanks

1 Like