LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 861|回复: 6

配置Squid的问题,急问

[复制链接]
发表于 2006-6-16 10:58:47 | 显示全部楼层 |阅读模式
描述:
    我用的机器都在192.168.1.*网段,想把192.168.1.66设置为前向代理,我的机器地址是192.168.1.38。
在192.168.1.66(suse 10)上安装squid 2.5后,打开了3128端口,然后,在192.168.1.38的浏览器设置192.168.1.66:3128为代理,但是无法上网,而192.168.1.66自己把自己设置为代理,就可以上网,在log中可以发现它缓存的记录。

哪位大虾知道如何解决,帮帮忙啊!先谢谢了!

我在suse 10.0上使用suse提供的squid 2.5,安装成功后,基本都没有改过任何东西只是把
http_access allow localhost
改成了
http_access allow all
并把
http_access deny all
注释掉了,如下。
# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
http_access allow all

# And finally deny all other access to this proxy
#http_access deny all
然后就都没有改其他地方了,附件是我做了如上修改后的squid.conf文件。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-6-16 13:48:31 | 显示全部楼层
http_acess allow all
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-16 16:17:50 | 显示全部楼层
Post by ctgboy
http_acess allow all
不行,还是不行
回复 支持 反对

使用道具 举报

发表于 2006-6-17 10:00:22 | 显示全部楼层
把你的squid.conf配置的内容贴出来看看



Rehl 4 多VLAN透明代理上网
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-19 14:50:07 | 显示全部楼层
Post by ctgboy
把你的squid.conf配置的内容贴出来看看



Rehl 4 多VLAN透明代理上网
我把配置文件作为附件放到主帖了,麻烦给看看,谢谢了
回复 支持 反对

使用道具 举报

发表于 2006-6-19 16:10:10 | 显示全部楼层
我的是透明代理,与你的配置文件有如下不同,也许你可以参考参考:

httpd_accel_port 80
httpd_accel_single_host off
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
httpd_accel_no_pmtu_disc on
ie_refresh on
httpd_accel_host virtual
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-19 19:09:51 | 显示全部楼层
Post by springwind426
我的是透明代理,与你的配置文件有如下不同,也许你可以参考参考:

httpd_accel_port 80
httpd_accel_single_host off
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
httpd_accel_no_pmtu_disc on
ie_refresh on
httpd_accel_host virtual
我不用suse 10自带的那个squid,自己下载安装一个就可以了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表