ryandesign
Occasional Visitor
I'm running asuswrt merlin 382.1_2 on my ASUS RT-AC3100 router, and I'm trying to write the scripts that will configure my vlans and ports the way I want.
I'm a little unclear on which commands should go in services-start and which belong in firewall-start but I've done my best to separate them correctly, following the advice in many other threads on this forum.
The problem is that when the router boots up, it never runs the firewall-start script, so that part of the configuration is not loaded. It does run the services-start script and it works correctly. If I manually run the firewall-start script it works correctly.
The contents of my scripts is not the problem, because the problem persists if I replace my scripts with one-liners that just log what they were invoked with. A log is created for services-start, and no log is created for firewall-start. The fact that services-start is being run is mentioned in syslog.log ("custom_script: Running /jffs/scripts/services-start"); firewall-start is not mentioned there.
In the web interface, under Advanced Settings, Firewall, it says the firewall is enabled. If I use the web interface to disable the firewall, the firewall-start script runs. If I use the web interface to enable the firewall again, the firewall-start script runs. It just doesn't run at startup.
I'm a little unclear on which commands should go in services-start and which belong in firewall-start but I've done my best to separate them correctly, following the advice in many other threads on this forum.
The problem is that when the router boots up, it never runs the firewall-start script, so that part of the configuration is not loaded. It does run the services-start script and it works correctly. If I manually run the firewall-start script it works correctly.
The contents of my scripts is not the problem, because the problem persists if I replace my scripts with one-liners that just log what they were invoked with. A log is created for services-start, and no log is created for firewall-start. The fact that services-start is being run is mentioned in syslog.log ("custom_script: Running /jffs/scripts/services-start"); firewall-start is not mentioned there.
In the web interface, under Advanced Settings, Firewall, it says the firewall is enabled. If I use the web interface to disable the firewall, the firewall-start script runs. If I use the web interface to enable the firewall again, the firewall-start script runs. It just doesn't run at startup.