* [LARTC] why there is any traffic in default class?
@ 2005-01-31 9:43 Denis Kot
2005-01-31 9:55 ` Tóth Nándor
2005-01-31 10:11 ` Denis Kot
0 siblings, 2 replies; 3+ messages in thread
From: Denis Kot @ 2005-01-31 9:43 UTC (permalink / raw)
To: lartc
I have:
tc qdisc add dev imq0 root handle 1: htb default 30
tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit
tc class add dev imq0 parent 1:1 classid 1:30 htb rate 64kbit ceil 512kbit
then:
iptables -t mangle -A PREROUTING -i ppp0 -s 192.168.2.2 -j IMQ --todev 0
tc class add dev imq0 parent 1:1 classid 1:22 htb rate 64kbit ceil 128kbit
tc filter add dev imq0 protocol ip parent 1:0 prio 1 u32 match ip src
192.168.2.2 flowid 1:22
so, as I understand any traffic from source 192.168.2.2 and from
interface ppp0 must be going directly in to class 1:22, so default
class 30 must not have any traffic. isn´t it?
--
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78
_______________________________________________
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] why there is any traffic in default class?
2005-01-31 9:43 [LARTC] why there is any traffic in default class? Denis Kot
@ 2005-01-31 9:55 ` Tóth Nándor
2005-01-31 10:11 ` Denis Kot
1 sibling, 0 replies; 3+ messages in thread
From: Tóth Nándor @ 2005-01-31 9:55 UTC (permalink / raw)
To: lartc
Hi!
Denis Kot wrote:
> I have:
>
> tc qdisc add dev imq0 root handle 1: htb default 30
> tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit
> tc class add dev imq0 parent 1:1 classid 1:30 htb rate 64kbit ceil 512kbit
>
> then:
>
> iptables -t mangle -A PREROUTING -i ppp0 -s 192.168.2.2 -j IMQ --todev 0
If i understand you correctly, it should be:
iptables -t mangle -A PREROUTING -i ppp0 -j IMQ --todev 0
iptables -t mangle -A PREROUTING -s 192.168.2.2 -j IMQ --todev 0
Your rule means: traffic which came from ppp0 AND has source ip
192.168.2.2 go to IMQ.
> tc class add dev imq0 parent 1:1 classid 1:22 htb rate 64kbit ceil 128kbit
> tc filter add dev imq0 protocol ip parent 1:0 prio 1 u32 match ip src
> 192.168.2.2 flowid 1:22
>
> so, as I understand any traffic from source 192.168.2.2 and from
> interface ppp0 must be going directly in to class 1:22, so default
> class 30 must not have any traffic. isn´t it?
This part may or may not be ok, i do not know.
--
Udv,
Nandor
_______________________________________________
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] why there is any traffic in default class?
2005-01-31 9:43 [LARTC] why there is any traffic in default class? Denis Kot
2005-01-31 9:55 ` Tóth Nándor
@ 2005-01-31 10:11 ` Denis Kot
1 sibling, 0 replies; 3+ messages in thread
From: Denis Kot @ 2005-01-31 10:11 UTC (permalink / raw)
To: lartc
my rules is right, cause ppp0 is vpn client who has (applied by pppd)
ip 192.168.2.2. so I want any traffic from ppp0 AND 192.168.2.2 route
to class 1:22
On Mon, 31 Jan 2005 10:55:53 +0100, Tóth Nándor <nug@sch.bme.hu> wrote:
> Hi!
>
> Denis Kot wrote:
> > I have:
> >
> > tc qdisc add dev imq0 root handle 1: htb default 30
> > tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit
> > tc class add dev imq0 parent 1:1 classid 1:30 htb rate 64kbit ceil 512kbit
> >
> > then:
> >
> > iptables -t mangle -A PREROUTING -i ppp0 -s 192.168.2.2 -j IMQ --todev 0
>
> If i understand you correctly, it should be:
> iptables -t mangle -A PREROUTING -i ppp0 -j IMQ --todev 0
> iptables -t mangle -A PREROUTING -s 192.168.2.2 -j IMQ --todev 0
>
> Your rule means: traffic which came from ppp0 AND has source ip
> 192.168.2.2 go to IMQ.
>
> > tc class add dev imq0 parent 1:1 classid 1:22 htb rate 64kbit ceil 128kbit
> > tc filter add dev imq0 protocol ip parent 1:0 prio 1 u32 match ip src
> > 192.168.2.2 flowid 1:22
> >
> > so, as I understand any traffic from source 192.168.2.2 and from
> > interface ppp0 must be going directly in to class 1:22, so default
> > class 30 must not have any traffic. isn´t it?
>
> This part may or may not be ok, i do not know.
>
> --
> Udv,
> Nandor
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
--
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78
_______________________________________________
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:[~2005-01-31 10:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 9:43 [LARTC] why there is any traffic in default class? Denis Kot
2005-01-31 9:55 ` Tóth Nándor
2005-01-31 10:11 ` Denis Kot
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.