bengalih
Senior Member
So this question has been posted a couple of times with varying degrees of answers, such as:
www.snbforums.com
www.snbforums.com
The general consensus by @RMerlin is that the code only calls this to run once.
Looking at my logs below it would appear that "IDPfw" (/dev/idpfw) is causing the firewall-start script to be called again.
I can only guess this stands for "Intrusion Detection Prevention Firewall", but I have no idea what service that actually is.
Is it something I can disable? If not, then it would appear that normal operation does require the firewall-start script being executed twice.
The first time it executes is about 2:24 seconds after router boot, which appears to be the "normal" firewall-start call. You can see it below at 21:05:14:
The second time it executes is about a minute later - you can see it at 21:06:11 below:

Custom firewall rules executed multiple times
Hello, I have a slight issue regarding my custom firewall rules - they are executed 3 times at every router reboot: Jun 30 18:53:10 ovpn-server1[4125]: Initialization Sequence Completed Jun 30 18:53:11 asus: ===========< OpenVPN fw rlz applied >=========== Jun 30 18:53:19 asus: ===========<...


Why does /jffs/scripts/firewall-start script run twice?
I put iptables commands in the /jffs/scripts/firewall-start script. Why does this script run twice at boot? This is the script sequence after I reboot the router: Oct 2 11:47:40 RT-N16 admin: /jffs/scripts/services-stop Dec 31 18:00:07 0: /jffs/scripts/init-start Dec 31 18:00:12 admin...

The general consensus by @RMerlin is that the code only calls this to run once.
Looking at my logs below it would appear that "IDPfw" (/dev/idpfw) is causing the firewall-start script to be called again.
I can only guess this stands for "Intrusion Detection Prevention Firewall", but I have no idea what service that actually is.
Is it something I can disable? If not, then it would appear that normal operation does require the firewall-start script being executed twice.
The first time it executes is about 2:24 seconds after router boot, which appears to be the "normal" firewall-start call. You can see it below at 21:05:14:
Code:
May 7 21:05:14 kernel: nf_conntrack_rtsp v0.6.21 loading
May 7 21:05:14 kernel: nf_nat_rtsp v0.6.21 loading
May 7 21:05:14 custom_script: Running /jffs/scripts/firewall-start (args: eth0)
The second time it executes is about a minute later - you can see it at 21:06:11 below:
Code:
May 7 21:06:04 kernel: Init chrdev /dev/idpfw with major 191
May 7 21:06:05 kernel: IDPfw: IDPfw is ready
May 7 21:06:05 kernel: sizeof forward pkt param = 192
May 7 21:06:05 BWDPI: fun bitmap = 3
May 7 21:06:11 custom_script: Running /jffs/scripts/firewall-start (args: eth0)