./configure --prefix=/usr/local/squid
make all
make install
然後按照squid.2.4-SATABLE的QUICKSTART配置好了squid.conf
我的配置如下:
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
acl allowed_hosts src 210.12.224.192
# 210.12.224.192是另一台要使用我這台機器作為proxy的機器的ip地址
http_access deny manager all
http_access allow allowed_hosts
http_access deny all
icp_access allow allowed_hosts
icp_access deny all
我的cache_peer沒有設置
cache_mem設的是 4M
cache_dir /usr/local/squid/cache 100 16 256
cache_mgr設置的是我的Email
cache_effctive_user 設置的是 nobody
visible_hostname沒有設置
然後執行 squid -z
然後 squid
別的機器設這台機器為代理 訪問不了網頁(說找不到網頁) 不知道為什麼。
|