0% found this document useful (0 votes)
105 views7 pages

How To Limit Upload Size in Squid - TechwithGuru

The document discusses how to limit upload sizes in Squid proxy server by configuring rules based on IP addresses, subnets or time periods. Rules can specify maximum upload sizes for different subnets or time windows. Examples are provided for IP-based rules limiting certain subnets to 2MB or 1MB uploads and others to 5MB.

Uploaded by

Javier
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views7 pages

How To Limit Upload Size in Squid - TechwithGuru

The document discusses how to limit upload sizes in Squid proxy server by configuring rules based on IP addresses, subnets or time periods. Rules can specify maximum upload sizes for different subnets or time windows. Examples are provided for IP-based rules limiting certain subnets to 2MB or 1MB uploads and others to 5MB.

Uploaded by

Javier
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

terminal-

Menu history-in-
Thursday, Feb 20, 2020 
How to Limit Upload size in Squid
(http://www.techwithguru.com/) linux/) 1

By Techwithguru (Http://Www.Techwithguru.Com/Author/Admin/) (http://www.te


lspci-
— May 3, 2013 (Http://Www.Techwithguru.Com/2013/05/03/) command/)
— Squid Proxy (Http://Www.Techwithguru.Com/Category/Linux/Squid-Proxy/) 2

(http://www.te
alt-delete-
HOME (HTTP://WWW.TECHWITHGURU.COM)  LINUX
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/)  SQUID PROXY ubuntu/)
3
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)  HOW TO LIMIT UPLOAD
SIZE IN SQUID

(http://www.te
to- nd-the-
ubuntu-
How to Limit Upload size in Squid version/) 4

How to Limit Upload size in Squid (http://tecexpertz.com/wp-


content/uploads/2013/03/squid.jpg)

Recent Com
How to Limit Upload size in Squid Proxy S…
S…

Siu Cuthbert
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Junior Brody
(http://downloa
Custom Error P
(http://www.tec
server-custom-
Scenario : You have two subnets 192.168.1.0/24 and 192.168.2.0/24, Then you have to limit the
Upload size,
Armanda Dudd
192.168.1.0/24  – 2 MB (http://zblackm
192.168.2.0/24 – 1 MB Custom Error P
Others – 5MB (http://www.tec
server-custom-
Add the following line in the squid.conf le

$ su -
# vim /etc/squid/squid.conf

You can use IP based Upload limit (version squid-3.1 and higher)

Te
acl Subnet1 src 192.168.1.1-192.168.1.100/24
acl Subnet2 src 192.168.2.1-192.168.2.100/24
request_body_max_size 20480 KB Subnet1
 (https://www
request_body_max_size 10240 KB Subnet2  (https:/
request_body_max_size 5120 KB all

(https://ca.link
Time Based Upload Limit

(https://www
acl WorkingHours time 08:00-17:00
View Terminal History in Linux Linux – lspci command How to disable CTRL+
request_body_max_size 10240 KB WorkingHours
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
(http://www.te
terminal-
Menu Installing Squid Proxy Server in CentOS ( http://tecexpertz.com/installing-squid- history-in-
Thursday, Feb 20, 2020  1
proxy-server-in-centos/) :
(http://www.techwithguru.com/) linux/)
Running Squid on Boot in Squid Proxy Server (http://tecexpertz.com/running-squid-
on-boot-in-squid-proxy-server/) :
(http://www.te
Initializing Cache Directories in Squid Proxy Server (http://tecexpertz.com/initializing-
lspci-
cache-directories-in-squid-proxy-server/) :
command/)
Clean and Re-build Squid cache in Squid Proxy Server (http://tecexpertz.com/clean- 2
and-re-build-squid-cache-in-squid-proxy-server/) :
Squid Proxy Server – Error : ‘visible_hostname’ ( http://tecexpertz.com/squid-proxy- (http://www.te
server-error-visible_hostname/) : alt-delete-
Squid Proxy Server – Custom Error Pages (http://tecexpertz.com/squid-proxy-server- ubuntu/)
custom-error-pages) : 3
Squid Proxy Server – ACL Types (http://tecexpertz.com/squid-proxy-server-acl-
types) :
Squid Proxy Server – ACL : src, dst, myip (http://tecexpertz.com/squid-proxy-server-
(http://www.te
acl-src-dst-myip) :
to- nd-the-
How to enable Internet Access to the Local Network in Squid Proxy Server
ubuntu-
(http://tecexpertz.com/how-to-enable-internet-access-to-the-local-network-in-squid-
version/) 4
proxy-server) :
Squid Proxy Server – ACL : req_mime_type (http://tecexpertz.com/squid-proxy-
server-acl-req_mime_type) :
How to Block a Streaming Video in Squid Proxy Server (http://tecexpertz.com/how-
to-block-a-streaming-video-in-squid-proxy-server) :
Squid Proxy Server – ACL : dstdomain (http://tecexpertz.com/squid-proxy-server-acl- Recent Com
dstdomain) :
Block any Domain Name in Squid Proxy Server (http://tecexpertz.com/block-any-
Siu Cuthbert
domain-name-in-squid-proxy-server) :
(http://downloa
Di erence between url_regex, urlpath_regex and dstdom_regex
Custom Error P
(http://tecexpertz.com/di erence-between-url_regex-urlpath_regex-and-
(http://www.tec
dstdom_regex) :
server-custom-
Squid content ltering from Squid Proxy Server (http://tecexpertz.com/squid-
content- ltering-from-squid-proxy-server) :
Junior Brody
Block urls, keyword or le format on Squid proxy (http://tecexpertz.com/block-urls-
(http://downloa
keyword-or- le-format-on-squid-proxy) :
Custom Error P
Block Anonymous Proxy sites in SQUID (http://tecexpertz.com/block-anonymous-
(http://www.tec
proxy-sites-in-squid) :
server-custom-
Squid Proxy Server – Combining ACLs (AND/OR) (http://tecexpertz.com/squid-proxy-
server-combining-acls-andor) :
Squid Proxy Server – ACL : time (http://tecexpertz.com/squid-proxy-server-acl-time) : Armanda Dudd
Time Based restriction with Squid (http://tecexpertz.com/time-based-restriction- (http://zblackm
with-squid) : Custom Error P
How to Limit download size in Squid ( http://tecexpertz.com/how-to-limit-download- (http://www.tec
size-in-squid) : server-custom-
How to Limit Upload size in Squid (http://tecexpertz.com/how-to-limit-upload-size-in-
squid) :
Max User IP In Squid Proxy Server (http://tecexpertz.com/maximum-connections-
and-max-user-ip-in-squid-proxy-server) :
Maximum Connections In Squid Proxy Server (http://tecexpertz.com/maximum-
connections-in-squid-proxy-server) :
How to block a Web Browser using Squid proxy (http://tecexpertz.com/how-to-block-
a-web-browser-using-squid-proxy) :
Redirect URL In Squid Proxy Server (http://tecexpertz.com/redirect-url-in-squid- Te
proxy-server) :
 (https://www
    
 (https:/
0 0 0 0 0

 (https://getsocial.io?utm_source=reaction_button)
(https://ca.link

(https://www
Tagged : How to Limit Upload size (http://www.techwithguru.com/tag/how-to-limit-upload-size/) How to
View Terminal History in Linux Linux – lspci command How to disable CTRL+
Limit Upload size in Squid (http://www.techwithguru.com/tag/how-to-limit-upload-size-in-squid/) Proxy
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
Server (http://www.techwithguru.com/tag/proxy-server/) request_body_max_size
(http://www.te
(http://www.techwithguru.com/tag/request_body_max_size/) Squid terminal-
Menu
(http://www.techwithguru.com/tag/squid/) history-in-
Thursday, Feb 20, 2020  1
(http://www.techwithguru.com/) linux/)
Related Articles

(http://www.te
(http://www.techwithguru.com SQUID PROXY lspci-
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
connections-in-squid-proxy- command/)
2
server/) Maximum Connections In Squid Proxy Server
(http://www.techwithguru.com/maximum-
connections-in-squid-proxy-server/) (http://www.te
alt-delete-
By Techwithguru ubuntu/)
(Http://Www.Techwithguru.Com/Author/Admin/) 3
— May 3, 2013 (Http://Www.Techwithguru.Com/2013/05/03/)

(http://www.te
(http://www.techwithguru.com SQUID PROXY
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/) to- nd-the-
to-limit-download-size-in-
ubuntu-
squid/) How to Limit download size in Squid version/) 4
(http://www.techwithguru.com/how-to-limit-
download-size-in-squid/)
By Techwithguru
(Http://Www.Techwithguru.Com/Author/Admin/)
— May 3, 2013 (Http://Www.Techwithguru.Com/2013/05/03/) Recent Com

(http://www.techwithguru.com SQUID PROXY Siu Cuthbert


(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
yahoo-messenger-using- (http://downloa
Custom Error P
squid-proxy-server/) Block Yahoo Messenger using Squid Proxy
Server (http://www.techwithguru.com/block- (http://www.tec
yahoo-messenger-using-squid-proxy-server/) server-custom-

By Techwithguru Junior Brody


(Http://Www.Techwithguru.Com/Author/Admin/)
(http://downloa
— May 3, 2013 (Http://Www.Techwithguru.Com/2013/05/03/)
Custom Error P
(http://www.tec
server-custom-
(http://www.techwithguru.com SQUID PROXY
(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
squid-on-boot-in-squid-
Armanda Dudd
proxy-server/) Running Squid on Boot in Squid Proxy Server (http://zblackm
(http://www.techwithguru.com/running-squid- Custom Error P
on-boot-in-squid-proxy-server/) (http://www.tec
By Techwithguru server-custom-
(Http://Www.Techwithguru.Com/Author/Admin/)
— May 3, 2013 (Http://Www.Techwithguru.Com/2013/05/03/)

(http://www.techwithguru.com SQUID PROXY


(HTTP://WWW.TECHWITHGURU.COM/CATEGORY/LINUX/SQUID-PROXY/)
squid-proxy-cache-re-create-
cache/) Clear Squid Proxy Cache and Re-create the
Cache Directories
(http://www.techwithguru.com/clear-squid- Te
proxy-cache-re-create-cache/)
By Techwithguru  (https://www
(Http://Www.Techwithguru.Com/Author/Admin/)
— May 3, 2013 (Http://Www.Techwithguru.Com/2013/05/03/)  (https:/

(https://ca.link

(https://www
Previous
View Terminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view-
Time Based restriction with Squid(http://www.techwithguru.com/linux-
terminal-history-in-linux/) lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
(http://www.te
(http://www.techwithguru.com/time-based-restriction-with-squid/) terminal-
Menu history-in-
Thursday, Feb 20, 2020  1
(http://www.techwithguru.com/) linux/)

(http://www.te
Next lspci-
How to Limit download size in Squid command/)
2

(http://www.techwithguru.com/how-to-limit-download-size-in-squid/)
(http://www.te
alt-delete-
ubuntu/)
3
3 THOUGHTS ON “HOW TO LIMIT UPLOAD SIZE IN
SQUID”
(http://www.te
to- nd-the-
ubuntu-
Pingback: Maximum Connections and Max User IP In Squid Proxy Server | TecExpertz version/) 4
(http://tecexpertz.com/maximum-connections-in-squid-proxy-server/)

Pingback: How to block a Web Browser using Squid proxy | TecExpertz


(http://tecexpertz.com/how-to-block-a-web-browser-using-squid-proxy/)
Recent Com
Andrew Pelt (http://www.howtomakemoney832.com)
June 8, 2013 at 9:32 am (http://www.techwithguru.com/how-to-limit-upload-size-in-squid/#comment-204)
Siu Cuthbert
I just want to mention I am new to weblog and certainly enjoyed this page. More than (http://downloa
likely I’m want to bookmark your website . You amazingly have impressive articles and Custom Error P
reviews. Kudos for revealing your web page. (http://www.tec
server-custom-
REPLY
Junior Brody
(http://downloa
LEAVE A REPLY Custom Error P
(http://www.tec
server-custom-
Your email address will not be published. Required elds are marked *
Armanda Dudd
COMMENT (http://zblackm
Custom Error P
(http://www.tec
server-custom-

NAME * EMAIL *

WEBSITE Te

 (https://www
 (https:/
Post Comment

(https://ca.link

(https://www

View Terminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
(http://www.te
terminal-
Menu history-in-
Thursday, Feb 20, 2020  1
(http://www.techwithguru.com/) linux/)

(http://www.te
lspci-
command/)
2

(http://www.te
alt-delete-
ubuntu/)
3

(http://www.te
to- nd-the-
ubuntu-
version/) 4

Recent Com

Siu Cuthbert
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Junior Brody
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Armanda Dudd
(http://zblackm
Custom Error P
(http://www.tec
server-custom-

Te

 (https://www
 (https:/

(https://ca.link

(https://www
ABOUT
View Terminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
(http://www.te
TechwithGuru, Is a Computer Technology related web portal that provides the latest and terminal-
Menu speci c information to the viewers. Most of the important categories covered are
industry history-in-
Thursday, Feb 20, 2020  1
Networking, Hardware, Software, Open Source, Linux, Web development, Programming, OS etc.
(http://www.techwithguru.com/) linux/)

Top Stories: Mobile (http://www.te


lspci-
command/)
(http://www.techwithguru.com/ — 1 Apr 2019 2
reset-samsung-galaxy-s- How To Factory/Master Reset Samsung Galaxy S device
device/) (http://www.techwithguru.com/factory-reset-samsung- (http://www.te
galaxy-s-device/)
1 alt-delete-
ubuntu/)
(http://www.techwithguru.com/ — 31 Mar 2019 3
reset-samsung-galaxy-device/) How to Hard Reset Samsung Galaxy S devices
(http://www.techwithguru.com/hard-reset-samsung-
galaxy-device/)
2
(http://www.te
to- nd-the-
(http://www.techwithguru.com/ — 30 Mar 2019
ubuntu-
cache-partition-samsung- How to Wipe cache partition in Samsung Galaxy S devices
(http://www.techwithguru.com/wipe-cache-partition- version/) 4
galaxy/)
samsung-galaxy/)
3

(http://www.techwithguru.com/ — 29 Mar 2019


iphone-origin/) How to Find iPhone’s Origin?
(http://www.techwithguru.com/find-iphone-origin/) Recent Com
4

Siu Cuthbert
Top Stories: Linux (http://downloa
Custom Error P
(http://www.tec
(http://www.techwithguru.com/ — 4 Jan 2020 server-custom-
terminal-history-in-linux/) View Terminal History in Linux
(http://www.techwithguru.com/view-terminal-history-in- Junior Brody
linux/)
1 (http://downloa
Custom Error P
(http://www.techwithguru.com/ — 3 Jan 2020 (http://www.tec
lspci-command/) Linux – lspci command server-custom-
(http://www.techwithguru.com/linux-lspci-command/)
2
Armanda Dudd
(http://zblackm
(http://www.techwithguru.com/ — 2 Jan 2020
Custom Error P
alt-delete-ubuntu/) How to disable CTRL+ALT+DEL reboot keys under Ubuntu Linux
(http://www.techwithguru.com/disable-alt-delete-ubuntu/) (http://www.tec
3
server-custom-

(http://www.techwithguru.com/ — 1 Jan 2020


to- nd-the-ubuntu-version/) How To Find the Ubuntu Version
(http://www.techwithguru.com/how-to-find-the-ubuntu-
version/)
4

Search … Search Te

Social Profile’s  (https://www


 (https:/

 (https://www.facebook.com/techwithguru/)  (https://twitter.com/techwithguru)
(https://ca.link

 (https://ca.linkedin.com/company/techwithguru)

(https://www
(https://www.youtube.com/c/techwithguru)
ViewTerminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 
(http://www.te
terminal-
Menu history-in-
Thursday, Feb 20, 2020  1
(http://www.techwithguru.com/) linux/)

Copyright All right reserved : by TechwithGuru (http://techwithguru.com/)

Home (http://www.techwithguru.com/home/)
(http://www.te
Contact Us (http://www.techwithguru.com/contact-us/)
lspci-
command/)
About Us (http://www.techwithguru.com/about-us/) Blog (http://www.techwithguru.com/blog/)
2

(http://www.te
alt-delete-
ubuntu/)
3

(http://www.te
to- nd-the-
ubuntu-
version/) 4

Recent Com

Siu Cuthbert
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Junior Brody
(http://downloa
Custom Error P
(http://www.tec
server-custom-

Armanda Dudd
(http://zblackm
Custom Error P
(http://www.tec
server-custom-

View Terminal History in Linux Linux – lspci command How to disable CTRL+
  (http://www.techwithguru.com/view-
terminal-history-in-linux/)
(http://www.techwithguru.com/linux-
lspci-command/)
keys under Ubuntu L
(http://www.techwit
 

You might also like