@@ -0,0 +1,27 @@
|
||||
# Аутентификация
|
||||
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
|
||||
auth_param basic children 5
|
||||
auth_param basic realm Squid Proxy
|
||||
auth_param basic credentialsttl 2 hours
|
||||
|
||||
# ACL для аутентифицированных пользователей
|
||||
acl authenticated proxy_auth REQUIRED
|
||||
|
||||
# Родительский прокси (Mihomo)
|
||||
cache_peer 127.0.0.1 parent 7890 0 no-query default
|
||||
never_direct allow all
|
||||
|
||||
# Порт для прослушивания
|
||||
http_port 3128
|
||||
|
||||
# ПРАВИЛА ДОСТУПА (ВАЖНЫЙ ПОРЯДОК!)
|
||||
http_access allow authenticated
|
||||
http_access deny all
|
||||
|
||||
# Отключаем кеш
|
||||
cache deny all
|
||||
cache_log /dev/null
|
||||
cache_store_log none
|
||||
|
||||
# Логи
|
||||
access_log daemon:/var/log/squid/access.log squid
|
||||
Reference in New Issue
Block a user