What's new

firewall-start does not get executed after Reboot

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!
 

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!

Members online

Back
Top