Как завернуть на squid
Добавлено: 2010-06-29 19:20:28
В силу сложившихся обстоятельств пришлось перейти с FreeBSD на Windows. Поставил сквид. работает нормально. но есть проблема. если в клиентах указывать что в сети нет прокси сервера то все ходят напрямую. как в windows завернуть порт на squid принудительно?
мой конфиг:
http_port 192.168.0.254:3128
#http_port 127.0.0.1:3128 transparent
#http_port 3128 transparent
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
mime_table D:/server/squid/etc/mime.conf
unlinkd_program D:/server/squid/libexec/unlinkd.exe
logfile_daemon D:/server/squid/libexec/logfile-daemon.exe
icon_directory D:/server/squid/share/icons
error_directory D:/server/squid/share/errors/Russian-1251
coredump_dir D:/server/squid/var/cache
cache_dir ufs D:/server/squid/var/cache 2048 64 256
cache_access_log D:/server/squid/var/logs/access.log
cache_log D:/server/squid/var/logs/cache.log
cache_store_log D:/server/squid/var/logs/store.log
cache_mgr deaf@localnet.su
visible_hostname localnet.su
#tcp_outgoing_address 193.124.17.125
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
#redirect_children 10
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.0/8
acl our_networks src 192.168.0.0/24
acl allowed_ip src "D:/server/squid/etc/allowed_ip"
#http_access deny denied_sites
http_access allow allowed_ip
#http_access allow our_networks
http_access allow localhost
http_access deny our_networks
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
coredump_dir D:/server/squid/var/cache
pid_filename D:/server/squid/var/squid.pid
мой конфиг:
http_port 192.168.0.254:3128
#http_port 127.0.0.1:3128 transparent
#http_port 3128 transparent
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
mime_table D:/server/squid/etc/mime.conf
unlinkd_program D:/server/squid/libexec/unlinkd.exe
logfile_daemon D:/server/squid/libexec/logfile-daemon.exe
icon_directory D:/server/squid/share/icons
error_directory D:/server/squid/share/errors/Russian-1251
coredump_dir D:/server/squid/var/cache
cache_dir ufs D:/server/squid/var/cache 2048 64 256
cache_access_log D:/server/squid/var/logs/access.log
cache_log D:/server/squid/var/logs/cache.log
cache_store_log D:/server/squid/var/logs/store.log
cache_mgr deaf@localnet.su
visible_hostname localnet.su
#tcp_outgoing_address 193.124.17.125
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
#redirect_children 10
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.0/8
acl our_networks src 192.168.0.0/24
acl allowed_ip src "D:/server/squid/etc/allowed_ip"
#http_access deny denied_sites
http_access allow allowed_ip
#http_access allow our_networks
http_access allow localhost
http_access deny our_networks
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
coredump_dir D:/server/squid/var/cache
pid_filename D:/server/squid/var/squid.pid