Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: squid3 не запускается после обновления ОС  (Прочитано 902 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн igogo56136

  • Автор темы
  • Участник
  • *
  • Сообщений: 136
    • Просмотр профиля
Здравствуйте, вчера обновил ubuntu 12.04 до 14.04 в результате squid перестал запускаться, выдает ошибку

2016/10/13 09:32:16| aclParseAclLine: ACL 'manager' already exists with different type.
FATAL: Bungled /etc/squid3/squid.conf line 898: acl manager proto cache_object
Squid Cache (Version 3.3.8): Terminated abnormally.
CPU Usage: 0.009 seconds = 0.004 user + 0.004 sys
Maximum Resident Size: 21344 KB
Page faults with physical i/o: 0

Подскажите, что делать   вот конфиг

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 baraban src 192.168.0.69/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
acl DFN proxy_auth REQUIRED
acl block dstdomain "/etc/squid3/block.acl"
acl vip proxy_auth u019 u056 u062 u123 u055 u068 u069
http_access allow manager localhost
http_access deny manager
http_access allow localhost
http_access allow DFN
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny all
http_port 3128
cache_mem 1024 MB
cache_dir ufs /var/spool/squid3 8192 16 256
cache_swap_low 90
cache_swap_high 95
coredump_dir /var/spool/squid3
url_rewrite_children 5
url_rewrite_bypass on
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
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024


Пользователь добавил сообщение 13 Октября 2016, 10:28:19:
Все разобрался закомментил acl manager и первые три строки все пошло, но теперь у некоторых пользователей Пишет ошибка доступ запрещен например на яндекс ругается

Пользователь добавил сообщение 13 Октября 2016, 11:03:21:
Косяк был в конфиге,ошибку убрал но теперь squid пишет что доступ запрещен к любому сайту 

root@proxy:/etc/squid3# cat /etc/squid3/squid.conf | egrep -v "^\s*(#|$)"
auth_param basic realm squid
auth_param basic credentialsttl 2 hour
auth_param basic program /etc/webmin/squid/squid-auth.pl /etc/webmin/squid/users
auth_param basic children 15
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 DFN proxy_auth REQUIRED
acl block dstdomain "/etc/squid3/block.acl"
acl InetAll proxy_auth u019 u123 u056 u002 u003 u035 u052 u062 u068 u069 u130 u0  2
acl BadUsers proxy_auth u001 u004 u005 u006 u007 u008 u009 u010 u011 u012 u013 u  08 u049 u050 u051 u053 u054 u055 u057 u058 u059 u060 u061 u063 u064 u065 u066 u0  67u101 u102 u103 u104 u105 u106 u107 u108 u109 u110 u111 u112 u113 u114 u115 u11  6 u50 u151 u152 u153 u154 u155 u156 u157 u158 u159 u160 u161 u162 u163 u164 u165   u1  u198 u199 u200
acl BlockSite dstdomain 2ip.ru alawar.com alawar.ru cameleo.ru cmle.ru freeproxy   u www.2ip.ru www.alawar.com www.alawar.ru www.anonim.pro www.anonimizing.com ww  w a.org www.westfeed.ru xanproxy.be zapretanet.ru zen3.info zend24.info zendprox  y.
acl blockfiles url_regex "/etc/squid3/blockfiles.txt"
http_access deny blockfiles
http_access allow InetAll
http_access allow BadUsers !BlockSite
http_access deny all
http_access allow manager localhost
http_access deny manager
http_access allow DFN
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny all
http_port 3128
cache_mem 1024 MB
cache_dir ufs /var/spool/squid3 8192 16 256
cache_swap_low 90
cache_swap_high 95
coredump_dir /var/spool/squid3
url_rewrite_children 5
url_rewrite_bypass on
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
dns_nameservers 77.88.8.7 77.88.8.3
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024

добавил acl localnet  и http_access localnet alloy и все заработало
« Последнее редактирование: 13 Октября 2016, 12:18:54 от igogo56136 »

 

Страница сгенерирована за 0.017 секунд. Запросов: 22.