- 论坛徽章:
- 0
|
本帖最后由 chinaone 于 2011-08-26 14:41 编辑
新手装代理实现不了,请论坛上的朋友帮忙,问题出在哪里?
在VM里装了centos5.6和XP实现普通代理上网,代理服务器外网eth1为192.168.1.18 内网eth0为192.168.100.1 客户端为192.168.100.11 配置好后,关闭了SELinux,squid2.6能启动,开启则不能启动。 客户端能ping通外网IP,但是IE打不开百度。
squid配置如下:
http_port 3128
icp_port 0
cache_mem 64 MB
cache_swap_low 90
cache_swap_high 95
cache_dir aufs /var/spool/squid 4096 16 256
maximum_object_size 2048 KB
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_effective_user squid
cache_effective_group squid
visible_hostname proxy.Service.Group
cache_mgr squid@service.group
dns_nameservers 61.128.128.68
ftp_user squid@
ftp_list_width 64
ftp_passive on
acl all src 0.0.0.0/0.0.0.0
http_access allow all
开了转发
iptables 加了一条规则: iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o eth1 -j SNAT --to 192.168.1.18 |
|