LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-18-2010, 10:58 AM   #1
tobelinuxer
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
How to allocate percentages of internet bandwidth for different local connections?


Hi guys,

My linux box has 3 network adapter. eth0 connects with ISP, eth1 is for staff network, eth2 is for public user. I want to limit the usage of internet bandwidth. for example, the traffic going through eth0, 75% is for staff network, 25% is for public user.

In addition, I setup shorewall on it for port forwarding and filtering, but I felt the traffic shaping of shorewall is complex. I don't need the specific TOS, but only the percentage. could you give me some suggestion?

Which software or package I should use to achieve this goal?

Thanks.

Last edited by tobelinuxer; 05-18-2010 at 11:16 AM.
 
Old 05-18-2010, 10:37 PM   #2
morphix
Member
 
Registered: Nov 2007
Location: Newcastle, Australia
Distribution: Ubuntu, Debian, Arch
Posts: 53

Rep: Reputation: 15
There may be a better way to do this, but have you had a look at squid yet?

You can set 'pools' and have certain bandwidth per pool.

You need to specify each network range (in the case the staff and public user networks are on different subnets) via ACLs and then specify what pool they are in.

From there you can specify how much bandwidth to allow for the overall pool and then each individual IP address.

Using this, you can specify a maximum bandwidth per pool.
 
Old 05-19-2010, 07:57 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Might change the shorewall to untangle on a VM and run everything through the untangle or just make the entire box untangle.

Last edited by jefro; 05-19-2010 at 09:17 PM.
 
Old 05-19-2010, 08:02 PM   #4
kurwongbah
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 24
This might help.

http://www.linuxquestions.org/questi...ith-tc-808276/
 
  


Reply



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
how to assign local ip in linux k00lit8 Linux - Newbie 7 09-17-2009 05:46 PM
Iptables, two internet connections, VPN + two local networks. dlublink Linux - Networking 1 12-31-2008 12:06 PM
three internet connections: need to find a good scenario of fair bandwidth distributi Tafta Linux - Networking 4 08-04-2006 10:16 PM
Apache won't accept or reject incoming internet connections but accepts on local lan zenchess Linux - Networking 3 06-10-2006 09:06 AM
is there a way to combine 2 DSL connections and double the resulting bandwidth? kublador Linux - Networking 10 11-19-2004 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration