Skip to contentSkip to conversation

Best way to put a quota on masquaraded connections.

DISCUSSION Rowan Reid 2 participants 2 messages Nov 21, 2002 – Nov 22, 2002

lore
Share & tools
lore

Rowan Reid

author
#0 lore raw

I have a linux Firewall, with about 20 Masq clients. I'm noticing that between streaming audio/video and ftp downloads users are maxing out the connection 500K T1. I would like to put a 128K limit per connection ( I'm assuming only 4 concorrent connections) with a total of 10 connections at a time. To add to that list I'm also hosting a website for which I would like to reserve 128K. So in short I would like to 1.) prioritize my connections a.webserver b. e-mail trnasmitions c.web/ftp/streaming
How do I even start .

Rowan Reid
Job Captain,
Systems Administrator
STUDIO 3 ARCHITECTS
909 982 1717

#1 lore raw
Quoted 9 lines · Rowan Reid

I have a linux Firewall, with about 20 Masq clients. I'm noticing that between streaming audio/video and ftp downloads users are maxing out the connection 500K T1. I would like to put a 128K limit per connection ( I'm assuming only 4 concorrent connections) with a total of 10 connections at a time. To add to that list I'm also hosting a website for which I would like to reserve 128K. So in short I would like to 1.) prioritize my connections a.webserver b. e-mail trnasmitions c.web/ftp/streaming
How do I even start .

http://www.linuxguruz.org/iptables/howto/2.4routing.html might be a good start, the Linux 2.4 Advanced Routing HowTo. It explains different queuing approaches available, and creation of routing rules with iproute2. (among other things) You can use iptables to add mangle-prerouting rules that set TOS for various packet types/sources/destinations, then use some routing rules and a queuing discipline to prioritize and/or limit them.

j