From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wingtung.Leung" Date: Tue, 22 May 2001 19:50:46 +0000 Subject: Re: Antwort: Re: [LARTC] tc and masquerading probs Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/