Решил установить позрачный прокси сервер - squip на шлюз под FreeBSD 7.1
Установил squip30
Настроил squid.conf по статье http://www.lissyara.su/?id=1026
Запустил squid
Проверил squid слушает порт вроде все ок.
Настроил перенаправление пакетов на порт squid
Но при попытки загрузить любую веб страницу. браузер пишет что страница найдена загружаю, потом долго думает и дает ошибку "невозможно загрузить страницу.
Облазил весь инет
Упрастил squip.config до вида
Код: Выделить всё
http_port 127.0.0.1:3128 transparent
icp_port 0
#hierarchy_stoplist cgi-bin ?
#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY
cache mem 64 MB
#maxi um_object_size 8092 KB
#maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid/cache 2048 64 256
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
cache_store_log none
cache_mgr slbond86@mail.ru
visible hostname is74.ru
#tcp_o going_address 222.222.222.222
#refresh_pattern ^ftp: 1440 20% 10080
#refresh_pattern ^gopher: 1440 0% 1440
#refresh_pattern . 0 20% 4320
#redirect_program /usr/local/etc/squid/redirector.pl #пpoгpaммa peдиpeктop
#redirect_children 10 #чиcлo пpoцeccoв пpoгpaммы-peдиpeктopa
#acl all src all
#acl allowed_sites dstdomain "/usr/local/my_doc_smb/squid/allowed_sites.conf"
#acl limited_IP src "/usr/local/my_doc_smb/squid/limited_IP.conf"
acl localhost src 127.0.0.0/8
acl our_networks src 172.18.3.0/24
#acl denied_sites dstdomain "/usr/local/my_doc_smb/squid/denied_ext.conf"
#http_access deny denied_sites
#http_access allow allowed_sites
#http_access deny limited_IP
http_access allow our_networks
#http_access allow localhost
#http_access deny all
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
coredump_dir /usr/local/squid/cache
pid_filename /usr/local/squid/logs/squid.pid
Код: Выделить всё
2009/05/07 05:00:09| Starting Squid Cache version 3.0.STABLE14 for i386-portbld-freebsd7.0...
2009/05/07 05:00:09| Process ID 30379
2009/05/07 05:00:09| With 3520 file descriptors available
2009/05/07 05:00:09| DNS Socket created at 0.0.0.0, port 64465, FD 6
2009/05/07 05:00:09| Adding domain is74.ru from /etc/resolv.conf
2009/05/07 05:00:09| Adding nameserver 78.29.2.21 from /etc/resolv.conf
2009/05/07 05:00:09| Adding nameserver 78.29.2.22 from /etc/resolv.conf
2009/05/07 05:00:09| Unlinkd pipe opened on FD 11
2009/05/07 05:00:09| Store logging disabled
2009/05/07 05:00:09| Swap maxSize 2097152 KB, estimated 161319 objects
2009/05/07 05:00:09| Target number of buckets: 8065
2009/05/07 05:00:09| Using 8192 Store buckets
2009/05/07 05:00:09| Max Mem size: 65536 KB
2009/05/07 05:00:09| Max Swap size: 2097152 KB
2009/05/07 05:00:09| Version 1 of swap file with LFS support detected...
2009/05/07 05:00:09| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2009/05/07 05:00:09| Using Least Load store dir selection
2009/05/07 05:00:09| Set Current Directory to /usr/local/squid/cache
2009/05/07 05:00:09| Loaded Icons.
2009/05/07 05:00:09| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 12.
2009/05/07 05:00:09| HTCP Disabled.
2009/05/07 05:00:09| Ready to serve requests.
2009/05/07 05:00:09| Done reading /usr/local/squid/cache swaplog (0 entries)
2009/05/07 05:00:09| Finished rebuilding storage from disk.
2009/05/07 05:00:09| 0 Entries scanned
2009/05/07 05:00:09| 0 Invalid entries.
2009/05/07 05:00:09| 0 With invalid flags.
2009/05/07 05:00:09| 0 Objects loaded.
2009/05/07 05:00:09| 0 Objects expired.
2009/05/07 05:00:09| 0 Objects cancelled.
2009/05/07 05:00:09| 0 Duplicate URLs purged.
2009/05/07 05:00:09| 0 Swapfile clashes avoided.
2009/05/07 05:00:09| Took 0.05 seconds ( 0.00 objects/sec).
2009/05/07 05:00:09| Beginning Validation Procedure
2009/05/07 05:00:09| Completed Validation Procedure
2009/05/07 05:00:09| Validated 25 Entries
2009/05/07 05:00:09| store_swap_size = 0
2009/05/07 05:00:10| storeLateRelease: released 0 objects
Код: Выделить всё
#rdr on $int_if proto tcp from <admin> to any port www -> 127.0.0.1 port $proxy_port
nat on $net_if from <admin> to any ->($net_if) #paзpeшaeт тpaнcляцию пaкeтoв c ng0 в интepнeт
pass all
Может кто подскажет что не так делаю?



