All of lore.kernel.org
 help / color / mirror / Atom feed
From: Catalin BOIE <util@deuroconsult.ro>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Filtering packets with U32
Date: Mon, 14 Apr 2003 06:33:11 +0000	[thread overview]
Message-ID: <marc-lartc-105030207613738@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105023829508535@msgid-missing>

On Sun, 13 Apr 2003, openings wrote:

> hi.
>
> I want to filter packets that's source address is 192.168.0.1 or 192.168.0.25 or 192.168.0.0/28.
>
> # tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip src 192.168.0.1 flow id 1:30
> # tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip src 192.168.0.25 flow id 1:30
> # tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip src 192.168.0.0/28 flow id 1:30
>
> But the above command need to execute tc   three times.
>
> Can I filtering it with one line tc command?

You can try -batch switch. It takes a file to pasrse and run commands from
there. So, you can run once tc command...

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

      parent reply	other threads:[~2003-04-14  6:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-13 12:48 [LARTC] Filtering packets with U32 openings
2003-04-13 17:49 ` Stef Coene
2003-04-14  6:33 ` Catalin BOIE [this message]

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-105030207613738@msgid-missing \
    --to=util@deuroconsult.ro \
    --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 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.