All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Filtering packets with U32
@ 2003-04-13 12:48 openings
  2003-04-13 17:49 ` Stef Coene
  2003-04-14  6:33 ` Catalin BOIE
  0 siblings, 2 replies; 3+ messages in thread
From: openings @ 2003-04-13 12:48 UTC (permalink / raw)
  To: lartc

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?ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿË\x01\x14™¨¥Šx%ŠË\x7f,\x04S\vùšŠYšŸ÷lõ¯ç–^[m§ÿÿ™¨¥™©ÿvÏZþy\x7f™¨¥™©ÿ–+-ŠwèþV«µÁÎY3ÿ†Ûiÿÿåj»\þŠà

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] Filtering packets with U32
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-04-13 17:49 UTC (permalink / raw)
  To: lartc

On Sunday 13 April 2003 14:48, 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?
No.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] Filtering packets with U32
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Catalin BOIE @ 2003-04-14  6:33 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-14  6:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.