LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SQUID3 Bandwidth Limiting Configurations (https://www.linuxquestions.org/questions/linux-networking-3/squid3-bandwidth-limiting-configurations-4175453802/)

kimbsan 03-12-2013 12:36 PM

SQUID3 Bandwidth Limiting Configurations
 
I have tried to configure squid3 (transparent proxy) on Linux for " ip based and content based blocking" on my network and for a specific ip 192.168.2.2 and bandwidth allocation of ip address and group ip address but i haven't got any solution.Please help me in this matter(you send me your "squid.conf" file to use it as a guide).

Specifically i would like to restrict ip 192.168.2.2 since the targeted network 192.168.3.1 accesses internet through 192.168.2.2

i would like to configure squid in that all requests to my gateway (192168.2.1) are sent squid3(192.168.2.6) for inspection and restrictions after which they are sent back to my gateway

Attached is a copy of my squid.conf file, please go through it and advise me

Thank you very much

GlennsPref 03-12-2013 08:51 PM

Quote:

Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.
:)

You can't attacth a file, yet. Please re visit the squid file content and post it here between code tags, or quote tags.

Squid works closely with the firewall and network devices configs.

Portforward in /etc/sysctl ?
Code:

net.ipv4.ip_forward = 1

kimbsan 03-13-2013 03:39 AM

1 Attachment(s)
Quote:

Originally Posted by GlennsPref (Post 4910379)
You can't attacth a file, yet. Please re visit the squid file content and post it here between code tags, or quote tags.

Squid works closely with the firewall and network devices configs.

Portforward in /etc/sysctl ?
Code:

net.ipv4.ip_forward = 1

Thanks, i did read through most of the posts replies but still i have failed to configure squid3 to do want i want. Please any one to go through my "squid.conf" file to help me out.

Thanks in advance

maxut 03-16-2013 09:47 AM

for bandwith restrictions search about "delay pools" in squid.

an example:
Code:

acl standart src 192.168.0.3-192.168.0.149
acl standart src 192.168.0.156-192.168.0.252
acl admins src 192.168.0.2
acl admins src 192.168.0.149-192.168.0.156

delay_pools 2
delay_initial_bucket_level 100

delay_class 1 2
delay_parameters 1 184320/184320 51200/51200
delay_access 1 deny admins
delay_access 1 allow standart

delay_class 2 2
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow admins
delay_access 2 deny all

this will create 2 delay pools.
pool 1 is restricted one, "standart" acl will go there.
pool1 max bandwith is 180 kbyte/s
per user max bandwith is 50 kbyte/s

pool 2 is for admins, no limit.


All times are GMT -5. The time now is 10:07 PM.