|
发表于 2003-3-17 16:44:08
|
显示全部楼层
Re: 代理问题????大家帮我看看好吗 ?
什么是什么? 把我都说糊涂了。
最初由 pinksnoopy 发布
我是局域网内的,我们机房的ip是192.168.112.*
隔壁机房是192.168.109.*
我在squid设置了,我们机房的人可以代理我,
但隔壁机房就代理不了了,请问squid里怎么设置???
子网掩码是什么, 是在一个网段中么? 如果不是, 两个网段是怎么连接的呀?
还有一个问题:我用浏览器代理了ip可以上外国网,自己可以上
但同在机房的人代理我时却上不了外国网,,请问这如何可以实现呢
到底想怎么个代理呀, 你的ISP是否可以浏览国外的ip?
是不是要squid指向令一个代理?
http://www.squid-cache.org/Doc/FAQ/FAQ-4.html#ss4.9
4.9 How do I configure Squid forward all requests to another proxy?
Note: The information here is current for version 2.2.
First, you need to give Squid a parent cache. Second, you need to tell Squid it can not connect directly to origin servers. This is done with three configuration file lines:
cache_peer parentcache.foo.com parent 3128 0 no-query default
acl all src 0.0.0.0/0.0.0.0
never_direct allow all
Note, with this configuration, if the parent cache fails or becomes unreachable, then every request will result in an error message.
In case you want to be able to use direct connections when all the parents go down you should use a different approach:
cache_peer parentcache.foo.com parent 3128 0 no-query
prefer_direct off
The default behaviour of Squid in the absence of positive ICP, HTCP, etc replies is to connect to the origin server instead of using parents. The prefer_direct off directive tells Squid to try parents first. |
|