* Re: [LARTC] limiting upload rate
@ 2005-04-04 21:05 Antonio Pérez
0 siblings, 0 replies; only message in thread
From: Antonio Pérez @ 2005-04-04 21:05 UTC (permalink / raw)
To: lartc
hi,
I have a lan with internet conection, the gateway is a server linux. I
have a client (192.168.0.33) that i want limit his upload rate to
64kbit/s so I do:
tc qdisc del dev ppp0 root
tc qdisc add dev ppp0 root handle 1: htb r2q 1
tc class add dev ppp0 parent 1: classid 1:2 htb rate 64kbit ceil 64kbit
burst 6k
tc filter add dev ppp0 parent 1: protocol ip prio 1 handle 0x1 fw
classid 1:2
iptables -t mangle -A PREROUTING -s 192.168.0.33 -j MARK --set-mark 0x1
iptables -t mangle -A PREROUTING -s 192.168.0.33 -j RETURN
but this do not work, any sugestions?
thanks.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-04 21:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-04 21:05 [LARTC] limiting upload rate Antonio Pérez
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.