What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ASUSRt SSH Commands

eduvr84

New Around Here
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!
 
I have the latest official firmware. Regards
Ah, OK. I'm using Merlin's firmware so it's likely to be different. But try this:

Code:
nvram get wgs1_enable

If that returns a 0 or 1 (rather than nothing at all) then try this to disable the server:

Code:
nvram set wgs1_enable=0
nvram commit
service restart_wgs
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top