jorge.lm
(usa CentOS)
Enviado em 12/06/2012 - 22:39h
Opa, Rafael! Segue as confs do squid e samba:
SQUID (squid.conf)
###############################################
http_port 3128
cache_effective_user proxy
cache_effective_group proxy
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 30
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 192.168.0.0/255.255.255.0
acl manager proto cache_object
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
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
acl Autorizado proxy_auth REQUIRED
#BIBLIOTECA_SITES
acl sitesbiblioteca url_regex -i "/etc/squid/sitesbiblioteca"
acl ipsbiblioteca src "/etc/squid/ipsbiblioteca"
http_access deny sitesbiblioteca ipsbiblioteca
#BIBLIOTECA_EXT
acl extbiblioteca url_regex -i "/etc/squid/extbiblioteca"
http_access deny extbiblioteca ipsbiblioteca
acl sitesliberados url_regex -i "/etc/squid/liberados"
http_access allow sitesliberados all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow all Autorizado
http_access allow all
http_reply_access allow all
icp_access allow all
coredump_dir /usr/local/squid/var/cache
######################################################################
SAMBA (smb.conf)
[global]
workgroup = EMPRESA
netbios name = PROXY
server string = Samba Server
log level = 3
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
security = ads
password server = 192.168.0.1
realm=SAGRADO.COM
encrypt passwords = yes
ldap ssl = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind use default domain = yes
dns proxy = yes
preferred master = no
###################################################################
Vamos lá...Os comandos que vc citou retornam sim respostas de que tudo está ok. Visualizo os usuários, grupos do AD, horário sincronizado, enfim...Tudo pronto pra funcionar (por sinal, estava funcionando perfeitamente até eu realizar as tais atualizações pelo yum update). Sim, eu utilizo o winbind. O problema é que depois dessas atualizações, nas estações quando eu seto o proxy, abre um prompt pedindo usuário e senha (o que não era pra acontecer e não acontecia) e mesmo que eu coloque usuário e senha, ele volta a mesma tela pedindo novamente, enfim, deu erro...Agradeço novamente a força de vcs! abs