那位能帮我解释

由 delectation 在 10-14-2003 14:15 发表:

那位能帮我解释

在网上看透明代理的配置,可我不明白.

Squid-2

加下面的行到你的/etc/squid/squid.conf中

http_port 8080

httpd_accel_host virtual

httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

下面的命令针对Linux 2.2.x内核:

Accept all on lookback

/sbin/ipchains -A input -j ACCEPT -i lo

#Accept my own IP, to prevent loops (repeat for each interface/alias)

/sbin/ipchains -A input -j ACCEPT -p tcp -d 192.168.11.1/32 80

#Send all traffic destined to port 80 to Squid on port 80

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus