система archlinux:
squid: Squid Cache: Version 2.5.STABLE14 из пакета
проблема.
прописываем в браузере (опера/мозилла) прокси localhost 3128
открываем mail.ru - все отлично
пытаемся открыть yandex.ru - не открывается.
после перезапуска то же самое, вторую ссылку уже не открывает.
хочу что бы мой сквид работал через корпоративный прокси (тоже сквид).
в чем проблема???
(меня смущает слово DIRECT в логе, т.к. на адреса которые из корпоративной сети - недоступны)
конфиг:
cache_peer cache.star-sw.com parent 3128 3130 proxy-only default
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
pid_filename /var/run/squid.pid
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
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.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 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 CONNECT method CONNECT
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_reply_access allow all
icp_access allow all
cache_mgr bla@bla.com
coredump_dir /var/cache/squid
tail /var/log/squid/access.log:
1157462526.215 179703 127.0.0.1 TCP_MISS/504 1495 GET http://top3.list.ru/counter? - DIRECT/194.67.45.99 text/html
1157462526.215 179679 127.0.0.1 TCP_MISS/504 1512 GET http://counter.rambler.ru/top100.cnt? - DIRECT/81.19.66.19 text/html
1157462528.231 179682 127.0.0.1 TCP_MISS/504 1523 GET http://engine.awaps.net/0/2209/075050.gif? - DIRECT/213.59.0.100 text/html
1157462531.419 180000 127.0.0.1 TCP_MISS/504 1516 GET http://ad.adriver.ru/cgi-bin/erle.cgi? - DIRECT/81.222.128.15 text/html
1157462531.419 179999 127.0.0.1 TCP_MISS/504 1516 GET http://ad.adriver.ru/cgi-bin/erle.cgi? - DIRECT/81.222.128.12 text/html
1157462531.419 179998 127.0.0.1 TCP_MISS/504 1516 GET http://ad.adriver.ru/cgi-bin/erle.cgi? - DIRECT/81.222.128.14 text/html
1157462535.459 179537 127.0.0.1 TCP_MISS/504 1515 GET http://213.59.0.100/0/3544/001001.htm? - DIRECT/213.59.0.100 text/html
1157462543.179 179687 127.0.0.1 TCP_MISS/504 1490 GET http://r.mail.ru/n6748860 - DIRECT/194.67.23.109 text/html
1157462548.179 179996 127.0.0.1 TCP_MISS/504 1471 GET http://utro.ru/ - DIRECT/194.186.36.232 text/html
1157463700.752 19 127.0.0.1 TCP_MISS/304 344 GET http://img.mail.ru/mail/ru/css/future-2.css - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com text/css
1157463700.984 22 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/logon.gif - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com image/gif
1157463700.985 23 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/log_bms.gif - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com image/gif
1157463700.985 23 127.0.0.1 TCP_MISS/304 344 GET http://img.mail.ru/1.gif - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com image/gif
1157463700.985 23 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/telephonem.gif - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com image/gif
1157463700.986 23 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/helpm.gif - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com image/gif
1157463701.056 103 127.0.0.1 TCP_MISS/200 422 GET http://top3.list.ru/counter? - TIMEOUT_NONE/- image/gif
1157463701.070 8 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/3_10.gif - TIMEOUT_NONE/- image/gif
1157463701.079 8 127.0.0.1 TCP_MISS/200 1357 GET http://r.mail.ru/b1574758 - TIMEOUT_NONE/- text/plain
1157463701.083 11 127.0.0.1 TCP_MISS/200 4208 GET http://r.mail.ru/b1468865.jpg - TIMEOUT_NONE/- image/jpeg
1157463702.124 21 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/r/smssearch.gif - TIMEOUT_NONE/- image/gif
1157463702.125 18 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/searchn.gif - TIMEOUT_NONE/- image/gif
1157463702.125 20 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/adv_search_s.gif - TIMEOUT_NONE/- image/gif
1157463703.086 992 127.0.0.1 TCP_MISS/200 1729 GET http://r.mail.ru/b1583546.chertovka.ru__avatarsmall - TIMEOUT_NONE/- text/plain
1157463703.556 2594 127.0.0.1 TCP_MISS/200 1074 GET http://counter.rambler.ru/top100.cnt? - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com image/gif
1157463704.112 3040 127.0.0.1 TCP_MISS/200 1699 GET http://r.mail.ru/b1583531 - TIMEOUT_NONE/- text/plain
1157463705.343 14 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/menur10.gif - TIMEOUT_NONE/- image/gif
1157463705.344 12 127.0.0.1 TCP_MISS/304 345 GET http://img.mail.ru/mail/ru/images/menul13.gif - TIMEOUT_NONE/- image/gif
1157463706.190 859 127.0.0.1 TCP_MISS/200 2397 GET http://engine.awaps.net/0/2209/075050.gif? - TIMEOUT_NONE/- image/gif
1157463707.220 8 127.0.0.1 TCP_MISS/200 1071 GET http://r.mail.ru/b1555642.gif - TIMEOUT_NONE/- image/gif
1157463708.212 7555 127.0.0.1 TCP_MISS/200 30611 GET http://mail.ru/ - TIMEOUT_DEFAULT_PARENT/cache.star-sw.com text/html
1157463728.537 1 127.0.0.1 TCP_MISS/503 1663 POST http://ocsp.thawte.com/ - NONE/- text/html
squid (проблемы с настройкой сквида, ходит только под себя)
Модератор: /dev/random
-
ynkulbyh
- Сообщения: 24
- ОС: archlinux
-
minder
- Сообщения: 331
- ОС: AIX, Solaris,RHEL,SLES,Gentoo
Re: squid
Первую ссылку он (браузер) открывает, возможно, из кэша?
Нужно настроить его на родительский прокси. В документации это описано. RTFM.
Судя по логу squid что-то смог загрузить. Странно, как это ему удалось, или на корпоративном прокси не закрыты порты в обход его?
Нужно настроить его на родительский прокси. В документации это описано. RTFM.
Судя по логу squid что-то смог загрузить. Странно, как это ему удалось, или на корпоративном прокси не закрыты порты в обход его?
-
ynkulbyh
- Сообщения: 24
- ОС: archlinux
Re: squid
cache_peer cache.star-sw.com parent 3128 3130 proxy-only default
разве это не то??? в смысле разве не это отвечает, что бы он посылал запросы к родительскому прокси?
-
d_n_k
- Сообщения: 636
- ОС: Gentoo GNU/Linux
Re: squid
acl xxx dst 1.2.3.4/32
always_direct allow xxx
never_direct allow all
always_direct allow xxx
never_direct allow all
все сказанное есть имхо...