Re: Multiple matches and others

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

 



* Ming-Ching Tiew <mingching.tiew@xxxxxxxxxxx> 31. May 04:
> I am try to figure out what is the meaning of multiple match
> like this :-
> 
>    iptables ......     -m state --state NEW -m mark --mark 1
> 
> is it a boolean AND of two conditions

Yes.

> or is it a boolean OR ?

No.

> If it is boolean AND, does it mean, 
> 
>    iptables ..... -m mark --mark 1 -m state --state NEW ....
> 
> this is the same as the first  ?

Yes.

> Similarly I have problem with multiple states comma together, eg :-
> 
>   iptables ....  -m state --state NEW,INVALID ......
> 
> Does it mean state NEW --and-- INVALID

No.

> or  NEW --or-- INVALID ?

Yes.

HTH,
 regards, Frank.
-- 
Sigmentation fault


[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