squid 普通代理实验

windows:    192.168.10.2
squid-server:
    ifconfig eth0 192.168.10.1
    ifconfig eth1 200.168.10.1
web-server:
    ifconfig eth0 200.168.10.2
1、安装squid软件包
        yum -y install squid*
2、squid配置文件
        vi /etc/squid/squid.conf
 
        http_port 192.168.10.1:3128
        visible_hostname 192.168.10.1
        acl innet src 192.168.10.0/24
        acl all src all
        http_access allow innet
        http_access deny all
3、启动squid服务
        service squid start/restart
4、停止squid服务
        service squidstop
5、重新加载配置文件
        squid -k reconfig
posted @ 2016-09-02 09:57  rhythm0121  阅读(171)  评论(0编辑  收藏  举报