Skip to contentSkip to conversation

locking iptables configuration

DISCUSSION Mr Dash Four 1 participant 1 message Dec 13, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

Would it be possible to add an option to iptables preventing it from making any (rule) changes to the chains, in effect locking its configuration?

There is something similar done with auditctl - "auditctl -e 2" locks and prevents any further changes to its configuration and logs any such attempts to the audit log file. It would be nice if I could load my iptables(-saved) configuration/rules and then use that option to lock it so that it cannot be changed until the next time the machine reboots. Is this (easily) doable?