#Acl,s Tag
#Acl IP src
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
#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 10.98.30.0/24 # PEN Group
acl localnet src 10.98.31.0/24 # PEN Group
acl localnet src 10.98.32.0/24 # PEN Group
acl localnet src 10.98.33.0/24 # PEN Group
acl localnet src 10.98.34.0/24 # PEN Group
acl localnet src 10.98.35.0/24 # PEN Group
acl localnet src 10.98.36.0/24 # PEN Group
acl localnet src 10.98.37.0/24 # PEN Group
acl localnet src 10.98.38.0/24 # PEN Group
acl localnet src 10.98.39.0/24 # PEN Group
acl localnet src 10.98.40.0/24 # PEN Group
#Acl Safe Port
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
#Http Access Tag
#ICP And HTCP Access Tag
icp_access allow localnet
icp_access deny all
این تنظیمات من هست
و این قسمت هم به آخر فایل squid.conf اضافه کردم:
# windows_ipaddrchangemonitor on
http_port 3128 transparent
acl our_networks src 10.98.37.0/24
acl yam-1 src 10.98.30.0/24 # PEN Group
acl yam-2 src 10.98.31.0/24 # PEN Group
acl yam-3 src 10.98.32.0/24 # PEN Group
acl yam-4 src 10.98.33.0/24 # PEN Group
acl yam-5 src 10.98.34.0/24 # PEN Group
acl yam-6 src 10.98.35.0/24 # PEN Group
acl yam-7 src 10.98.36.0/24 # PEN Group
acl yam-8 src 10.98.37.0/24 # PEN Group
acl yam-9 src 10.98.38.0/24 # PEN Group
acl yam-10 src 10.98.39.0/24 # PEN Group
acl yam-11 src 10.98.40.0/24 # PEN Group
acl localnet src 127.0.0.1/255.255.255.255
http_access allow our_networks
http_access allow localnet
http_access allow yam-1
http_access allow yam-2
http_access allow yam-3
http_access allow yam-4
http_access allow yam-5
http_access allow yam-6
http_access allow yam-7
http_access allow yam-8
http_access allow yam-9
http_access allow yam-10
http_access allow yam-11
http_access allow localnet