LINUX.ORG.RU
ФорумAdmin

Squid+sams-1.0.5

 , ,


0

1

Всем доброго времени суток. Есть прокси сервер по сабжу, всё работает, всё хорошо. Только одного не пойму, перестало пускать пользователей на веб-морду самса при попытке посмотреть свою индивидуальную статистику, хотя раньше всё пускало. Авторизация настроена ntlm и ip. Логи смотрел, у гугла спрашивал, проблему не решил.

а sams разве не мёртв ?
емнип ещё в 2007-ом где-то рипнулся.

dada ★★★★★ ()
Ответ на: комментарий от pianolender

Logs

squid.conf

#Recommended minimum configuration per scheme:
acl ucan dstdomain .rp5.ru .quadra.ru .belgorod-tsk.ru
http_access allow ucan
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 30
auth_param ntlm keep_alive on
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
#  TAG: acl
#
#Recommended minimum configuration:
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 0.0.0.0/32
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
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 SSL_ports port 443		# https
acl SSL_ports port 563		# snews
acl SSL_ports port 873		# rsync
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 Safe_ports port 631		# cups
acl Safe_ports port 873		# rsync
acl Safe_ports port 901		# SWAT
acl purge method PURGE
acl CONNECT method CONNECT

#  TAG: http_access
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
http_access allow localhost


###auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
###auth_param ntlm children 30
###auth_param ntlm keep_alive on
#auth_param digest program <uncomment and complete this line>
#auth_param digest children 5
#auth_param digest realm Squid proxy-caching web server
#auth_param digest nonce_garbage_interval 5 minutes
#auth_param digest nonce_max_duration 30 minutes
#auth_param digest nonce_max_count 50
###auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
###auth_param basic children 5
###auth_param basic realm Squid proxy-caching web server
###auth_param basic credentialsttl 2 hours
###auth_param basic casesensitive off



# And finally deny all other access to this proxy
http_access deny all
#
#Allow ICP queries from local networks only
icp_access allow localnet
icp_access deny all
# Squid normally listens to port 3128
http_port 8080
#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
#Default:
 cache_dir ufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log squid
#Default:
 pid_filename /var/run/squid.pid
#
#Suggested default:
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern -i (/cgi-bin/|\?) 0	0%	0
refresh_pattern (Release|Package(.gz)*)$	0	20%	2880
# example line deb packages
#refresh_pattern (\.deb|\.udeb)$   129600 100% 129600
refresh_pattern .		0	20%	4320
# Don't upgrade ShoutCast responses to HTTP
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
# Apache mod_gzip and mod_deflate known to be broken so don't trust
# Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
#  TAG: extension_methods
#	Squid only knows about standardized HTTP request methods.
#	You can add up to 20 additional "extension" methods here.
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
#  TAG: delay_class
hosts_file /etc/hosts

smb.conf

workgroup = BRG
   realm = BELGOROD.TGK-4.LOCAL
   security = ads
   password server = 10.109.0.20
server string = ubuntu proxy server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
encrypt passwords = true
obey pam restrictions = yes
unix password sync = yes
pam password change = yes
winbind separator = +
winbind use default domain = yes
winbind uid = 10000-20000
winbind gid = 10000-20000

krb5.conf

[libdefaults]
	default_realm = BELGOROD.TGK-4.LOCAL
	clockskew = 300
[realms]
	BELGOROD.TGK-4.LOCAL = {
		kdc = brgdc2.belgorod.tgk-4.local
		kdc = id-dc.belgorod.tgk-4.local
		admin_server = brgdc2.belgorod.tgk-4.local
	}
	
[domain_realm]
	.belgorod.tgk-4.local = BELGOROD.TGK-4.LOCAL
	belgorod.tgk-4.local = BELGOROD.TGK-4.LOCAL
	
[login]
	krb4_convert = true
	krb4_get_tickets = false

nsswitch.conf

passwd:         files winbind
group:          files winbind
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

p1r4te ()
Ответ на: комментарий от fbiagent

Виноградов никак не оставит труп в покое, использовал самс для отключения юзеров перебравших лимит, во времена быстрых и безлимитных интернетов самс стал не нужен как и дисковый кеш кальмара

vxzvxz ★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.