R
R
Roman Kulakovich2014-05-04 10:18:23
Squid
Roman Kulakovich, 2014-05-04 10:18:23

Squid in PfSense prevents users from downloading sites

Squid does not allow any site to pass through it from outside. If you specify addresses that can go past the proxy [Bypass proxy for these source IPs], then this computer goes online normally. The site addresses themselves are pinged, both by ip-addresses and by dns name. All this muck began after rebooting the server, where PfSense is installed as a gateway.
In which direction can you drop?
http_port 192.168.11.1:3128
http_port 127.0.0.1:3128 transparent
icp_port 0
pid_filename /var/run/squid.pid
cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/local/etc/squid/errors/Russian-1251
icon_directory /usr/local/etc /squid/icons
visible_hostname localhost
cache_mgr [email protected]
access_log /var/squid/log/access.log
cache_log /var/squid/log/cache.log
cache_store_log none
logfile_rotate 0
shutdown_lifetime 3 seconds
# Allow local network(s) on interface(s)
acl localnet src 192.168.11.0/255.255. 255.0
uri_whitespace strip
cache_mem 8 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir ufs / var / squid / cache 500 16 256
minimum_object_size 0 KB
maximum_object_size 4 KB
offline_mode off
cache_swap_low 70
cache_swap_high 75
# Setup some default acls
acl all src 0.0.0.0/ 0.0.0.0
localhost src 127.0.0.1/255.255.255.255
acl acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128 1025-65535
acl sslports port 443,563
acl manager proto cache_object
acl purge method PURGE
acl connect CONNECT method
acl dynamic urlpath_regex cgi -bin\?
acl blacklist dstdom_regex -i "/var/squid/acl/blacklist.acl"
cache deny dynamic
http_access allow manager localhost
# Allow external cache managers
acl ext_manager_1 src 127.0.0.1
http_access allow manager ext_manager_1
acl ext_manager_2 src 192.168.11.1
http_access allow manager ext_manager_2
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
# Always allow localhost connections
http_access allow localhost
quick_abort_min 30000 KB
quick_abort_max 30000 KB
quick_abort_pct 55
request_body_max_size 0 KB
reply_body_max_size 512000000 deny all
delay_pools 1
delay_class040 1 -102-class040 1 -102-parameter 1 2
delay_102-parameter 1
delay_initial_bucket_level 100
# Throttle extensions matched in the url
acl throttle_exts urlpath_regex -i "/var/squid/acl/throttle_exts.acl"
delay_access 1 allow throttle_exts
delay_access 1 deny all
# Custom options
never_direct allow all
cache_peer 127.0.0.1 parent 8080 0 name=havp no-query no-digest no-netdb-exchange default
redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf
redirector_bypass off
url_rewrite_children 5
# Block access to blacklist domains
http_access deny blacklist
# Setup allowed acls
# Allow local network(s) on interface(s)
http_access allow localnet
# Default block all to be sure
http_access deny all

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Parfenovich, 2015-11-24
@nagibat0r

Instead of transparent , you need to specify intercept , and be sure to create another http_port directive without specifying intercept for users who need to manually specify the proxy. This is necessary, or the squid will swear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question