Re: Antwort: Re: [LARTC] tc and masquerading probs

Linux Advanced Routing and Traffic Control

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

 



On 22 May 2001, Manfred Bartz wrote:

> I would like to do just that, but I can't figure out how to specify
> multiple conditions for u32 filtering.  Could you give an example?
>
> Currently I have specified filters like:
>
> tc filter add dev eth2 parent 2:0 protocol ip prio 20 u32 \
>      match ip dst 192.168.2.12 flowid 2:212

An example with multiple match conditions:

$TC filter add dev eth0 parent 1:0 protocol ip pref 2 u32 \
  match ip src "143.129.41.222 \
  match ip tos 0x10 0xff \
  flowid 1:22


> Also, I assume lower ``prio'' values mean the rule takes preference
> over rules with higher values?

I look at the preferences another way: they indicate the order in which
the filters are evaluated. Lower preference filters are evaluted before
higher preference filters.






[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux