LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-17-2003, 04:47 PM   #1
wild_beast
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
How to limit upload speed for IP?


Hi all,

is there any way to balance the upload speed for IP? I want to do this because one of my LAN mate is uploading too much data to the internet and because of he, others can't play games via internet well

Any suggestions how to slow down upload?
 
Old 11-17-2003, 04:58 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
You'd have to tell us how your lan is structured first
How does it connect to the internet?
Router? or do you have your own computer that acts like a gateway?
 
Old 11-17-2003, 05:19 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Off the top of my head I can think of
three possibilities...

1. use iptables:
http://www.netfilter.org/documentati...ase.html#quota

2. use the kernel traffic shaper modules:
/usr/src/linux/Documentation/networking/shaper.txt

3. Use one of the hits from there ;)
http://freshmeat.net/search/?q=shape...ojects&x=0&y=0

Cheers,
Tink
 
Old 11-18-2003, 12:28 AM   #4
Patrick Bulteel
Member
 
Registered: Nov 2003
Location: United Kingdom
Distribution: Mandrake, RedHat, Suse, Ubuntu, Debian
Posts: 37

Rep: Reputation: 15
Linux Advanced Routing and Traffic control - http://lartc.org

Start with their wshaper script and work from there.

Like Tinkster said, you didn't tell us your setup, but this will work if you have a linux box as a firewall/router.
 
Old 11-18-2003, 01:14 AM   #5
wild_beast
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
well my internet connection is kinda difficult, i have connected 3 dsl lines (320/128; 256/64; 256/64 (first is static and the other are dynamic) and i share all to my LAN. I'm using iproute2 for balancing dsl's.

eth0 Link encap:Ethernet HWaddr 00:50:FC:74:CC:C0
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:fcff:fe74:ccc0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:109095651 errors:411 dropped:49 overruns:411 frame:0
TX packets:135093048 errors:0 dropped:0 overruns:12 carrier:0
collisions:0 txqueuelen:100
RX bytes:1786593445 (1703.8 Mb) TX bytes:2555616133 (2437.2 Mb)
Interrupt:11 Base address:0xdc00

eth1 Link encap:Ethernet HWaddr 00:08:A1:35:94:95
inet6 addr: fe80::208:a1ff:fe35:9495/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10291436 errors:0 dropped:0 overruns:0 frame:0
TX packets:10559988 errors:0 dropped:0 overruns:3 carrier:0
collisions:0 txqueuelen:100
RX bytes:4053839174 (3866.0 Mb) TX bytes:2894511647 (2760.4 Mb)
Interrupt:10 Base address:0xe000

eth2 Link encap:Ethernet HWaddr 00:01:29:16:5C:54
inet addr:81.7.81.125 Bcast:81.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::201:29ff:fe16:5c54/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10678398 errors:0 dropped:0 overruns:0 frame:0
TX packets:11152313 errors:0 dropped:0 overruns:8 carrier:0
collisions:0 txqueuelen:100
RX bytes:3940141878 (3757.6 Mb) TX bytes:292512758 (278.9 Mb)
Interrupt:11 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10588 errors:0 dropped:0 overruns:0 frame:0
TX packets:10588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2399283 (2.2 Mb) TX bytes:2399283 (2.2 Mb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:81.7.113.125 P-t-P:81.7.112.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:580098 errors:0 dropped:0 overruns:0 frame:0
TX packets:646896 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:358629813 (342.0 Mb) TX bytes:307759008 (293.5 Mb)

ppp1 Link encap:Point-to-Point Protocol
inet addr:81.7.124.32 P-t-P:81.7.120.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:487380 errors:0 dropped:0 overruns:0 frame:0
TX packets:648282 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:267492127 (255.1 Mb) TX bytes:309794267 (295.4 Mb)

eth0 is connected to my LAN (192.168.0.1)

I will try to balance upload with the shaper. Maybe someone has an example script or something? It will be much easier for me..
 
  


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
limit upload deepaklukose Linux - Networking 3 10-02-2005 10:09 AM
bittorrent-gui: how to limit upload speed? greno Linux - Software 1 05-18-2004 03:53 PM
CBQ limit upload dracula2000 Linux - Networking 0 11-20-2003 03:50 AM
vsftpd upload limit juergenH Linux - Networking 1 11-17-2003 04:58 AM
Upload limit on FTP twantrd Linux - General 3 04-28-2003 02:03 AM


All times are GMT -5. The time now is 12:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration