Home > English, OSS Solutions, security, Tech Crunch > Netfilter – iptables on Debian

Netfilter – iptables on Debian

To create and save iptables rules the default Debian way, this is the way to go:

  • create your rules using the CLI [1] iptables
  • save them on the active rule by issuing a /etc/init.d/iptables save active
  • create the rules for the inactive state (when booting, for example) and save them accordingly

That way, the rules will survive a reboot.

To delete a specific rule previously saved as above:

  • go into /var/lib/iptables/active and take the line corresponding to the rule you want to delete and execute iptables with those parameters changing the beginning -A with -D

[1] Command Line Interface

This article was first written in October 2003 for
the BeezNest technical website (http://glasnost.beeznest.org/articles/88)
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: