5. Squid Porxy Server
Package: squid
Daemon: /usr/sbin/squid
Script: /etc/init.d/squid
Port: /etc/init.d/squid
Configuration: /etc/squid/*
1. 安裝
#yum install squid
%iptables開放Port: 3128通過
2. 設定
#vi /etc/squid/squid.conf
% 允許intranet使用proxy
% 不允許連上某些網站 bad_dstdomain
% 設定cache=500mb
---略---
#Default:
# cache_dir ufs /var/spool/squid 100 16 256
cache_dir ufs /var/spool/squid 500 16 256
---略---
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
acl our_networks src 192.168.0.0/24
#acl deny Bad_dstdomain
acl bad_dstdoamin dstdomain .meebo.com
acl bad_dstdoamin dstdoamin .hotmail.com
# And finally deny all other access to this proxy
http_access allow localhost
http_access deny bad_dstdomain
http_access allow our_networks
http_access deny all
---略---
3. 重新啟動
#service squid restart
%將瀏覽器的proxy指向 server118.example.com:3128
%就可以使用啦
- Aug 01 Sat 2009 11:08
[雜記]RHCE筆記整理-RH253-Unit7(5)
close
全站熱搜
留言列表
發表留言