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!

Start VPN client remotely on asus-merlin

busch09

Regular Contributor
Hi,

is there a way to start the vpn remotely on my asus-merlin ?
Id like to start a VPN to watch some foreign movies but dont want it on all the time. login in to the router, clicking to vpn settings and on seems cumbersome.
Is there a shortcut ?

cheers
buschi
 
Ideally, you would need VPN to login to your router...

Can't see it becoming less cumbersome than simply leaving it on.
 
Hi,

is there a way to start the vpn remotely on my asus-merlin ?
Id like to start a VPN to watch some foreign movies but dont want it on all the time. login in to the router, clicking to vpn settings and on seems cumbersome.
Is there a shortcut ?

cheers
buschi

The command to start the vpn client is

Code:
service   start_vpnclientX

where X is 1 or 2

So from my windows PC, I used to use a .BAT file (but now I use a more flexible Autoit .AU3 script) to run scripts on the router, but basically the technique is pretty simple.


Code:
set rHOST=192.168.1.1
set rPORT=22
set rUSER=admin
set rPASS=xxxxxxxxxxxx
set cCOMMAND=service start_vpnclient1

@plink.exe   -ssh   %rHOST%   -P   %rPORT%   -l   %rUSER%   -pw   %rPASS%   -batch   `%cCommand%   %arg1%   %arg2%`   2>&1

Usually I run the adblocker on the router, but for some sites, I need to disable the dnsmasq.conf.add entries or switch the dnsmasq.conf.add entry for UK/USA Netflix etc. so you may need to write a 'wrapper' script to perform any pre-actions then include the call to 'service start_vpnclient1'
 

Similar threads

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