* [LARTC] My filter setting is right?
@ 2003-04-20 7:27 openings
2003-04-20 21:36 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: openings @ 2003-04-20 7:27 UTC (permalink / raw)
To: lartc
dear, folks.
I want to following policy.
========= policy which i want (eth0)=======
eth0
HTB(1:0)
|
1:1
/ \
/ \
/ \
1:10 1:11
host 1(dst) host 2(dst)
/ | \ / | \
/ | \ / | \
/ | \ / | \
/ | \ / | \
1:21 1:22 1:23 1:31 1:32 1:33
port80 port22 etc. port80 port22 etc.
=========================
i use following filter setting (pseudo setting).
is this right?
# for traffic to host1
filter add dev eth0 , prio 0 , match ip dst [host1 IP],match ip dport 80, flowid 1:21
filter add dev eth0 , prio 1 , match ip dst [host1 IP],match ip dport 22, flowid 1:22
filter add dev eth0 , prio 2 , match ip dst [host1 IP],flowid 1:23
#for traffic to host2
filter add dev eth0 , prio 0 , match ip dst [host2 IP],match ip dport 80, flowid 1:31
filter add dev eth0 , prio 1 , match ip dst [host2 IP],match ip dport 22, flowid 1:32
filter add dev eth0 , prio 2 , match ip dst [host2 IP],flowid 1:33
===========================
all etc traffic which destined to host1 must classify to class 1:23.
my filter's priority setting is right?ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿË\x01\x14™¨¥Šx%ŠË\x7f,\x04S\vùšŠYšŸ÷lõ¯ç–^[m§ÿÿ™¨¥™©ÿvÏZþy\x7f™¨¥™©ÿ–+-ŠwèþV«µÁÎY3ÿ†Ûiÿÿåj»\þŠà
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] My filter setting is right?
2003-04-20 7:27 [LARTC] My filter setting is right? openings
@ 2003-04-20 21:36 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-04-20 21:36 UTC (permalink / raw)
To: lartc
On Sunday 20 April 2003 09:27, openings wrote:
> dear, folks.
>
> I want to following policy.
>
> ========= policy which i want (eth0)=======>
> eth0
> HTB(1:0)
>
> 1:1
> / \
> / \
> / \
> 1:10 1:11
> host 1(dst) host 2(dst)
> / | \ / | \
> / | \ / | \
> / | \ / | \
> / | \ / |
> \ 1:21 1:22 1:23 1:31 1:32 1:33 port80
> port22 etc. port80 port22 etc.
>
> =========================>
> i use following filter setting (pseudo setting).
>
> is this right?
>
> # for traffic to host1
> filter add dev eth0 , prio 0 , match ip dst [host1 IP],match ip dport 80,
> flowid 1:21 filter add dev eth0 , prio 1 , match ip dst [host1 IP],match ip
> dport 22, flowid 1:22 filter add dev eth0 , prio 2 , match ip dst [host1
> IP],flowid 1:23
>
> #for traffic to host2
> filter add dev eth0 , prio 0 , match ip dst [host2 IP],match ip dport 80,
> flowid 1:31 filter add dev eth0 , prio 1 , match ip dst [host2 IP],match ip
> dport 22, flowid 1:32 filter add dev eth0 , prio 2 , match ip dst [host2
> IP],flowid 1:33
>
> ===========================
>
> all etc traffic which destined to host1 must classify to class 1:23.
> my filter's priority setting is right?
The different prio's in the filters are not needed. You only need them to
determine the order of the filters. In your case, order doesn't mather for
the prio0 and the prio1 filters.
I'm not sure myself, but the lower the prio, the higher the priority. So in
your filter setup, your catch-all filter should have the lowest prio.
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] 2+ messages in thread
end of thread, other threads:[~2003-04-20 21:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-20 7:27 [LARTC] My filter setting is right? openings
2003-04-20 21:36 ` Stef Coene
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.