LinuxSir.cn,穿越时空的Linuxsir!

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

进入squid.conf文件如何配置?

[复制链接]
发表于 2005-1-4 23:17:32 | 显示全部楼层 |阅读模式
用什么方式打开???
vi命令??还是别的方式。
里面是要新建命令,还是改改就行了??
 楼主| 发表于 2005-1-4 23:32:59 | 显示全部楼层
进行vi /usr/local/etc/squid.conf
进去后直接加下面的(网上提供的)能搞定吗??
#squid.conf - a very basic config file for squid

  #Turn logging to it's lowest level

  debug_options ALL,1

  #defines a group (or Access Control List) that includes all IP addresses

  acl all src 0.0.0.0/0.0.0.0

  #define RAM used

  cache_mem 32M

  #defines the cache size

  cache_dir /usr/local/squid/cache 100 16 256

  #allow all sites to use connect to us via HTTP

  http_access allow all

  #allow all sites to use us as a sibling

  icp_access allow all

  #test the following sites to check that we are connected

  dns_testnames internic.net usc.edu cs.colorado.edu mit.edu yale.edu

  #run as the squid user

  cache_effective_user squid squid
 楼主| 发表于 2005-1-4 23:42:46 | 显示全部楼层
下面是我进去后的画面,还有几步才能代理成功呀??
我的外网地址是220.178.56.50 网关是220.178.56.33
内网地址10.1.1.254 要代理的是10.1.1.0网段,兄弟们帮帮忙,都把我急晕了

#       WELCOME TO SQUID 2
#       ------------------
#
#       This is the default Squid configuration file. You may wish
#       to look at http://cache.is.co.za/squid/ for documentation,
#       or the Squid home page (http://squid.nlanr.net/) for the FAQ.
#
#       The default Squid config file shows what the defaults for
#       various options happen to be.  If you don't need to change the
#       default, you shouldn't uncomment the line.  Doing so may cause
#       run-time problems.  In some cases "none" refers to no default
#       setting at all, whilst in other cases it refers to a valid
#       option - the comments for that keyword indicate if this is the
#       case.
#
                                                                                
                                                                                
# NETWORK OPTIONS
# -----------------------------------------------------------------------------
                                                                                
#  TAG: http_port
#       The port number where Squid will listen for HTTP client
"/usr/local/squid/etc/squid.conf" [已转换] 1880L, 65298C      1,0-1        顶端
 楼主| 发表于 2005-1-5 11:49:05 | 显示全部楼层
UP,知道的朋友帮帮忙呀,急~~
 楼主| 发表于 2005-1-6 17:17:14 | 显示全部楼层
debug_options ALL,1
acl all src 0.0.0.0/0.0.0.0
cache_mem 32M
cache_dir /usr/local/squid/cache 100 16 256
http_access allow all
icp_access allow all
dns_testnames internic.net usc.edu cs.colorado.edu mit.edu yale.edu
cache_effective_user squid squid

这个配置文件允许所有人使用Squid,创建了100MB缓存,使用32MB内存,在缺省位置“/usr/local/squid/cache”缓存数据。所有缓存数据以组squid和用户squid身份保存,端口为3128。
 楼主| 发表于 2005-1-6 17:23:44 | 显示全部楼层
cache_mem 92 mb
acl keke src 10.0.0.0/24
acl all src 0.0.0.0/0.0.0.0
http_access allow keke
http_access deny all
 楼主| 发表于 2005-1-6 17:35:47 | 显示全部楼层
#  TAG: http_port 2180
#       Usage:  port
#               hostname:port
#               1.2.3.4:port
发表于 2005-1-6 19:48:33 | 显示全部楼层
楼上的兄弟
你为什么不静下心来去看一看置顶的贴子呢
 楼主| 发表于 2005-1-7 08:43:24 | 显示全部楼层
不好意思,实在对不起大家呀,因工作需要,我也在不停的看linux资料,可以前不怎么用,一时看来不急呀。唉~~急着用的东西555~
发表于 2005-1-7 10:39:04 | 显示全部楼层
兄弟真是辛苦啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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