Skip to contentSkip to conversation

Linux router and Bandwidth control

LARTC Joe 4 participants 8 messages Jun 25, 2003 – Jun 26, 2003

lore
Share & tools
lore

Joe

author
#0 lore raw

Hello All,

I have 1.5Mbits Backbone connection with 16 public ip address.

I like to provide share my connection with someother my friends how will have public ip addess.

So i wanted to configre linux router with bandwidth controll for my friends connection.

Actully i tried with single interface in linux and CBQ but it does not controll.

I should do not use NAT as my friends are running web servers.

Is it possible to configure in linux.or some links to configure this

Advance thanks
Joe

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

If you put your friends in NAT (Private IP), no problem ..
They have webserver, all you have to do is forward packets going to port 80 to private ip:80
Further more read iptables-howto

Regards,
Rio Martin.

Original Message:
-----------------
From: Joe [email protected]
Date: Wed, 25 Jun 2003 17:51:51 +0530
To: [email protected]
Subject: [LARTC] Linux router and Bandwidth control

Hello All,

I have 1.5Mbits Backbone connection with 16 public ip address.

I like to provide share my connection with someother my friends how will have public ip addess.

So i wanted to configre linux router with bandwidth controll for my friends connection.

Actully i tried with single interface in linux and CBQ but it does not controll.

I should do not use NAT as my friends are running web servers.

Is it possible to configure in linux.or some links to configure this

Advance thanks
Joe

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Joe

Hey Joe,

One <possible> configuration is to configure your linux box as an ethernet bridge between your client machines and the public router

|===|
| PC 1 |
|===|\
         \
|===|  \       |====|             |====|
| PC 2 |---O------| LINUX |-------------| ROUTER |
|===|  /       |====|             |====|
         /
|===|/
| PC 3 |
|===|

and then make use of the "WRR" qdisc to control the traffic.

There are obviously many other possibilities, but this is the method I am currently testing, so I thought I would make you aware of it's existence.

The link for more info is http://wipl-wrr.sourceforge.net/

Leigh

Quoted 17 lines

Hello All,

I have 1.5Mbits Backbone connection with 16 public ip address.

I like to provide share my connection with someother my friends how will have public ip addess.

So i wanted to configre linux router with bandwidth controll for my friends connection.

Actully i tried with single interface in linux and CBQ but it does not controll.

I should do not use NAT as my friends are running web servers.

Is it possible to configure in linux.or some links to configure this

Quoted 8 lines

Advance thanks
Joe

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Joe

Hi Joe,

I see no real reason giving the servers real IP addresses, you're better keeping the NAT and forward the ports to the private address. If you have more than one mail server, you can map diffrent public IP address
to a diffrent private address. this will also keep your servers safe...

Cheers,

Shay Bosse
System Administrator
PointMatch Ltd. http://www.pointmatch.com

----- Original Message -----
From: "Joe" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Wednesday, June 25, 2003 5:10 PM
Subject: Re: [LARTC] Linux router and Bandwidth control

Quoted 4 lines

Hello Martin,

Currently i am using this configuration.

Quoted 8 lines

In future they may run mail server then i have to go for new configuration where i have to give them the public ip address.

Thanks
Sathyan

If you put your friends in NAT (Private IP), no problem .. They have webserver, all you have to do is forward packets going to port

80

Quoted 16 lines

to private ip:80
Further more read iptables-howto

Regards,
Rio Martin.

Original Message:
-----------------
From: Joe [email protected]
Date: Wed, 25 Jun 2003 17:51:51 +0530
To: [email protected]
Subject: [LARTC] Linux router and Bandwidth control

Quoted 8 lines

Hello All,

I have 1.5Mbits Backbone connection with 16 public ip address.

I like to provide share my connection with someother my friends how will have public ip addess.

So i wanted to configre linux router with bandwidth controll for my

friends

Quoted 28 lines

connection.

Actully i tried with single interface in linux and CBQ but it does not controll.

I should do not use NAT as my friends are running web servers.

Is it possible to configure in linux.or some links to configure this

Advance thanks
Joe

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 5 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#4 lore raw
In reply to Joe

Hello Martin,

Currently i am using this configuration.

In future they may run mail server then i have to go for new configuration where i have to give them the public ip address.

Thanks
Sathyan

If you put your friends in NAT (Private IP), no problem ..
They have webserver, all you have to do is forward packets going to port 80 to private ip:80
Further more read iptables-howto

Regards,
Rio Martin.

Original Message:
-----------------
From: Joe [email protected]
Date: Wed, 25 Jun 2003 17:51:51 +0530
To: [email protected]
Subject: [LARTC] Linux router and Bandwidth control

Hello All,

I have 1.5Mbits Backbone connection with 16 public ip address.

I like to provide share my connection with someother my friends how will have public ip addess.

So i wanted to configre linux router with bandwidth controll for my friends connection.

Actully i tried with single interface in linux and CBQ but it does not controll.

I should do not use NAT as my friends are running web servers.

Is it possible to configure in linux.or some links to configure this

Advance thanks
Joe

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#5 lore raw
In reply to Joe

Hello Leigh,

Thanks, I will look into this configuration and i will get back to you tomorrow.

Regards,
Joe

Quoted 3 lines

Hey Joe,

One <possible> configuration is to configure your linux box as an ethernet

bridge

Quoted 14 lines

between your client machines and the public router

|===|
| PC 1 |
|===|\
         \
|===|  \       |====|             |====|
| PC 2 |---O------| LINUX |-------------| ROUTER |
|===|  /       |====|             |====|
         /
|===|/
| PC 3 |
|===|
Quoted 3 lines

and then make use of the "WRR" qdisc to control the traffic.

There are obviously many other possibilities, but this is the method I am

currently

Quoted 15 lines

testing, so I thought I would make you aware of it's existence.

The link for more info is http://wipl-wrr.sourceforge.net/

Leigh

Quoted 8 lines

Hello All,

I have 1.5Mbits Backbone connection with 16 public ip address.

I like to provide share my connection with someother my friends how will have public ip addess.

So i wanted to configre linux router with bandwidth controll for my

friends

Quoted 9 lines
Quoted 9 lines

connection.

Actully i tried with single interface in linux and CBQ but it does not controll.

I should do not use NAT as my friends are running web servers.

Is it possible to configure in linux.or some links to configure this

Quoted 10 lines
Quoted 8 lines

Advance thanks
Joe

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#6 lore raw
In reply to Joe
Quoted 8 lines

Hi Joe,

I see no real reason giving the servers real IP addresses, you're better keeping the NAT and forward the ports to the private address. If you have more than one mail server, you can map diffrent public IP address
to a diffrent private address. this will also keep your servers safe...

Agreed this is of course the best way to secure lots of servers.

And if you like the look of "wrr" as a qdisc,

(and it does seem to have some very advanced features -
such as the ability to "spot" large downloads and automatically decrease the available bandwidth for that connection for the duration of the download - although I could be wrong in my understanding of this) ,

then you can still use this qdisc with a NATing router, so have a look at their site anyway.

The suggestion of a bridge was intended as a simple "no fuss" solution which can easily be bypassed in times of need - such as component failure - by simply taking the cable out of the bridge and plopping it straight back in the router.

I was of course assuming that your "friends" would take care of their own security, thus removing the burden of you even telling them about the traffic shaping as well as preventing you from having to manage all their port forwarding requirements.

I'm sure the whole business of traffic shaping is far too complicated for any one answer to be correct even one percent of the time so I accept that this answer may be useless for you.

Good luck!

Leigh

Quoted 87 lines

Cheers,

Shay Bosse
System Administrator
PointMatch Ltd. http://www.pointmatch.com

----- Original Message -----
From: "Joe" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Wednesday, June 25, 2003 5:10 PM
Subject: Re: [LARTC] Linux router and Bandwidth control

Quoted 4 lines

Hello Martin,

Currently i am using this configuration.

Quoted 8 lines

In future they may run mail server then i have to go for new configuration where i have to give them the public ip address.

Thanks
Sathyan

If you put your friends in NAT (Private IP), no problem .. They have webserver, all you have to do is forward packets going to port

80

Quoted 16 lines

to private ip:80
Further more read iptables-howto

Regards,
Rio Martin.

Original Message:
-----------------
From: Joe [email protected]
Date: Wed, 25 Jun 2003 17:51:51 +0530
To: [email protected]
Subject: [LARTC] Linux router and Bandwidth control

Quoted 8 lines

Hello All,

I have 1.5Mbits Backbone connection with 16 public ip address.

I like to provide share my connection with someother my friends how will have public ip addess.

So i wanted to configre linux router with bandwidth controll for my

friends

Quoted 28 lines

connection.

Actully i tried with single interface in linux and CBQ but it does not controll.

I should do not use NAT as my friends are running web servers.

Is it possible to configure in linux.or some links to configure this

Advance thanks
Joe

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 5 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 4 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#7 lore raw
In reply to Joe

Hi all,
About servers in private network, could you all mention good points why servers should be put in private network. I must write down some reports about these, because during this week, i have new jobs maintaining new organisation that still put their servers in public ip range. I ve just moved several servers like mailserver,dns,web to private network. And soon all servers will be moved to the private network.

Thanks.
Regards,

Rio Martin.

Original Message:
-----------------
From: Leigh Waldie [email protected]
Date: Wed, 25 Jun 2003 16:42:26 +0100 (BST)
To: [email protected]
Subject: Re: [LARTC] Linux router and Bandwidth control

Quoted 8 lines

Hi Joe,

I see no real reason giving the servers real IP addresses, you're better keeping the NAT and forward the ports to the private address. If you have more than one mail server, you can map diffrent public IP address
to a diffrent private address. this will also keep your servers safe...

Agreed this is of course the best way to secure lots of servers.

And if you like the look of "wrr" as a qdisc,

(and it does seem to have some very advanced features -
such as the ability to "spot" large downloads and automatically decrease the available bandwidth for that connection for the duration of the download - although I could be wrong in my understanding of this) ,

then you can still use this qdisc with a NATing router, so have a look at their site anyway.

The suggestion of a bridge was intended as a simple "no fuss" solution which can easily be bypassed in times of need - such as component failure - by simply taking the cable out of the bridge and plopping it straight back in the router.

I was of course assuming that your "friends" would take care of their own security, thus removing the burden of you even telling them about the traffic shaping as well as preventing you from having to manage all their port forwarding requirements.

I'm sure the whole business of traffic shaping is far too complicated for any one answer to be correct even one percent of the time so I accept that this answer may be useless for you.

Good luck!

Leigh

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/