IPTables Firewall Commands


IPTables Firewall Commands
These options specify the specific action to perform.  Only one of them can be specified on the command line unless otherwise specified  below. For  all the long versions of the command and option names, you need to use only enough letters to ensure that iptables can differentiate it from all other options.

IPTables -A
Append one or more rules to the end of the selected chain.

IPTables -D
Delete one or more rules from the selected chain.

IPTables -I
Insert one or more rules in the selected chain as the given rule number.

IPTables -R
Replace a rule in the selected chain.

IPTables -L
List all rules in the selected chain.

IPTables -F
Flush the selected chain.

IPTables -Z
Zero the packet and byte counters in all chains.

IPTables -N
Create a new user-defined chain by the given name.

IPTables -X
Delete the optional user-defined chain specified.

IPTables -P
Set the policy for the chain to the given target.

IPTables -E
Rename the user specified chain to the user supplied name.

IPTables -h
(Help) Give a (currently very brief) description of the command syntax.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s