squid如果要讓外面的連線認證有很多方式

ncsa_auth是比較'easy"一種

首先你裝好squid

( Freebsd下ncsa沒在squid的安裝模組下 )

裝好apache22

會有一支程式htpasswd

用他來開帳號密碼

#htpasswd -c /tmp/passwd [帳號]

開好帳號之後


auth_param basic program /usr/local/libexec/squid/ncsa_auth /tmp/passwd 
auth_param basic realm "auth_param basic realm" #認證視窗跳出的訊息
auth_param basic credentialsttl 30 minutes #30分鐘內 不用輸入帳密
auth_param basic casesensitive off|on #大小寫區分
acl auth_users proxy_auth REQUIRED
http_access allow auth_users
:
:
:
:
http_access deny all

/usr/local/libexec/squid/ncsa_auth 你裝好squid後就會有
auth param basic整段要放在http_access deny all之前

文章標籤
全站熱搜
創作者介紹
創作者 slinbody 的頭像
slinbody

495884965

slinbody 發表在 痞客邦 留言(0) 人氣(441)