LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Netlimiter-like application for linux (gentoo) (https://www.linuxquestions.org/questions/linux-networking-3/netlimiter-like-application-for-linux-gentoo-260814/)

PseudoX 11-30-2004 01:48 AM

Netlimiter-like application for linux (gentoo)
 
ok here it goes.

i am new to linux and i have just recently installed Gentoo (no X) on my server (500 k6 amd, 192mb)

due to the excellent guide at gentoo.org, this was all relativily painless.

now, my server used to have win2k, and i used to use the server mainly for torrenting, using a combination of Netlimiter and Azeurus.

Netlimiter used to work like this (the way i have it and my network setup):

Netlimiter "caps" the upload and download speed of network connections on the computer it is running on only.

So if i capped javaw.exe (Azeurus) to 9kb up and 40kb down, the rest of my network would have 3kb up and 12kbs down (512/128 ADSL, bloody aust bband)


Now, what i am looking for is a program for linux (which will work under gentoo)
that has the same functionality. the ability to cap individual processes' network connections at different speeds, in realtime (so that you don't have to run the capping
program first, with the command of the program to cap (such as trickle)).

the only thing i can seem to find is trickle

now, trickled is great (daemon version of trickle), but only works on new connections, and doesn't seem to work with python scripts (im using TorrentFlux w/BitTornado).

something like wondershaper isn't any good, because all it does it prioritize, not set definite limits, which isn't any good for me,
as you can see from my diagram (or not see is more likely :D):

Code:

Internet  ----  Server W/Netlimiter
                \
                `'''' Other computers

if you can understand my problem (congrats)

is there anything that can fulfill my needs (being linux, i would be extremely surprised if not :D)

thank you very much

davidbalt 11-30-2004 10:26 AM

Look into TrafficControl (tc) and Ingress Policer.

I don't know if you can really limit by process, since Linux is more concerned about sockets and ports. But you should be able to limit the ports on which your programs communicate. For this, I think you could simply add an ipchains rule. Look into that.

Specifics I'm not sure about, but in principal it can be done.


All times are GMT -5. The time now is 09:03 AM.