для начала ставишь самбу на сервак с проксей. Настраивать самбу не надо.
Конфигуриш сквид:
./configure --prefix=/opt/squid --enable-auth=basic,ntlm --enable-auth-modules=SMB --enable-basic-helpers=SMB --enable-ntlm-modules=SMB --enable-delay-pools --disable-wccp --enable-snmp --enable-icmp --enable-dlmalloc
Учти что сквидовый конф заточен под меня.
В нем режется трафик, идет обрашение к выше стоящему сквиду, мониторится с помощью mrtg, настроены редиректоры для квоты по трафику ну и тд. и тп.
Взял прямо с живого сервера!
В конфиге:
http_port 3128
icp_port 3130
cache_peer loxy2.ru parent 3128 3130 default
dead_peer_timeout 30 seconds
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 512 MB
cache_swap_low 80
cache_swap_high 90
maximum_object_size 5000 KB
maximum_object_size_in_memory 4 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /opt/cache 50000 16 128
cache_access_log /opt/squid/var/logs/access.log
cache_log /opt/squid/var/logs/cache.log
cache_store_log /opt/squid/var/logs/store.log
ftp_user squid@loxy.ru
ftp_passive on
hosts_file /etc/hosts
redirect_program /opt/squid/bin/rlimit
#Обращение к самбе за авторизацией
auth_param basic program /opt/squid/libexec/smb_auth -W grp -U 192.168.1.1
auth_param basic children 5
auth_param basic realm Loxy USER AUTHENTICATION
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
# smb_auth -W grp (Рабочая группа) -U 192.168.1.1 (адрес самбы)
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl myusers proxy_auth REQUIRED
http_access allow myusers
acl all src 192.168.1.0/255.255.255.0
acl manager proto cache_object
acl prosnmp snmp_community snmploxy
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 Safe_ports port 2802 # WebMoney
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr hammer@loxy.ru
cache_effective_user nobody
cache_effective_group nobody
visible_hostname loxy.ru
memory_pools on
memory_pools_limit 15 MB
cachemgr_passwd secret all
query_icmp on
icon_directory /opt/squid/share/icons
error_directory /opt/squid/share/errors/Russian-koi8-r
snmp_access allow prosnmp localhost
snmp_access allow all
delay_pools 1
delay_class 1 2
delay_access 1 allow myusers
delay_access 1 deny all
delay_parameters 1 -1/-1 8000/7000
uri_whitespace allow
coredump_dir /opt/squid/
redirector_bypass on