Есть настроенный кальмар который дает интернет пользователям авторизованным в домене и в нужной группе.
Задача на этот же проксик посадить парочку IP адресов, но что бы не было авторизации.
Через этот прокси ходит все сетка 2.0/24. Настроил squidGuard и хочется его натравить на коммы из другой сети 1.0/24, но что бы не спрашивал логин и пароль.
Возможно такое или нет?
Если добавить
acl localnet src 192.168.1.0/24
http_access allow localnetВ переди всех правил, то инет все получают все, если в конце, то все равно просит авторизоваться, т.к. правила срабатывают построчно.
Конфиг прилагаю
http_port 3128
auth_param basic program /usr/lib64/squid/squid_ldap_auth -R -D sel_ldap@smb.mgkb1.local -w XXXXXX -b "dc=smb,dc=mgkb1,dc=local" -f "sAMAccountName=%s" 192.168.2.82 -p 389
auth_param basic children 20
auth_param basic realm Internet Access MGKB1
auth_param basic credentialsttl 1 minutes
auth_param basic casesensitive off
external_acl_type ldap_users %LOGIN /usr/lib64/squid/squid_ldap_group -R -b "OU=UsersDom,DC=smb,DC=mgkb1,DC=local" -f "(&(sAMAccountName=%v)(memberOf=CN=%a,CN=Builtin,DC=smb,DC=mgkb1,DC=local))" -D sel_ldap@smb.mgkb1.local -w "XXXXXXXX" 192.168.2.82 -v 3 -p 389
hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid
redirect_program /usr/bin/squidGuard
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
access_log /var/log/squid/access.log squid
cache_mem 1024 MB
cache_effective_user squid
cache_effective_group squid
cache_dir ufs /var/spool/squid/ 1024 16 256
cache_swap_low 97
cache_swap_high 100
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl inetusers external ldap_users ia
acl insured_user external ldap_users insured
acl small_allow url_regex -i "/etc/squid/Privilegy_list"
acl media urlpath_regex -i \.mp3$ \.asf$ \.wma$
acl localnet src 192.168.1.173
dns_nameservers 192.168.2.82 192.168.1.77 192.168.3.223
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
delay_pools 2
# ограничим mp3 до 30 Кб/с
delay_class 1 1
delay_parameters 1 30000/30000
delay_access 1 allow media
delay_access 1 deny all
# ограничим ldap users до 150 Кб/с
delay_class 2 1
delay_parameters 2 150000/150000
delay_access 2 allow inetusers insured_user
delay_access 2 deny all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow inetusers
http_access allow insured_user small_allow
http_access allow localnet
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
log_fqdn on
# Настроим ротацию логов
logfile_rotate 1
# Отключить удаление параметров передаваемых в URL запросе
strip_query_terms off
logformat squid %ts %6tr %>A %Ss/%03>Hs %<st %rm %ru %un %Sh/%<A %mtЧем больше я работаю админом, тем больше понимаю, насколько волшебна фраза - "Нет технической возможности!"
