squid

Configuring squid

edit /etc/squid/squid.conf

 acl all src 0.0.0.0/0.0.0.0
 acl localhost src 127.0.0.1/255.255.255.255
 acl to_localhost dst 127.0.0.0/8
 acl vukor src 192.168.51.50/32
 acl buissness_hours time M T W H F 09:00-18:00
 
 http_access allow localhost
 http_access allow vukor buissness_hours
 http_access deny all

Authentication method (PAM)

  • Disable selinux

edit /etc/squid/squid.conf

 auth_param basic program /usr/lib/squid/pam_auth
 auth_param basic children 5
 auth_param basic realm Anvil Internet Proxy
 acl password proxy_auth REQUIRED
 http_access allow password

edit /etc/pam.d/squid

 auth required /lib/security/pam_stack.so service=system-auth
 auth required /lib/security/pam_nologin.so
 account required /lib/security/pam_stack.so service=system-auth
 password required /lib/security/pam_stack.so service=system-auth
 session required /lib/security/pam_stack.so service=system-auth

доп. документация

Комментарии

 
blog/2011/12/06-squid_-_установка_настройка.txt · Последние изменения: 2014/10/01 12:01 — Антон Бугреев · []