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

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.
 

ColinTaylor

Part of the Furniture
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?
 

bitoiu

Occasional Visitor
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:

bitoiu

Occasional Visitor
yep, so the commands are:

Code:
service start_vpnclient1

service stop_vpnclient1
and it works like a charm! Thanks for the help.
 

Latest threads

Sign Up For SNBForums Daily Digest

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