[squid-users] reply_body_max_size question

Danny mynixmail at gmail.com
Sun Mar 12 07:11:46 UTC 2017


Hi,

Just want someone to confirm my current reply_body_max_size setup. I have a
simple network at home i.e: Debian with a wireless card (wlan0) which is bridged
(br0) to an ethernet card (eth0). All devices comes through the wireless card
(wlan0) and then of to the router.

I want "localnet_sniper localnet_bridge localnet_fever localnet_44081 localnet_dannyS4" to have unlimited download capabilty but
"localnet_vS5mini localnet_anTab2 localnet_vTab3 localnet_samsungTV localnet_samsungDVD localnet_dhcp" must be limited to a
5MB download limit.

Here is my configuration:
######################################################################################################################################
acl localnet src 10.0.0.0/24	# RFC1918 possible internal network
acl localnet_sniper src 10.0.0.3        #(eth0)
acl localnet_bridge src 10.0.0.4        #(br0)
acl localnet_fever src 10.0.0.5         #(wlan0)
acl localnet_44081 src 10.0.0.11        #(RaspberryPi3)
acl localnet_dannyS4 src 10.0.0.54
acl localnet_vS5mini src 10.0.0.55
acl localnet_shotgun src 10.0.0.56
acl localnet_anTab2 src 10.0.0.71
acl localnet_vTab3 src 10.0.0.73
acl localnet_samsungTV src 10.0.0.80
acl localnet_samsungDVD src 10.0.0.81
acl localnet_dhcp src 10.0.0.201
acl localnet_dhcp src 10.0.0.202
acl localnet_dhcp src 10.0.0.203
acl localnet_dhcp src 10.0.0.204

http_access allow password
http_access allow localhost
http_access allow localnet
http_access allow localnet_sniper
http_access allow localnet_bridge
http_access allow localnet_fever
http_access allow localnet_44081
http_access allow localnet_dannyS4
http_access allow localnet_vS5mini
http_access allow localnet_anTab2
http_access allow localnet_vTab3
http_access allow localnet_samsungTV
http_access allow localnet_samsungDVD
http_access allow localnet_dhcp

reply_body_max_size 9999999999 MB localnet_sniper localnet_bridge localnet_fever localnet_44081 localnet_dannyS4
reply_body_max_size 5 MB localnet_vS5mini localnet_anTab2 localnet_vTab3 localnet_samsungTV localnet_samsungDVD localnet_dhcp

url_rewrite_program /usr/bin/squidGuard -c /etc/squidguard/squidGuard.conf
redirect_program /usr/bin/squidGuard -c /etc/squidguard/squidGuard.conf
#######################################################################################################################################

Any help will be greatly appreciated.

Thank you

Danny


More information about the squid-users mailing list