limit upload bandwidth in linux

GhettoFob

Diamond Member
Apr 27, 2001
6,800
0
76
Hi, I recently had cable internet installed and when I upload at max speed, my downloads go down dramatically. I'm wondering what programs or scripts are recommended for limiting bandwidth in linux. I did a search and basically pulled up some stuff on QoS, but I'm not sure where I should begin. BTW, I'm running Gentoo if that makes a difference. Thanks in advance.
 

Heisenberg

Lifer
Dec 21, 2001
10,621
1
0
It's usually easier just to limit the bandwidth of whatever program is hogging the bandwidth. There's usually an option in the program somewhere.
 

GhettoFob

Diamond Member
Apr 27, 2001
6,800
0
76
I found Wonder Shaper but when I tried to run it I get "RTNETLINK answers: Invalid argument". Does anyone have experience with this script? I think I put in QoS support in my kernel, but I'm going to recompile it now anyways.
 

jonmullen

Platinum Member
Jun 17, 2002
2,517
0
0
There is more than just the QoS stuff you need for most traffic shapping. Check your config file and make sure you have:
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y

The script probably also needs iproute2 installed more specifically the tc app. If you have iproute2 installed and working it is really easy to do what you want to do if you have any questions just ask.
 

GhettoFob

Diamond Member
Apr 27, 2001
6,800
0
76
Yeah I just found trickle and I'm giving it a try and I'll also check out the config file, thanks for the help! :beer:
 

GhettoFob

Diamond Member
Apr 27, 2001
6,800
0
76
This is part of the verbose output from running wshaper, anyone know what it means or how I could fix it? BTW, I added those two lines to my config file and recompiled my kernel, but still no luck.


+ '[' '' = status ']'
+ tc qdisc del dev eth0 root
+ tc qdisc del dev eth0 ingress
+ '[' '' = stop ']'
+ tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 10mbit
RTNETLINK answers: Invalid argument
+ tc class add dev eth0 parent 1: classid 1:1 cbq rate 128kbit allot 1500 prio 5 bounded isolated
RTNETLINK answers: Invalid argument
+ tc class add dev eth0 parent 1:1 classid 1:10 cbq rate 128kbit allot 1600 prio 1 avpkt 1000
RTNETLINK answers: Invalid argument
+ tc class add dev eth0 parent 1:1 classid 1:20 cbq rate 115kbit allot 1600 prio 2 avpkt 1000
RTNETLINK answers: Invalid argument
+ tc class add dev eth0 parent 1:1 classid 1:30 cbq rate 102kbit allot 1600 prio 2 avpkt 1000
RTNETLINK answers: Invalid argument
+ tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
RTNETLINK answers: Invalid argument
+ tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
RTNETLINK answers: Invalid argument
+ tc qdisc add dev eth0 parent 1:30 handle 30: sfq perturb 10
RTNETLINK answers: Invalid argument
+ tc filter add dev eth0 parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0x ff flowid 1:10
RTNETLINK answers: Invalid argument
+ tc filter add dev eth0 parent 1:0 protocol ip prio 11 u32 match ip protocol 1 0xff flowid 1:10
RTNETLINK answers: Invalid argument
+ tc filter add dev eth0 parent 1: protocol ip prio 12 u32 match ip protocol 6 0 xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 flowid 1:10
RTNETLINK answers: Invalid argument
+ tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip src 80 flowi d 1:30
RTNETLINK answers: Invalid argument
+ tc filter add dev eth0 parent 1: protocol ip prio 18 u32 match ip dst 0.0.0.0/ 0 flowid 1:20
RTNETLINK answers: Invalid argument
+ tc qdisc add dev eth0 handle ffff: ingress
RTNETLINK answers: Invalid argument
+ tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match ip src 0.0.0 .0/0 police rate 3000kbit burst 10k drop flowid :1
RTNETLINK answers: Invalid argument
 

Haden

Senior member
Nov 21, 2001
578
0
0
QoS is turned on? you need:
[*] QoS and/or fair queueing, and nearly everything there (use modules for shedulers if you want).
 

StuckMojo

Golden Member
Oct 28, 1999
1,069
1
76
like i said, that message doesn't mean its not working
i use shaper, i get the same messages, but it works fine
 

NorcoO1

Junior Member
Jan 11, 2002
24
0
0
Does anybody have something similar for windows? I need to cut a family members internet access at midnight everynight by restricting his IP address, and also if I could restrict bandwidth for the IP address that would be great too.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
you could just go to your router and take away the ip that the dhcp server provided to the machine.

I hope this helps,
pitupepito

Another thing that you can try is setting up access lists in linux and restrict or give a higher priority to processes using an specific port for example you can give applications using port 80 a higher priority than applications using port 21 or something like that.

I hope this helps,
pitupepito
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |