прозрачный прокси

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
imroot
мл. сержант
Сообщения: 127
Зарегистрирован: 2007-12-18 14:06:19

прозрачный прокси

Непрочитанное сообщение imroot » 2011-03-10 16:32:44

Привет всем!

Код: Выделить всё

FreeBSD router 7.3-RELEASE FreeBSD 7.3-RELEASE
ipfw show

Код: Выделить всё

00100  674122  447945566 divert 8668 ip4 from any to any via em1
00200      54       3658 divert 8669 ip4 from any to any via em0
00300     806     250744 allow ip from any to any via lo0
00400       0          0 deny ip from any to 127.0.0.0/8
00500       0          0 deny ip from 127.0.0.0/8 to any
00600 2703341 1796386834 allow ip from any to any
00700       0          0 allow ip from me to any
00800       0          0 allow ip from any to me
65535       4        112 deny ip from any to any
сквид Version 3.0.STABLE24

Код: Выделить всё

configure options:  '--with-default-user=squid' '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic digest negotiate ntlm' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB squid_radius_auth YP' '--enable-digest-auth-helpers=password' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group' '--enable-ntlm-auth-helpers=SMB' '--enable-storeio=ufs diskd null' '--enable-delay-pools' '--disable-carp' '--enable-useragent-log' '--enable-ipfw-transparent' '--enable-icap-client' '--enable-kqueue' '--with-large-files' '--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish  Dutch English Estonian Finnish French German Greek  Hebrew Hungarian Italian Japanese Korean Lithuanian  Polish Portuguese Romanian Russian-1251 Russian-koi8-r  Serbian Simplify_Chinese Slovak Spanish Swedish  Traditional_Chinese Turkish Ukrainian-1251  Ukrainian-koi8-u Ukrainian-utf8' '--enable-default-err-language=templates' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.3' 'build_alias=i386-portbld-freebsd7.3' 'CC=cc' 'CFLAGS=-O2 -fno-strict-aliasing -pipe' 'LDFLAGS=' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-O2 -fno-strict-aliasing -pipe'
конфиг сквида

Код: Выделить всё

http_port 3128
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 128 MB
maximum_object_size 8092 KB
maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid/cache 2048 64 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_mgr tech@owox.com
visible_hostname office.owox.com
tcp_outgoing_address ВНЕШНИЙ_ИП
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
acl     localhost       src             127.0.0.0/8
acl     our_networks    src             172.16.0.0/22
acl manager proto cache_object
http_access allow manager localhost
http_access deny manager
cachemgr_passwd secret all
http_access     allow   our_networks
http_access     allow   localhost
http_access     allow    all

http_port 3128 transparent
coredump_dir /usr/local/squid/cache
pid_filename /usr/local/squid/logs/squid.pid
добавляю заварачивающее правило

Код: Выделить всё

ipfw add 50 fwd 127.0.0.1,3128 tcp from 172.16.0.0/22 to any 80 via em1
открывая страницу получаю

Код: Выделить всё

ERROR
The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: /keywords.php?keyword=5530

    Invalid URL

Some aspect of the requested URL is incorrect.

Some possible problems are:
    *
      Missing or incorrect access protocol (should be "http://" or similar)
    *
      Missing hostname
    *
      Illegal double-escape in the URL-Path
    *
      Illegal character in hostname; underscores are not allowed.
куда копать ?

заранее благодарен!

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Covax
мл. сержант
Сообщения: 131
Зарегистрирован: 2008-04-27 23:54:31
Откуда: Витебск, Беларусь
Контактная информация:

Re: прозрачный прокси

Непрочитанное сообщение Covax » 2011-03-10 20:55:36

В конфиге два http_port?

imroot
мл. сержант
Сообщения: 127
Зарегистрирован: 2007-12-18 14:06:19

Re: прозрачный прокси

Непрочитанное сообщение imroot » 2011-03-13 22:21:10

да вы правы, тут какраз и косяк спасибо.