What's new

Automation to disable / enable VPN Client on ASUS AX88U with Merlin

  • 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!

bitoiu

Occasional Visitor
Hi,

I'm about to setup a Xioami button that upon click should enable disable a VPN Client on the router settings. I use an IPTV server that at times gets blocked and I need VPN on the TV. This profile is using NordVPN and only setting the VPN active to the TV IP. I want a system that my wife can use if Netflix or another app on the TV doesn't work because of the VPN, or even to myself if I want to watch a game on the telly and I can't without reaching to the laptop.

So in the end my question is: is there an API or command, or configuration file I can change to toggle that setting below from ON to OFF and vice-versa?

desktop.png


Thank you in advance, SLP.
 
There is no remote API but you could probably work out how to do it by logging into the router through SSH and issuing some commands. Can your Xioami button do that?
 
I can code this, through my home automation the question is:

> and issuing some commands

What commands would these be? I just don't know of a programatic way to change that setting.
 
Last edited:
yep, so the commands are:

Code:
service start_vpnclient1

service stop_vpnclient1

and it works like a charm! Thanks for the help.
 
Did you end up writing a script or something for the automation? Searching for something similar myself.
 

Sign Up For SNBForums Daily Digest

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