Results 1 to 5 of 5
Hi to everyone. I' ve got one more problem. I installed Amule a P2P software and it works OK. Now I would like to limit my upload in order that ...
- 06-24-2007 #1Linux Newbie
- Join Date
- Feb 2006
- Location
- Slovenia
- Posts
- 162
Upload limit problem
Hi to everyone. I' ve got one more problem. I installed Amule a P2P software and it works OK. Now I would like to limit my upload in order that Amule does not take all my available upload. I spent a few days on studying ip tables, but still I can not get thing work as I would like. The problem is that when I run the my uploadlimit script it does not only limit the port I specified(4662) in the script but all the ports. At least it looks so, because also Mozilla and other applications work very slow when I run the script. Can someone help me with this
Thanx for your time guys.
PS: below is my script
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1 classid 1:10 htb rate 20kbit
tc class add dev eth0 parent 1 classid 1:20 htb rate 256kbit
tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match \ip dport 4662 0xffff flowid 1:10
echo "Upload limit is set"
- 06-24-2007 #2
I don't know about amule but ktorrent allows you to limit the upload bandwidth in the configuration.
- 06-25-2007 #3Linux Newbie
- Join Date
- Feb 2006
- Location
- Slovenia
- Posts
- 162
You are right ogalthorp, AMule alows that to, but normally if you limit the upload in the configuration of the program, the program will note that and as a consequence you will have also lower download
Thats why I would like it to do via linux kernel. Is there someone that has more experience with ip tables? Thanx again.
- 06-25-2007 #4
I think you will find the answer here
Linux iptables HOWTO: Using iptables
- 06-27-2007 #5Linux Newbie
- Join Date
- Feb 2006
- Location
- Slovenia
- Posts
- 162
Thanx, gogalthorp that is very usefull, but still I haven't found the mistake in my script
I'll check the tutorial once again.


Reply With Quote