Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Jarek Poplawski <jarkao2@o2.pl>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: tc filter
Date: Thu, 10 Aug 2006 13:38:54 +0000	[thread overview]
Message-ID: <ebfcs8$d3n$1@sea.gmane.org> (raw)

On 03-08-2006 18:06, doudouyam wrote:
> Hi,
> Is it possible to make a filter with tc which exclude an IP like iptables ??
> 
> ex:
> iptable -t mangle -A PREROUTING -i eth0 -d ! 192.168.1.222 
> <http://192.168.1.222> -j MARK ...

Maybe there is something like this, I don't know, but you can try 
two filters in turn e.g.:

# tc filter add dev eth0 parent 1: proto ip pref 100 \
	u32 match ip dst 192.168.1.222 police drop

(or some other "flowid 1:xx" instead of "police drop")

# tc filter add dev eth0 parent 1: proto ip pref 101 \
	u32 match ip dst 192.168.1.0/24 flowid 1:99

Jarek P.

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

             reply	other threads:[~2006-08-10 13:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 13:38 Jarek Poplawski [this message]
2006-08-16 10:16 ` [LARTC] Re: tc filter Jarek Poplawski
2006-08-18 10:28 ` Andy Furniss
2006-08-21  7:56 ` Jarek Poplawski

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='ebfcs8$d3n$1@sea.gmane.org' \
    --to=jarkao2@o2.pl \
    --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