Good morning. I have a script that runs commands via SSH to change the DNS servers published by DHCP on my Asus RT AX86U Pro. It works correctly.
Now I need the option to enable and disable the WireGuard server on the same router.
I've managed to disable the WireGuard VPN server page toggle via SSH, but it remains active even after running an "nvram commit".
Does anyone know the service to restart the VPN server?
For DHCP, I change the DNS servers and then run:
service restart_dhcp
service restart_dnsmasq
service restart_wireless
And without restarting the router, the DHCP DNS servers change correctly.
Thanks in advance. Regards!
Now I need the option to enable and disable the WireGuard server on the same router.
I've managed to disable the WireGuard VPN server page toggle via SSH, but it remains active even after running an "nvram commit".
Does anyone know the service to restart the VPN server?
For DHCP, I change the DNS servers and then run:
service restart_dhcp
service restart_dnsmasq
service restart_wireless
And without restarting the router, the DHCP DNS servers change correctly.
Thanks in advance. Regards!
