This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

修性不修命,萬劫陰靈難入聖; 修命不修性,猶有家財無主柄
Album | Blog | Comment | Profile | Control Panel
aquatower | 1 August,2009 11:08

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
%就可以使用啦


Comment

Trackback

Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.