Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Rick Goh Siow Mong rickgoh@cyberway.com.sg
To: lartc@vger.kernel.org
Subject: [LARTC] tc & u32  --> to match PORTS (HTTP & FTP)
Date: Sat, 03 Feb 2001 09:38:46 +0000	[thread overview]
Message-ID: <marc-lartc-98373940416962@msgid-missing> (raw)

<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>

                 reply	other threads:[~2001-02-03  9:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98373940416962@msgid-missing \
    --to=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox