LinuxSir.cn,穿越时空的Linuxsir!

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

菜菜鸟求助 关于squid的使用 好心人一定要帮帮忙啊

[复制链接]
发表于 2006-3-17 15:38:48 | 显示全部楼层 |阅读模式
redhatlinux AS4 版本 双网卡 内网卡地址 192.168.0.193 想使用squid代理 让其他内网win机器通过我上网 暂时不用透明代理 只使用普通的代理.
在网上找了N多的文章来安装squid,结果还是不能通过代理上网 请各位朋友帮忙看看 以下是安装步骤和启动日志

安装步骤:
1.下载squid源码包到/usr/local
2.tar -zxvf squid-版本号
3.创建squid组squid用户
4.改变解压后的squid文件夹的名子为squid
5. ./configure --prefix=/usr/local/squid
6.make all
7.make install
8.chown -R squid.squid squid
9.修改squid.conf改动内容如下:
(1)修改#http_port 3128为 http_port 192.168.0.193:8080
(2)修改http_access deny all 为 http_access allow all
(3)修改icp_access deny all 为 icp_access allow all
(4)修改# cache_effective_user nobody 为 # cache_effective_user squid
10./usr/local/squid/sbin/squid -z 初始化squid
11./usr/local/squid/sbin/squid -N -d1 启动

下面是启动文件 大家帮我看看 我的客户机始终无法通过代理上网:
2006/03/17 09:43:58| Starting Squid Cache version 2.5.STABLE2 for /usr/local/squid...
2006/03/17 09:43:58| Process ID 21704
2006/03/17 09:43:58| With 1024 file descriptors available
2006/03/17 09:43:58| Performing DNS Tests...
2006/03/17 09:43:58| Successful DNS name lookup tests...
2006/03/17 09:43:58| DNS Socket created at 0.0.0.0, port 33452, FD 4
2006/03/17 09:43:58| Adding nameserver 202.98.96.68 from /etc/resolv.conf
2006/03/17 09:43:58| Adding nameserver 61.139.2.69 from /etc/resolv.conf
2006/03/17 09:43:58| Unlinkd pipe opened on FD 9
2006/03/17 09:43:58| Swap maxSize 102400 KB, estimated 7876 objects
2006/03/17 09:43:58| Target number of buckets: 393
2006/03/17 09:43:58| Using 8192 Store buckets
2006/03/17 09:43:58| Max Mem  size: 8192 KB
2006/03/17 09:43:58| Max Swap size: 102400 KB
2006/03/17 09:43:58| Rebuilding storage in /usr/local/squid/var/cache (CLEAN)
2006/03/17 09:43:58| Using Least Load store dir selection
2006/03/17 09:43:58| Set Current Directory to /usr/local/squid/var/cache
2006/03/17 09:43:58| Loaded Icons.
2006/03/17 09:43:58| Accepting HTTP connections at 192.168.0.193, port 8080, FD 10.
2006/03/17 09:43:58| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2006/03/17 09:43:58| WCCP Disabled.
2006/03/17 09:43:58| Ready to serve requests.
2006/03/17 09:43:59| Done scanning /usr/local/squid/var/cache swaplog (0 entries)
2006/03/17 09:43:59| Finished rebuilding storage from disk.
2006/03/17 09:43:59|         0 Entries scanned
2006/03/17 09:43:59|         0 Invalid entries.
2006/03/17 09:43:59|         0 With invalid flags.
2006/03/17 09:43:59|         0 Objects loaded.
2006/03/17 09:43:59|         0 Objects expired.
2006/03/17 09:43:59|         0 Objects cancelled.
2006/03/17 09:43:59|         0 Duplicate URLs purged.
2006/03/17 09:43:59|         0 Swapfile clashes avoided.
2006/03/17 09:43:59|   Took 0.7 seconds (   0.0 objects/sec).
2006/03/17 09:43:59| Beginning Validation Procedure
2006/03/17 09:43:59|   Completed Validation Procedure
2006/03/17 09:43:59|   Validated 0 Entries
2006/03/17 09:43:59|   store_swap_size = 0k
2006/03/17 09:43:59| storeLateRelease: released 0 objects
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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