http_proxy
config
########################################
# Squid HTTP Proxy - Secure Minimal
########################################
# 监听端口
http_port 7890
# ===== 账号认证 =====
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic realm Squid Proxy
auth_param basic credentialsttl 2 hours
acl auth_users proxy_auth REQUIRED
# ===== IP 白名单(3 个)=====
acl allowed_src src 10.23.228.111 47.97.77.163 3.3.3.3
# ===== 访问规则(顺序非常重要)=====
http_access allow allowed_src auth_users
http_access deny all
# ===== 性能 & 安全 =====
cache deny all
access_log none
cache_log /var/log/squid/cache.log
via off
forwarded_for delete