LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 03-12-2013, 12:36 PM   #1
kimbsan
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
Question 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

Last edited by kimbsan; 03-12-2013 at 12:37 PM.
 
Old 03-12-2013, 08:51 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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
 
Old 03-13-2013, 03:39 AM   #3
kimbsan
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GlennsPref View Post
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
Attached Files
File Type: txt squid.txt (14.0 KB, 16 views)
 
Old 03-16-2013, 09:47 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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.

Last edited by maxut; 03-16-2013 at 09:49 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit the bandwidth used by an IP Address in Squid3(Ubuntu 10.04) vijith.pa@gmail.com Linux - Newbie 8 09-21-2010 08:14 AM
bandwidth limiting gubak Linux - Networking 1 03-02-2005 06:51 AM
Bandwidth limiting OmniXBro Linux - Software 2 06-14-2004 04:50 PM
Bandwidth Limiting UnrealTear Linux - Software 2 04-10-2004 10:33 PM
Limiting Bandwidth MasterC Linux - Networking 3 04-09-2003 03:03 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration