求救squid!!!

由 agerlet 在 02-29-2004 21:25 发表:

求救squid!!!

这两天正在做squid,我下载了最新的2.5-STABLE4,弄了两三天了,还是没做出来。我参考了linuxsir上的很多例子,写出了这样一份简单了不能再简单的东西。令我暴汗的是它就是不工作。虽然我用ps ax已经可以看到它的三个进程在工作了,但是客户端就是不能通过它来访问http。我保证这个配置文件中用到的文件夹的权限都给我squid了。我实在受不了了,向各位linuxsir求救了。谢谢谢谢。

下面是我的配置文件squid.conf:

icp_port 0

http_port 192.168.1.128:8080

#cache_dir null /temp

cache_dir ufs /temp/cache 500 16 256

cache_mem 2 MB

cache_swap_low 90

cache_swap_high 95

cache_access_log /temp/squid_logs/access.log

cache_log /temp/squid_logs/cache.log

cache_store_log /temp/squid_logs/store.log

visible_hostname proxy.test.edu.cn

httpd_accel_host virtual

httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

acl all src 0.0.0.0/0

http_access allow all


由 szkingrose 在 03-01-2004 17:28 发表:


用了透明代理还需打开

echo 1 > /proc/sys/net/ipv4/ip_forward

/sbin/iptables -t nat -A PREROUTING -s 192.168.0.0/24 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080

/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE


由 agerlet 在 03-02-2004 08:59 发表:

对呀对呀,我就是这样写的。

在iptables里我就是这样写的。但是不管是在浏览器里加squid的地址和端口,还是通过iptables,我都无法访问Internet。就好像所有的包到squid之后就不见了,一点涟漪都没给我……


由 szkingrose 在 03-02-2004 10:50 发表:


那浏览器中有没有出现什么提示呢?


由 agerlet 在 03-02-2004 20:16 发表:

浏览器回答我找不到网页

浏览器回答我找不到网页,就这样,就像是脱机的一样或

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