* [LARTC] This simple ingress script blocks my traffic
@ 2002-09-13 8:10 Ludovic Drolez
0 siblings, 0 replies; only message in thread
From: Ludovic Drolez @ 2002-09-13 8:10 UTC (permalink / raw)
To: lartc
Hi !
I have a 56k modem internet connection and I want to control
the BW of ftp downloads. But when I run the following script,
my downloads are simply stopped (and they resume if I clear the rules):
-----------------
#!/bin/sh
DEV=ppp0
DOWNLINK\x14kbit
/sbin/ipchains -A input -i $DEV -p tcp -s 0/0 ftp-data -m 1
tc qdisc del dev $DEV root 2> /dev/null > /dev/null
tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null
tc qdisc add dev $DEV handle ffff: ingress
tc filter add dev $DEV parent ffff: protocol ip prio 50 handle \
1 fw police rate $DOWNLINK burst 3000 mtu 1500 drop flowid :1
------------------
I have a Debian woody with the 2.4.18-k6 kernel. All modules are loaded
(cls_u32, cls_fw, sch_ingress, ...)
I get the same result If I try an "u32" match instead of a
firewall mark match.
When I tcpdump, it seems that the application does not receive
incoming packets.
When I ask for qdisc stats, it answers me
"Sent 0 bytes 0 pkts (dropped 0, overlimits 0)"
Any clue ?
TIA,
Ludovic.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-13 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13 8:10 [LARTC] This simple ingress script blocks my traffic Ludovic Drolez
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.