From: Ludovic Drolez <ludovic.drolez@freealter.com>
To: lartc@vger.kernel.org
Subject: [LARTC] This simple ingress script blocks my traffic
Date: Fri, 13 Sep 2002 08:10:57 +0000 [thread overview]
Message-ID: <marc-lartc-103190464728433@msgid-missing> (raw)
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/
reply other threads:[~2002-09-13 8:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-103190464728433@msgid-missing \
--to=ludovic.drolez@freealter.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox