Δημοσιεύτηκε: 21 Νοέμ 2008, 15:52
δώσε την εντολή
sudo gedit /etc/squid/squid.conf
Βάλε τις παρακάτω εντολές στο αρχείο και αποθήκευσε
http_port 3128
visible_hostname ΟΝΟΜΑ Η/Υ
acl localhost src 127.0.0.1/32
acl all src 0.0.0.0/0.0.0.0
acl manager proto cashe object
acl CONNECT method CONNECT
acl PURGE method PURGE
acl ftp_ports src 21
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl manager proto cache_object
acl CONNECT method CONNECT
acl SSL method CONNECT
acl lanhome src 192.168.0.0/255.255.255.0 ΒΑΛΕ ΤΙΣ ΣΩΣΤΕΣ IP
http_access allow lanhome
http_access allow PURGE localhost
http_access deny PURGE
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
acl wwwusers src 0.0.0.0/0.0.0.0
http_access allow all all
sudo gedit /etc/squid/squid.conf
Βάλε τις παρακάτω εντολές στο αρχείο και αποθήκευσε
http_port 3128
visible_hostname ΟΝΟΜΑ Η/Υ
acl localhost src 127.0.0.1/32
acl all src 0.0.0.0/0.0.0.0
acl manager proto cashe object
acl CONNECT method CONNECT
acl PURGE method PURGE
acl ftp_ports src 21
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl manager proto cache_object
acl CONNECT method CONNECT
acl SSL method CONNECT
acl lanhome src 192.168.0.0/255.255.255.0 ΒΑΛΕ ΤΙΣ ΣΩΣΤΕΣ IP
http_access allow lanhome
http_access allow PURGE localhost
http_access deny PURGE
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
acl wwwusers src 0.0.0.0/0.0.0.0
http_access allow all all