script

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

  1. L

    Radio off command

    Hello all, My goal is to enable/disable WIFI with a cron job on one of my aimesh node. I connect via ssh to my aimesh node and I can't even make work simple command like "radio off", "wl radio off", "wl -i eth1 radio off" when I run them, wifi is still enabled. After using those command, how...
  2. S

    Entware How do I write my own script for entware

    Hello, I need Your help. In my Asus RT-AC55U router is installed Entware. It works good (opkg and other commnads). But I need to write my own sript to be runned at start up router. So in /opt/etc/init.d I have script for dnscrypt-proxy and I need to write another for rclone. Also for iptables I...
  3. A

    amtm Script to randomize MAC address daily

    I would request to have an amtm script to randomize the mac address of ASUS merlin on daily basis or predefined interval. the reason is that my ISP doesn't change my IP address even if I'm resetting the router and they said that the only way to change the IP address if your router has the...
  4. S

    DNS redirect to local DNS server

    Hi! Some of my devices use an hard-coded DNS server, i.e. 8.8.8.8. I like to re-direct this DNS traffic to my local unbound DNS server by using the firewall script of my AC86 router. I use the following IPTABLES commands. The rule is added correctly to iptables. Are these rules correct and how...
  5. D

    [AC87U]: Limit Bandwidth On 5GHz Band Using Script

    Hi everybody, I'm trying to write a script that does the following: Read a list of user/device name/mac addresses/limit Check if the device is active (i.e. bandwidth is over a given threshold) - e.g. every minute Count the times the device is over this threshold If the device breaches the...
  6. S

    wan-event script not executed

    Hi! My old wan-start worked fine. After updating to firmware .15 I renamed it to wan-event and adapted it to consider the new parameters. But it doesn't call the "wan-event-connected.user script" anymore in its code. What is wrong with the following code of the wan-event script? #!/bin/sh if...
  7. S

    wan-start script also run on wan-stop

    Hi! I just found out that /jffs/scripts/wan-start is also run when the wan interface is stopped, e.g. by command 'halt'. I found out by letting this script email me a message when WAN starts (works great), but I also receive the email when I halt the router before power is turned off. A reboot...
  8. Freakandel

    Switching Guest network on/off wifi with SSH command

    Hi, I would like to know if it is possible to switch on/off the WiFi Guest network (2.4 and 5 Ghz) with a SSH command or script. I want to achive an easy way (wife proof ;-)) to get control over the Guest network in combination with Domoticz and a dVent, LUA or other script. Also, if applicable...
  9. B

    Script to reboot when WAN detected as down

    Asus RT-86u running Merlin Every now and then - like every day or so the router just loses connectivity. I have been trying in vain to scour logs for a while with no idea why. A reboot seems to fix it. This was then running fine with a daily reboot set to 5am. Except now it dropped out after 9...
  10. O

    How can I use user script in AI Mesh nodes?

    Hello, I have a question about script. I am using 3 AC-68U routers, they are runing in 384.13, one is router, the others are nodes. It seems that if I enable the ai-mesh node mode, the device will reset its nvram which means I cannot enable the jffs scripts. My goal is to use scripts to auto...
  11. L&LD

    GitHub Sponsors New Way to Pay Developers.

    I found this interesting article that the scriptwriters here may be interested in. It is only in Beta now but looks promising. This is sponsored by both GitHub and Microsoft and they are offering a matching fund for the first year up to $5,000...
  12. P

    Problem with VPN IP leak, Firewall script

    Hello I have a problem with VPN settings . Here is my previous topic https://www.snbforums.com/threads/openvpn-configuration-ip-leak.50334/ I used the way with jffs firewall script, to block wan . And it seemed to me that everything was ok, but lately i had power outage, so the router and...
  13. H

    Scripted VPN client configuration

    Is there a way to set up a VPN client connection at the command line. I'd like to be able to read an ovpn file and write the configuration using a script. My intention is to automate downloading of an ovpn file; choosing a server with the most capacity and lowest ping, and then automatically...
  14. wheelq

    unknown syslog copy

    I have noticed very high CPU spikes, so I did a little research. As it turns out, every , the following command is being issued: 2984 admin 1420 D cp /tmp/syslog.log /tmp/syslog.log-1 /jffs I have checked the 1420 and it is: 101 admin 1420 S /bin/sh Yes, I do lots of...
  15. johnathonm

    Script Recommendations

    Hello, I hope you are all well. I wanted to reach out to the forum to see if you all had any scripts and/or script recommendations you would be willing to share. I am currently using the three big ones that I came across in the forum: the two from Lonelycoder (Ab-solution his terminal script)...
  16. I

    Schedule LED Control Script not working

    Hello. I have the Asus RT-AC68U router with the last Merlin firmware installed (384.4_2). I'm completely new to asus routers and I'm still adapting to it. But so far I'm not having mayor problems except for the following. I was trying to schedule the led control following the guide...
  17. AppleBag

    DDNS script example to update CloudFlare not working

    Hi I copied/pasted verbatim, the CF example script (here) to update my "A" record. Edited the respective areas, placed it in my jffs/scripts folder and set it's permissions executable. Now in the logs it says it's failing: -- Apr 6 20:39:57 start_ddns: update CUSTOM , wan_unit 0 Apr 6...
  18. Quadcore

    Strange behaviour of script "app_base_link.sh"

    I am an owner of RT-AC86U router with last stable release of RMerlin (384.4.2). I've an external USB3 HDD with two partitions, first one with NTFS fs, second one with EXT3 fs. I've installed the Entware packages (32bit) with the newest script and I've installed the same packages I had with my...
  19. Sinner

    A good IOS app for editing and uploading scripts?

    Anyone have any suggestions for a good IOS app to edit and upload scripts to the router? I've looked at a few like shelly and codeanywhere. I'm just wanting something simple that can edit and upload fairly easy. Any ideas? I'm not sure if this is the best section to post this in but under...
  20. S

    Need a script that auto reboot if internet is down

    Hi, I have merlin 380.64 on asus ac68u and sometimes internet goes down while I am away from home and need to reboot the router to be up again. Can someone please help with a simple script that checks for internet connectivity every few minutes and if it’s down, perform a reboot? Thanks in advance.
Top