Re: icmp-type question

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

 



On 27/06/07, Grant Taylor <gtaylor@xxxxxxxxxxxxxxxxx> wrote:
On 6/27/2007 12:09 PM, Mike Wright wrote:
> Depending on what else you are doing you may need matching rules in your
> forward chains, too.

This is why a (sub)chain to do the filtering is nice.  Jump to the same
(sub)chain from both filter:INPUT and filter:FORWARD and return out of
it with any traffic that passes back to the rule after the one that
jumped in to it.  Just have your (sub)chain DROP the packet if it does
match and allow all non-matching traffic to fall off the end and RETURN.
  Seeing as how it is a (sub)chain, I don't think you can set a policy
of RETURN and you would have to create a rule to RETURN, but this is a
non-issue.

How do you create sub-chains?
I've heard the term before but never found an example that uses it.

Many thanks for all the advice guys.


[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