Re: a question about user-defined chain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 05, 2003 at 04:32:23PM +0800, sword wrote:
>    we all know that user can define chains he want,question is: which chain  will match ip packet first? In netfilter ,kernel decide to which chain the ip packet will send by where ip packet issued and where it send to,so the chain INPUT,OUTPUT,FORWARD will select to process ip packet,so what about user-defined chain?   

User defined chain must appear as a target (-j) somewhere in the
predefined system chain.

For example, you may have

iptables -A INPUT -p tcp -j user_tcp_chain

which means your user chain will be used whenever the packets
reaches the above rule and the packets are of tcp type.

Jun


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux