Re: combining fw and u32

Linux Advanced Routing and Traffic Control

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

 



On Tue, 1 Feb 2005, richard lucassen wrote:

Is it possible to create 1 filter rule using fw selectors AND u32
selectors?

Richard.

http://kernel.umbrella.ro if you don't have 2.6.11-rc1. If you have the latest iproute2 you can do:

# send a packet with mark 3 and tcp with dport >= 1024 to 1:50
tc filter add dev dummy0 \
	protocol ip \
	parent 1: prio 13 \
	u32 \
	match mark 0x0003 0xffff \
	match ip dport 0x0400 0x0400 \
	flowid 1:50

See this link for more examples:
http://kernel.umbrella.ro/net/mark_in_u32/examples.txt


-- ___________________________________________________________________ Recursion: see recursion

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
| Public key and email address:                                    |
| http://www.lucassen.org/mail-pubkey.html                         |
+------------------------------------------------------------------+
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


--- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/ _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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