Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: samudrala@us.ibm.com
To: lartc@vger.kernel.org
Subject: [LARTC] ingress with u32 filter
Date: Thu, 22 Mar 2001 01:04:12 +0000	[thread overview]
Message-ID: <marc-lartc-98522309605860@msgid-missing> (raw)


I could not get u32 filter work with ingress qdisc.

I tried the following commands to limit the incoming rate from 10.1.1.1 to
10kbit/s.
     tc qdisc add dev eth1 handle ffff:0 ingress
     tc filter add dev eth1 parent ffff:0 protocol ip prio 50 u32 match ip
src 10.1.1.1 police rate 10kbit burst 10kbit mtu 1500 drop
But looks like the filter is not matching any incoming packets from
10.1.1.1
tc -d -s filter is not showing any matched packets.

I was able to get this work using iptables and fw filter with the following
commands.
     iptables -A PREROUTING -t mangle -p tcp -s 10.1.1.1 -j MARK --set-mark
1
     tc qdisc add dev eth1 handle ffff:0 ingress
     tc filter add dev eth1 parent ffff:0 protocol ip prio 50 handle 1 fw
police rate 10kbit burst 10kbit mtu 1500 drop

Is there any restriction that u32 filter cannot be attached to ingress
qdisc? Or am i missing something in my configuration.

Thanks
Sridhar




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

             reply	other threads:[~2001-03-22  1:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-22  1:04 samudrala [this message]
2001-03-23 21:49 ` [LARTC] ingress with u32 filter samudrala

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-98522309605860@msgid-missing \
    --to=samudrala@us.ibm.com \
    --cc=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