Skip to contentSkip to conversation

Proxy question

LARTC Σταμάτης Κεκές 4 participants 8 messages Jul 2, 2003

lore
Share & tools
lore
#0 lore raw

Hell everybody,
Yesterday I faced a problem with the shaper I use. Here's my topology
and I'll describe the problem later after the topology.

10.0.1.0 /24 10.0.1.100 eth0
eth1 eth0 10.0.1.1 eth1

 +-------------+               +-------------+     +------------------+ 
      +--------------+
 |  Internal   |               |             |     | Traffic shaper   | 
      |              |
 |  Network    |-------------->| Squid proxy |---->|     Bridge       
|------>| Firewall     |
 |             |               |             |     |                  | 
      |              |
 +-------------+               +-------------+     +------------------+ 
      +--------------+

Well this is the http and ftp traffic flow on my netwrok. Some of my
users used to download huge files from the web.
Is there any way to slow down specific IP addresses even if they conect
through the proxy ??
For example I want to slow down the requests made from 10.0.1.51 but
only that host. If I apply a filter for that IP it does not make any sense cause in fact the proxy is making the connection for that host.
Has anybody else faced this problem ?
Any ideas or suggestions ?

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

#1 lore raw

If you're using Squid for the proxy service, check out the docs, it has the ability to limit bandwith for specific ips, classes, etc. Regards,
Radu
Σταμάτης Κεκές a scris:

Quoted 28 lines

Hell everybody,
Yesterday I faced a problem with the shaper I use. Here's my topology
and I'll describe the problem later after the topology.

10.0.1.0 /24 10.0.1.100 eth0
eth1 eth0 10.0.1.1 eth1

 +-------------+               +-------------+     +------------------+
      +--------------+
 |  Internal   |               |             |     | Traffic shaper   |
      |              |
 |  Network    |-------------->| Squid proxy |---->|     Bridge
|------>| Firewall     |
 |             |               |             |     |                  |
      |              |
 +-------------+               +-------------+     +------------------+
      +--------------+

Well this is the http and ftp traffic flow on my netwrok. Some of my
users used to download huge files from the web.
Is there any way to slow down specific IP addresses even if they conect
through the proxy ??
For example I want to slow down the requests made from 10.0.1.51 but
only that host. If I apply a filter for that IP it does not make any sense cause in fact the proxy is making the connection for that host.
Has anybody else faced this problem ?
Any ideas or suggestions ?

Quoted 4 lines

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

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

#2 lore raw
In reply to Σταμάτης Κεκές

Hello Radu,
Well I found the delay pools at the squid configration. I need to know if there's any alternative way to slowdown the traffic for a specific IP address without modifying anything in the proxy server.

Quoted 6 lines · Radu-Mihail Obada

If you're using Squid for the proxy service, check out the docs, it has the ability to limit bandwith for specific ips, classes, etc. Regards,
Radu

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

#3 lore raw
In reply to Σταμάτης Κεκές

Yes am having the same problem,If i get it fixed in time, i'll post my script, unfortunately delay pools in squid werent as effective as the HTB, am trying to use steff's IMQ with iptable which shld solve the problem.

you could search the LARTC archives, though am yet to find someone that had the problem and posted solution to it.

CJ

Quoted 40 lines

If you're using Squid for the proxy service, check out the docs, it has the ability to limit bandwith for specific ips, classes, etc. Regards,
Radu
ÓôáìÜôçò ÊåêÝò a scris:

Quoted 28 lines

Hell everybody,
Yesterday I faced a problem with the shaper I use. Here's my topology
and I'll describe the problem later after the topology.

10.0.1.0 /24 10.0.1.100 eth0
eth1 eth0 10.0.1.1 eth1

 +-------------+               +-------------+     +------------------+
      +--------------+
 |  Internal   |               |             |     | Traffic shaper   |
      |              |
 |  Network    |-------------->| Squid proxy |---->|     Bridge
|------>| Firewall     |
 |             |               |             |     |                  |
      |              |
 +-------------+               +-------------+     +------------------+
      +--------------+

Well this is the http and ftp traffic flow on my netwrok. Some of my
users used to download huge files from the web.
Is there any way to slow down specific IP addresses even if they conect
through the proxy ??
For example I want to slow down the requests made from 10.0.1.51 but
only that host. If I apply a filter for that IP it does not make any sense cause in fact the proxy is making the connection for that host.
Has anybody else faced this problem ?
Any ideas or suggestions ?

Quoted 4 lines

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

Quoted 5 lines

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

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?pageþatures/featuredemail

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

#4 lore raw
In reply to Σταμάτης Κεκές

Why not change your topology so that you have

Firewall----------------->Shaper-------------->Proxy------------->Internet

This way you have more control over the traffic. Admittedly, you are not truly shaping the total bandwidth available to you (some of the traffic will be returning to your clients from the proxy without ever going out to the internet) but maybe with some tweaking of the traffic shaping you can allow for this ?

Leigh

Quoted 28 lines

Hell everybody,
Yesterday I faced a problem with the shaper I use. Here's my topology
and I'll describe the problem later after the topology.

10.0.1.0 /24 10.0.1.100 eth0
eth1 eth0 10.0.1.1 eth1

 +-------------+               +-------------+     +------------------+
      +--------------+
 |  Internal   |               |             |     | Traffic shaper   |
      |              |
 |  Network    |-------------->| Squid proxy |---->|     Bridge
|------>| Firewall     |
 |             |               |             |     |                  |
      |              |
 +-------------+               +-------------+     +------------------+
      +--------------+

Well this is the http and ftp traffic flow on my netwrok. Some of my
users used to download huge files from the web.
Is there any way to slow down specific IP addresses even if they conect
through the proxy ??
For example I want to slow down the requests made from 10.0.1.51 but
only that host. If I apply a filter for that IP it does not make any sense cause in fact the proxy is making the connection for that host.
Has anybody else faced this problem ?
Any ideas or suggestions ?

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/

#5 lore raw
In reply to Σταμάτης Κεκές

Heloooo :-)
Well this is a good oppinion but, what does it happen when somebody make a big request, the proxy will be unshaped thus it will allocate whole the line.
A good option is to place another shaper between the proxy and the internet.
To make it simpler to place the proxy in our DMZ, and place another shaper for the dmz.
Thanks for the advice my friend
Best regards
Stamatis

Quoted 12 lines · Leigh Waldie

Why not change your topology so that you have

Firewall----------------->Shaper-------------->Proxy------------->Internet

This way you have more control over the traffic. Admittedly, you are not truly shaping the total bandwidth available to you (some of the traffic will be returning to your clients from the proxy without ever going out to the internet) but maybe with some tweaking of the traffic shaping you can allow for this ?

Leigh

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

#6 lore raw
In reply to Σταμάτης Κεκές
Quoted 4 lines

Heloooo :-)
Well this is a good oppinion but, what does it happen when somebody make a big request, the proxy will be unshaped thus it will allocate whole the line.

Perhaps you need to put the shaping on the same machine as the proxy, this should allow you to mark the packets (i think squid can do this) and shape them accordingly?

Quoted 23 lines

A good option is to place another shaper between the proxy and the internet.
To make it simpler to place the proxy in our DMZ, and place another shaper for the dmz.
Thanks for the advice my friend
Best regards
Stamatis

Quoted 12 lines · Leigh Waldie

Why not change your topology so that you have

Firewall----------------->Shaper-------------->Proxy------------->Internet

This way you have more control over the traffic. Admittedly, you are not truly shaping the total bandwidth available to you (some of the traffic will be returning to your clients from the proxy without ever going out to the internet) but maybe with some tweaking of the traffic shaping you can allow for this ?

Leigh

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

#7 lore raw
In reply to Σταμάτης Κεκές
Quoted 11 lines · Leigh Waldie
Quoted 6 lines

Heloooo :-)
Well this is a good oppinion but, what does it happen when somebody make a big request, the proxy will be unshaped thus it will allocate whole the line.

Perhaps you need to put the shaping on the same machine as the proxy, this should allow you to mark the packets (i think squid can do this) and shape them accordingly?

Well I want them separate. Anyway I'll add 2 more interfaces on the current shaper and build another bridge which will shape my DMZ then to tighten the shaping policy.

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