What's new

firewall-start does not get executed after Reboot

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

snbsesei

New Around Here
Hi all :)

I have to put a new iptable rule. For that I have created a script and named it "firewall-start" and located it under /jffs/scripts/
If I run the script manually evertyhing is working as expected. But the script will not get executed after a reboot. The Log doesn't show anything about the execution :(

cat /jffs/scripts/firewall-start
#!/bin/sh
logger -t "$0" "Starting IPTABLES Configuration"
iptables -I FORWARD 1 -s 192.168.178.0/24 -j ACCEPT
logger -t "$0" "Hey, I'm working!"



Could you assist me with this?
Thanks in advance!


FW: 380.70
Model RT-AC66U


Here is the Log Output:
https://pastebin.com/CrKDNCgp
 
Last edited:
Have you tried?
chmod +x firewall-start
 
Try changing the logger statements, it can be a bit temperamental with the -t parameter. For example:

logger -t $(basename $0) "Starting IPTABLES Configuration"
 
Ah, just seen this in your log file:

Aug 1 02:00:30 custom_script: Found firewall-start, but custom script execution is disabled!
 
Ah, just seen this in your log file:

Aug 1 02:00:30 custom_script: Found firewall-start, but custom script execution is disabled!


Damn, thank you so much. Don't know, I have overseen this log entry every time. Now it seem to work fine!

Thanks guys, have a nice day!
There should be a hint to activate the custom-scripts in github!
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top