Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- acl manager proto cache_object
- acl localhost src 127.0.0.1/32 ::1
- acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
- acl localnet src 192.168.56.0/24
- 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
- # --------------------------------------------
- # ---------<Autentykacja użytkownika>---------
- # --------------------------------------------
- auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
- auth_param basic children 2
- auth_param basic realm Serwer squid
- auth_param basic credentialsttl 2 hours
- acl ncsa_users proxy_auth REQUIRED
- http_access allow ncsa_users
- # --------------------------------------------
- # ---------</Autentykacja użytkownika>--------
- # --------------------------------------------
- # --------------------------------------------
- # ---------<Użytkownicy>----------------------
- # --------------------------------------------
- acl prezes arp 08:00:27:84:24:BF 08:00:27:81:08:73
- acl menagerowie arp 08:00:27:E7:D5:37 08:00:27:82:59:C5 08:00:27:C3:BE:B8
- acl prog_proj src 192.168.2.0/24
- acl administrator arp 08:00:27:EB:D7:94
- acl ksieg_sekr src 192.169.3.0/24
- acl projektanci proxy_auth "/etc/squid3/projektancji.acl"
- acl programisci proxy_auth "/etc/squid3/programisci.acl"
- # --------------------------------------------
- # ---------</Użytkownicy>---------------------
- # --------------------------------------------
- # --------------------------------------------
- # ---------<Definicje>------------------------
- # --------------------------------------------
- acl rozrywkowe dstdom_regex "/etc/squid3/rozrywkowe.acl"
- acl media urlpath_regex "/etc/squid3/media.acl"
- acl win_update dstdomain windows.update.microsoft.com
- acl portale dstdom_regex "/etc/squid3/portale.acl"
- acl godziny time 8:00-16:00
- acl dni time M T W H F
- acl dokumenty urlpath_regex "/etc/squid3/dokumenty.acl"
- # --------------------------------------------
- # ---------</Definicje>-----------------------
- # --------------------------------------------
- # --------------------------------------------
- # ---------<Ograniczenia>---------------------
- # --------------------------------------------
- # PREZES
- http_access allow prezes
- # MENAGEROWIE
- http_access deny godziny_pracy menagerowie rozrywkowe
- http_access allow menagerowie
- # PROGRAMIŚCI I PROJEKTANCI
- http_access deny prog_proj rozrywkowe
- # PROGRAMIŚCI
- http_access deny prog_proj programisci portale godziny dni
- http_access allow prog_proj programisci
- # PROJEKTANCI
- http_access deny prog_proj projektanci media
- http_access allow prog_proj projektanci win_update
- http_access allow prog_proj projektanci
- # ADMINISTRATOR
- http_access deny administrator !godziny dni rozrywkowe
- http_access allow administrator
- # SEKRETARKA I KSIEGOWA
- http_access deny ksieg_sekr godziny dni rozrywkowe
- http_access deny ksieg_sekr !dokumenty
- http_access allow ksieg_sekr
- # --------------------------------------------
- # ---------</Ograniczenia>--------------------
- # --------------------------------------------
- http_access allow manager localhost
- http_access deny manager
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- http_access allow localhost
- http_access allow localnet
- http_access deny all
- icp_access allow localnet
- icp_access deny all
- http_port 3128
- icp_port 3130
- cache_mem 8 MB
- coredump_dir /var/spool/squid3
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
- refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
- refresh_pattern . 0 20% 4320
- cache_dir ufs /var/spool/squid3 100 16 16
- client_netmask 255.255.255.255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement