- 论坛徽章:
- 0
|
服务器配置如下:主板:intel 810 cpu C2.4 内存:128MB HDD ST40G 7200转
装的是redhat9,按照乔木大哥所说的,安装它的时候选择防火墙为“无”
电信固定IP :61。172。0。98
子网掩码:255。255。25。192
网关:61。172。0。129
DNS 上海的:202.96.209.5 202.96.209.133
其中:eth0是外网配置如:
IP 61。172。0。98
netmask 255.255.255.192
gateway:61.172.0.129
DNS:202.96.209.5
202.96.209.133
eth1是内网配置如:
IP 10。128。212。249
netmask :255.255.255.0
网关:无
DNS:无
一台客户机网络配置如下:
IP 10。128。212。72
netmask:255.255.255.0
gateway:无
DNS:202。96。209。5
202。96。209。133
squid配置如下:
http_port 10.128.212.249:3128
cache_mem 32 M
cache_swap_low 75
cache_swap_high 95
maximum_object_size 1024 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_hight 95
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 1000 16 256
cache_access_log /var/squid/logs/access.log
cache_log /var/log/squid/cache.log
cache_store_ log /var/log/squid/store.log
cilent_netmask 255.255.255.0
cache_effective_user squid
cache_effective_group squid
visible_hostname 10.128.212.249
cache_mgr 98304love@sina.com
acl all src 0.0.0.0/0
acl localhsot src 127.0.0.0/255.255.255.0
acl redhat src 10.128.212.0/255.255.255.0
http_access allow localhost
http_access allow redhat
http_access deny all
配置完成后输入:service squid start提示OK
用netstat命令查看3128 3130 也都正常
用ps -aux 查看squid 一直运行
于是急着到客户机浏览器设置代理服务器:10。128。212。249 端口:3128
输入:http://www.ks.js.cn这个网页却打不开,其它都一样打不开,
然后我用tail命令查看access.log日志文件显示如下:
1126590192。174 242 10。128。212。72 tcp-miss/503 1432 get http://www.ks.js.cn/none/-text/html
奈何我底子在差,看不懂上面是什么意思,请大家帮看看,问题出在哪里了。 |
|