What's new
  • 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!

Where are the default iptables stored ?

Status
Not open for further replies.

Denna

Senior Member
If you install the Asuswrt-Merlin firmware, wiping out any previous configuration, where are the default iptables rules stored ?

Is there any configuration in the WebGUI that will add/modify/delete iptables rules ?
 
There are no "default rules", everything is configured by the firmware code.
 
Is there any configuration in the WebGUI that will add/modify/delete iptables rules ?

They're in the firmware, but those are in the realm of the 3rd rail - touch them in the firmware, and you'll die.

There is a mechanism to extend them via scripts - there's plenty of posts/threads on how to do this...
 
Hard to believe these comments have lasted so long as I have had to begin the same journey. First, Merlinwrt is the firmware which is an embedded linux system, get over it.

The rules are built by shell scripts computing and issuing iptables commands, so there is no passive and declarative file, just the /jffs/scripts/firewall-start script doing its thing to kickoff the entire nearly incomprehensible process.

The convention to add your own rules or override the defaults is to put your iptables commands at the end of /jffs/scripts/firewall-start or possibly create /jffs/scripts/nat-start and make it executable for nat rules. When the router boots or the services restart those scripts will run.
 
Hard to believe these comments have lasted so long as I have had to begin the same journey. First, Merlinwrt is the firmware which is an embedded linux system, get over it.

The rules are built by shell scripts computing and issuing iptables commands, so there is no passive and declarative file, just the /jffs/scripts/firewall-start script doing its thing to kickoff the entire nearly incomprehensible process.

The convention to add your own rules or override the defaults is to put your iptables commands at the end of /jffs/scripts/firewall-start or possibly create /jffs/scripts/nat-start and make it executable for nat rules. When the router boots or the services restart those scripts will run.
Why are you replying to a post that's over eight years old?

Your answer is also incorrect. The non-custom rules are not built by those user shell scripts but rather they are generated by the firmware code as previously stated by the developer.
 
Last edited:
1757944939898.png
 
Status
Not open for further replies.

Similar threads

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!
Back
Top