Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-13-2004, 10:53 PM   #1
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
Question Process order of iptables chain rules.

Dear experts,

I have some confusions over the use of iptables.

can u explain the order of processes of iptables?

Example, i have added rules to INPUT, OUTPUT, FORWARD, POSTROUTING, PREROUTING chains. In what order does iptables process rules in these chains ?

Old 07-14-2004, 12:21 AM   #2
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
As far as the overall flow of packets through netfilter/iptables checkout this guide:

As far as the ordering of rule in the chain: The rules will be processed from top to bottom of each chain (you can view the order of rules in a chain with iptables -L or iptables -t nat -L). Keep in mind though that a packet does not have to pass through every chain and will do so in different orders depending on the flow of traffic (local packets will pass through a different chain order than will packets being forwarded through the system).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables chain modification gizza23 Linux - Networking 2 07-10-2005 05:45 AM
IPTABLES how to add/edit/delete rules in existing chain? debug019 Linux - Newbie 1 11-11-2004 02:48 PM
Iptables keeps changing the order of the rules –will this still work? dholingw Linux - Security 11 06-22-2004 12:01 AM
iptables and LD chain spawing? lode Linux - Networking 8 04-21-2004 03:30 AM
iptables OUTPUT rules: DROP by process (PID)? gregory76 Linux - Security 6 07-11-2003 04:28 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration