ipwf :
add 50 divert 8668 ip from any to any 80
add 100 fwd 192.168.21.251,3128 tcp from any to any 80в squid.conf прописал:
http_port 192.168.21.251:3128
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header onна клиентских машинах выдает:
ERROR
The requested URL could not be retrieved
-----------------------------------------
While trying to retrieve the URL: http://www.opennet.me/base/net/index.html
The following error was encountered:
Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is webmaster.
-----------------------------------------
Generated Tue, 13 Jul 2004 04:41:05 GMT by ws251.socium.ru (squid/2.5.STABLE3)
в логах пишет TCP_DENIEDпомогите как решить эту проблему!!!
Тоже мучался с этим...вот решениеipfw
-q add 400 fwd 192.168.0.254,3128 tcp from 192.168.0.0/24 to any 80,8081,8080остальное натом (ася шмася)
ipnat
map rl0 192.168.0.0/24 -> 81.95.224.8/32squid.conf
httpd_accel_host 127.0.0.1
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
а в логах сквида с какого ip запрос идёт?
похоже что первым диверт не надо ставить