Установка SQUID

 pkg install squid
Start squid:

service squid start

File config squid.conf

vim /usr/local/etc/squid/squid.conf
http_port 9080
cache_mem 32 MB
cache_store_log none
cache_effective_user squid
cache_effective_group squid
visible_hostname First
access_log /var/log/squid_a.log
cache_log /var/log/squid.log
emulate_httpd_log on
acl all src 0.0.0.0/0.0.0.0

#ACL's for ip
#acl ip1  src 93.73.211.17 

tcp_outgoing_address  ip_server  all

server_persistent_connections off

auth_param basic program /usr/local/libexec/squid/basic_ncsa_auth /usr/local/etc/squid/htpasswd1
auth_param basic children 7
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
header_access Remote-addr deny all
header_access Link deny all
header_access Cache-control deny all 
header_access From deny all
header_access Via deny all
header_access X-Forwarded-For deny all
header_access Pragma deny all
forwarded_for off
acl allowusers proxy_auth REQUIRED
http_access allow allowusers

http_access deny all
vim /etc/rc.conf

# SQUID #

squid_enable="YES"

results matching ""

    No results matching ""