All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tc & u32  --> to match PORTS (HTTP & FTP)
@ 2001-02-03  9:38 Rick
  0 siblings, 0 replies; only message in thread
From: Rick @ 2001-02-03  9:38 UTC (permalink / raw)
  To: lartc

<PRE>Hello all,
I was trying to allocate to a couple of ports (HTTP and FTP) with the
following codes:

tc filter add dev $device parent 2:0 prio 3 protocol ip u32
tc filter add dev $device parent 2:0 prio 3 handle 1: u32 divisor 256
tc filter add dev $device parent 2:0 prio 3 handle 2: u32 divisor 256
###To match to IP and ports 80 (0x50) and 21 (0x15)
tc filter add dev $device parent 2:0 prio 3 u32 ht 1:6: match ip dst
192.168.1.20 \
    match tcp dst 0x50 0xff flowid 2:2
tc filter add dev $device parent 2:0 prio 3 u32 ht 2:6: match ip dst
192.168.1.20 \
    match tcp dst 0x15 0xff flowid 2:3

Am i missing something here??
Somehow, it doesnt work. I know there's another way which is to use
ipchains. But however, i hope to get this way of using hash tables to work.


Regards.




</PRE>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-02-03  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-03  9:38 [LARTC] tc & u32 --> to match PORTS (HTTP & FTP) Rick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.