scripts

  • 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. _BLACK_BuLLeT_

    How to limit the speed of a specific site on ASUS TUF-AX5400?

    There is an ASUS TUF-AX5400 router with the latest Merlin (388.2_2_0-gnuton1) firmware. How can I limit the speed of downloading data from a specific site (or at least from several IP addresses) on this router? I do not need to limit the speed of the entire specific device. I also do not need to...
  2. B

    Should I have scripts I want to run at boot in the JFFS partition and can I do it from a USB stick instead?

    I am a beginner when in comes to this, my area has frequent power outages, I want the router to check if my PC is on at every boot, and if it is off, to turn the PC on using Wake on LAN. My understanding is that if I want a script to run at boot, I should put it in the /jffs/scripts/ directory...
  3. Yota

    A solution: let the router in AP mode or AiMesh node receive commands from the main router

    I ran into this question a few weeks ago while writing a script: How to make the main router and node execute some commands synchronously. At first I thought this was impossible, because for AP mode, the main router does not communicate with the AP, and for AiMesh because the code is closed...
  4. H

    Beta Script to monitor temperatures on RT-AC68U

    Radios on my first router stopped working within hours of setting it up and I suspected it due to high temperature (CPU was at 96°C). When I got a replacement, I didn't want to take a chance so had it always running with a fan. I recently upgraded to RT-AC86U and converted the old router to an...
  5. XIII

    DDNS: how to set up ASUS (primary), No-IP (backup), and push notification?

    For an experiment I want to achieve this: Use *.asuscomm.com as main DDNS service Use No-IP as backup DDNS service Get a push notification (using Pushover) when the IP changes Unfortunately I'm confused by the Wiki page on DDNS services. It seems like I can achieve this by: Configuring...
  6. elrengo

    Script at start-up fail

    Hi! I have two routers: RT-AC3100 + RT-AC66U_B1. The AC3100 as main router and the AC66 as AiMesh node. Both with Assuswrt Merlin firmware up to date. In AC3100 router I've a My Passwort USB3 HDD attached where I've two paritions. Ther first one where is installed Entware and installed rtorret...
  7. T

    Scripts help please

    Hi I am trying to write a script that runs a command to push my usb into another mode but it doesn't seem to be running at boot... I'm not sure what I am doing wrong? #!/bin/sh usb_modeswitch -v 0x1410 -p 0x9020 -u 2 This is the script. I put it in /jffs/scripts and made it executable...
  8. B

    Comms between different networks help

    Hi, I.ve read many threads on how to achieve this and had partial success. Please guide me in the correct direction. Many thanks in advance. I have a Router/Modem/IPTV thing that my ISP installed me, which has the internet connection. It has a network of 192.168.1.0. This will be router 1 and...
  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. Y

    AC87U: 100% CPU load on both cores and connection problems

    Hi there I am running a AC87U (Merlin 384.13) with a couple of additional scripts running: DNScrypt Skynet diversion (pixelserv) (amtm) (swap enabled on USB2) (RNG) Very often I have Wi-Fi issues. My smartphone or my laptop say that they are connected to the network, but have no internet...
  11. M

    smb.postconf not doing anything

    I'm trying to insert some veto rules into my smb.conf file via the following smb.postconf, located at /jffs/scripts/smb.postconf: #!/bin/sh CONFIG=$1 sed -i '' 's:veto files = :veto files = /._*/.DS_Store/.Trashes/.TemporaryItems:g' $CONFIG Unfortunately it doesn't appear to have any effect...
  12. M

    Directing OpenVPN Server Clients to static addresses

    Little bit of a noob here, so bear with me and please forgive my poor use of terminology. Setting me straight is appreciated! Where I'm at so far: Currently have 4 server clients setup for connecting to server 1; client1-4 Previously, I was using a TAP connection and a static mac addresses...
  13. D

    script to restart VPN client if connection goes down?

    Sometimes, after a few days, I may need to restart my VPN (client) connection. Is there any script for Asus wireless routers which will do this automatically? Restarting the router daily doesn't help. For example, I might restart it at 5:00 am, but if the VPN connection goes down at, say, 4pm...
  14. D

    speedtest script to run on router?

    Is there a script similar to this one that can be run on the router? sivel/speedtest-cli: Command line interface for testing internet bandwidth using speedtest.net https://github.com/sivel/speedtest-cli That's a python script. If there is not a script specific to an Asus router, has anyone...
  15. XtremeBattle

    Asus merlin IPTV+NET on same port

    Hello, I bought an asus router to use instead of isp router, and im trying to conect my tv box on it, my box uses both iptv and internet to acess apps and past programs. so i need to change vlans for both settings, my router doesnt have a tomato version so im trying changing scripts but i dont...
  16. HuskyHerder

    Custom script proper usage?

    I started by appending my script to the wan-start below the ab-solution portion. The script is, just a sleep event to ensure the WAN is active, and then issue a pushover notification. Is that the desired approach, to append to the existing script ? Is there somewhere I could actually specify...
  17. Tydyn Rain St. Clair

    Iptables Rules for OpenVPN Port Forwarding

    Hello all. I'll do my best to explain my situation and what I'm attempting to do as clearly and succinctly as possible. Two years ago (May 30th 2016) I posted in this forum asking for help to figure out a way to successfully forward server ports via an OpenVPN tunnel from my laptop (running an...
  18. chandras002

    crontab using cru -not working

    Dear all, last few days, struggling on this...:rolleyes: i want to run tcpdump for every 1 hours using crontab on my Asus merlin - AC88U - firmware 380.65_4. Now testing for every 1 min so, 1) I have a script name admin.sh : /jffs/scripts/admin.sh !/bin/sh echo This is test...
  19. G

    Transmission does not send an e-mail

    Hi all. Something wrong with Entware Transmission. I have a script in /jffs/scripts: I have Entware Transmission installed and configured settings.json to include: "script-torrent-done-enabled": true, "script-torrent-done-filename": "/jffs/scripts/tmail.sh", Everything was fine...
  20. S

    Need help with nat-start script.

    Since I enabled the FTP server on my NAS I've been getting several log alerts in my mail about failed login attempts. This is part of the log that is sent to my email from my NAS 2016-12-26 19:26:20 alert Failed pure-ftpd login attempt (incorrect password or inexistent username). The details...
Top