What's new

scMerlin scMerlin - service and script control menu for AsusWRT-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!

When i tried to issue scMerlin command "reboot router" it gave me "terminated" message and exited to command prompt without actually restarting my router.
Check syslog. It issues a service call to reboot cleanly. If the router ignores this, then you have other issues
 
Mar 28 19:51:41 RT-AC68U rc_service: skip the event: reboot.
That's it. I don't see anything else in the log.
 
Seems it got in fight with Skynet... Should've known that installing Skynet is a bad idea. After all it IS Skynet. Always wants to take over :D
 
Last edited:
@Jack Yaz, curious why the VPN client commands are not included in scMerlin?
 
Oversight? :(
Can you see if you can add it?

I have an odd VPN issues and it happens so rarely I have trouble finding why. At an inconvenient time (of course) the connection stops, it would be nice to have a quick way to restart it without logging into the router. Thank you.
 
Can you see if you can add it?

I have an odd VPN issues and it happens so rarely I have trouble finding why. At an inconvenient time (of course) the connection stops, it would be nice to have a quick way to restart it without logging into the router. Thank you.
Sure. How would you prefer me to detect if a VPN client is "configured"? If it has a name set up?

EDIT: Hm name won't work...default is Client X
 
Last edited:
Sure. How would you prefer me to detect if a VPN client is "configured"? If it has a name set up?

EDIT: Hm name won't work...default is Client X
That question is way over my pay grade. :)

Hopefully someone with coding experience will know. I see this as the name in my openvpn log (thanks to scribe for the separate log!) I only run one client.
Code:
20 10:13:01 RT-AC86U-4608 ovpn-client1[17079]: (log data here...)
 
That question is way over my pay grade. :)

Hopefully someone with coding experience will know. I see this as the name in my openvpn log (thanks to scribe for the separate log!) I only run one client.
Code:
20 10:13:01 RT-AC86U-4608 ovpn-client1[17079]: (log data here...)
I've opted to assume that if a VPN client has an Address configured in the WebUI, there will be an option to restart it
 
v1.1.0 is now available!
Changelog:
Code:
NEW: Add options to restart configured VPN clients - thanks @Butterfly Bones for the suggestion
Two suggestions: in front of VPN client line, have something that identifies it (the vpn descriptions?)
Second - do the same reboot options for the two vpm servers :)

Edit; well, three :) check if router is RT-AC86U and, when selecting restart router option, present a RED BOLD message: "ATTENTION AC86U USER: are you phisically near to your router?! Do you want to continue?" :cool:
 
Two suggestions: in front of VPN client line, have something that identifies it (the vpn descriptions?)
Second - do the same reboot options for the two vpm servers :)

Edit; well, three :) check if router is RT-AC86U and, when selecting restart router option, present a RED BOLD message: "ATTENTION AC86U USER: are you phisically near to your router?! Do you want to continue?" :cool:
some people are never happy...:(
 
some people are never happy...:(
Some people like your work so much that keeps pushing you up to do more :D
Of course I'm happy man, and I thank you so much for it, just a couple of things I remembered. It's perfect as it is, but it will definitely be better that way.
 
Two suggestions: in front of VPN client line, have something that identifies it (the vpn descriptions?)
Second - do the same reboot options for the two vpm servers :)

Edit; well, three :) check if router is RT-AC86U and, when selecting restart router option, present a RED BOLD message: "ATTENTION AC86U USER: are you phisically near to your router?! Do you want to continue?" :cool:
VPN Server is trickier to detect if it should be restart-able, or not. Any suggestions for a field to test against?
 
VPN Server is trickier to detect if it should be restart-able, or not. Any suggestions for a field to test against?
I've been reading all nvram vars related to vpn server and none of them seems to tell if the server is being used. :confused:
 
I've been reading all nvram vars related to vpn server and none of them seems to tell if the server is being used. :confused:
Best you've got is whether it is enabled or not, but that can be a red herring if it is supposed to be running but hasn't turned on yet
 
Best you've got is whether it is enabled or not, but that can be a red herring if it is supposed to be running but hasn't turned on yet
That's what I thought. The same thing with vpn clients - maybe some client is supposrd to be running and it isn't, so that's the point to do a restart.

I think the best (maybe only) option here is to have them always there to be restarted. Even if we aren't using them.

Edit: or we can use the custom config box to insert some dummy bar (set-restartable true), for example, and your script catches it. But in that case, we have to be using advanced settings.
On basic settings, you can check either there are more users than the default.
Or you can have the two rules and detect it if one of them is caught.

In my case, I have two users on each server - so your script would detect it as restartable.
In other people case, they had to use advanced configs and user the custom config box to insert the dummy var.

Edit2: or you can inject some code on Advanced_VPN_OpenVPN.asp and create a checkbox "Make restartable on scmerlin script", creating a new nvram Boolean var
 
Last edited:
I've been reading all nvram vars related to vpn server and none of them seems to tell if the server is being used.

vpn_serverx_start will contain the number of server instances that are enabled, separated by a comma.
 

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