Welcome to the Linux Foundation Forum!

How to make IpTable Rules immutable in linux

I work on Linux and want to add rules to iptable. I want these rules to be immutable anyway (either changed or deleted). What should I do? Note that for me the rules that are running and kept in memory are important, not the rules that are stored in the iptable rules file.

I found a way to save the rules in a file and compare them with the rules backup file and detect the changes, but it's not a good way, I think it's too slow and there are ways to bypass this check.

Categories

Upcoming Training