LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2003, 03:50 PM   #1
SchwipSchwap
Member
 
Registered: Aug 2002
Distribution: Suse8.0, Mandrake, Knoppix
Posts: 92

Rep: Reputation: 15
Question Problem mldonkey traffic shaping


Hi!

i try to shape my upload from mldonkey

mldonkey runs with useruid 1003

my max_hard_upload_rate is set to 0

my shaping script succesfully shapes the upload to 64kbit

mldonkey seems to connect to enough sources so setting syn,ack ... to 1:30 seems to work

but my dl stucks at 0-3kb

what could be wrong any help?

------------------------------------------------------------------------------------
#! /bin/sh

set -evx

logger "firewall: initializing for $IFNAME (local IP $IPLOCAL, DNS servers
$DNSSERVERS)"

# --- shaping ----------------------------------------------------------
tc qdisc del dev $IFNAME root || true

tc qdisc add dev $IFNAME root handle 1: htb default 10
tc class add dev $IFNAME parent 1: classid 1:1 htb rate 128kbit
burst 2k
tc class add dev $IFNAME parent 1:1 classid 1:10 htb rate 126kbit ceil 128kbit
burst 2k
tc class add dev $IFNAME parent 1:1 classid 1:20 htb rate 1kbit ceil 64kbit
burst 2k
tc class add dev $IFNAME parent 1:1 classid 1:30 htb rate 1kbit ceil 64kbit
burst 2k
tc qdisc add dev $IFNAME parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $IFNAME parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $IFNAME parent 1:30 handle 30: sfq perturb 10
tc filter add dev $IFNAME parent 1:0 protocol ip prio 1 handle 4 fw classid 1:20
tc filter add dev $IFNAME parent 1:0 protocol ip prio 1 handle 5 fw classid 1:30

## mark mldonkey for shaping
iptables -t mangle -A OUTPUT -m owner --uid-owner 1003 -j MARK --set-mark 4
iptables -t mangle -A OUTPUT -p tcp --tcp-flags SYN,ACK,FIN,RST NONE -m owner
--uid-owner 1003 -j MARK --set-mark 5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Traffic Shaping jrmann1999 Linux - Networking 3 10-23-2008 12:43 PM
Traffic Shaping SchwipSchwap Linux - Newbie 2 10-23-2008 12:42 PM
Traffic shaping shy Linux - Networking 2 11-30-2004 09:51 AM
Traffic Shaping nemesisza Linux - Networking 1 03-21-2004 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration