|
![]() |
|
| Author |
|
|||||||
|
Tollaz0r!
Posts: 8205
Location: Brisbane, Queensland
|
Hello all
I've recently acquired a laptop and installed Fedora Core 8 (700ish meg version) on it. It is set up and working fine. I'm a linux noob and I'm looking to find a program that will limit the amount of bandwidth any 1 person can use, dynamically if possible. So no one person on the network can have it all causing lag in games for everyone else. I'd also like the program to prioritize packets so that data for games like TF2 are passed to the top of the que. I've had a search on google allthough I'm not sure exactly what I'm looking for. Can people offer suggestions on what I should use, or where I should look? Cheers. P.S. TF2 is good fun. |
|||||||
| #0 08:52pm 19/11/07 |
|
|||||||
|
system
|
--
|
|||||||
| #0 |
|
|||||||
|
trog
AGN Admin
Posts: 21953
Location: Brisbane, Queensland
|
good question; I could probably muddle my way through limiting http traffic using a squid proxy or something but I don't know how to do it for all traffic (which I think is what you want to do?)
|
|||||||
| #1 09:47pm 19/11/07 |
|
|||||||
|
Tollaz0r!
Posts: 8206
Location: Brisbane, Queensland
|
Yer I'm looking to do it across all traffic. This computer will be between the modem and router. It is possible to do it this way isn't it?
|
|||||||
| #2 10:57pm 19/11/07 |
|
|||||||
|
koopz
Posts: 6499
Location: Queensland
|
Smoothwall 3 has the functionality now I'm told..
I don't set up nix routers for friends/rellies anymore though - too slack |
|||||||
| #3 11:01pm 19/11/07 |
|
|||||||
|
parabol
Posts: 3770
Location: Brisbane, Queensland
|
I used to do this manually with iptables/tc commands. Effective, but insanely messy and complex. Alternatively there seem to be a couple of programs that do it for you. For example:
http://www.mastershaper.org/index.php/Main_Page Haven't tried it myself but the screenshots look promising, and the program is still being developed. They have an online demo that you can try out to see all the options. I recommend checking it out, you just need a browser: http://www.mastershaper.org/index.php/Demo last edited by parabol at 23:05:04 19/Nov/07 |
|||||||
| #4 11:05pm 19/11/07 |
|
|||||||
|
Habib
Posts: 110
Location: Brisbane, Queensland
|
So you're going to set up your laptop as a NATting gateway, then?
By the looks of it iptables + tc should do the trick (or just pure tc, easier to use iptables with packet marking) http://lartc.org/howto/lartc.cookbook.fullnat.intro.html If you copy the example, you can use iptables rules to set the priority. Then you can prioritise TF2 with something like: iptables -t mangle -A PREROUTING -p udp --dport 22000 -j MARK --set-mark 0x1 (replacing 22000 with whatever port tf2 normally uses) |
|||||||
| #5 11:19pm 19/11/07 |
|
|||||||
|
Tollaz0r!
Posts: 8207
Location: Brisbane, Queensland
|
I was hoping to avoid using command line and taking the noobish way out by using a GUI.
I'll give mastershaper a crack, if it doesn't do the trick then I'll work the iptables/tc stuff. Thanks guys. |
|||||||
| #6 11:28pm 19/11/07 |
|
|||||||
|
teq
Posts: 521
Location: Brisbane, Queensland
|
freebsd + dummynet = win
|
|||||||
| #7 02:21pm 21/11/07 |
|
|||||||
|
system
|
--
|
|||||||
| #7 |
|
|||||||
|
| ||||||||