- 论坛徽章:
- 0
|
我的环境是:自己拼的系统,2个网卡eth1:66.56.XX:XX eth2:192.168.0.1;eth1 连外网,eth2连内网,eth2下的pc还是上不了网,为什么?pc:192.168.0.178
squid.conf配置:
http_port 3128
cache_mem 1 MB
cache_swap_low 50
cache_swap_high 70
maximum_object_size 512 KB
ipcache_size 2 MB
ipcache_low 60
ipcache_high 75
fqdncache_size 4 MB
cache_dir ufs /cache 32 16 16
visible_hostname draco
cache_effective_user root
cache_effective_group root
cache_mgr router@admin.com
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
acl mynet src 192.168.0.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
http_access allow mynet
http_access allow all
#iptables -t nat -A PREROUTING -i eth2 -d ! 192.168.0.178 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
#squid -f /etc/squid.conf ps发现squid进程一会就没有了!为什么? |
|