-
Notifications
You must be signed in to change notification settings - Fork 0
/
squid.conf
44 lines (39 loc) · 1.38 KB
/
squid.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
acl manager proto cache_object
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 443 # https
acl SSL_ports port 8443 # plesk
acl Safe_ports port 8443 # plesk
acl SSL_ports port 9443 # Admin page of SiteGuard.
acl Safe_ports port 9443 # Admin page of SiteGuard.
acl CONNECT method CONNECT
# Workspaces IPs
acl source src 13.231.36.66/32
# basic auth
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
acl password proxy_auth REQUIRED
http_access allow password
# Access Permission configuration
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow source
http_access allow localhost manager
http_access deny manager
http_access deny to_localhost
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 13128
http_port 13389
#cache_dir ufs /var/spool/squid 100 16 256
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320