ดาวน์โหลด squid_radius_auth จาก
http://www.squid-cache.org/contrib/squid_radius_auth/squid_radius_auth-1.09.tgz
เมื่อได้แล้วก็
# tar -zxvf squid_radius_auth-1.09.tgz
# cd squid_radius_auth-1.09
# make clean
# make install
# cd squid_radius_auth-1.09
# make clean
# make install
แก้ไข /usr/local/squid/etc/squid_radius_auth.conf
server xx.xx.xx.xx
secret yoursecret
secret yoursecret
แก้ไข /etc/services เพราะ Radius server ของเราใช้พอร์ท 1645/1646
เอาคอมเมนต์ออกหน้า
radius 1645/udp #RADIUS authentication protocol (old)
radacct 1646/udp #RADIUS accounting protocol (old)
radacct 1646/udp #RADIUS accounting protocol (old)
พร้อมทั้งใส่คอมเมนต์ที่
#radius 1812/udp #RADIUS authentication protocol (IANA sanctioned)
#radacct 1813/udp #RADIUS accounting protocol (IANA sanctioned)
#radacct 1813/udp #RADIUS accounting protocol (IANA sanctioned)
แก้ไข /usr/local/squid/etc/squid.conf
auth_param basic program /usr/local/squid/libxec/squid_rad_auth -f /usr/local/squid/etc/squid_rad_auth.conf
auth_param basic children 5
auth_param basic realm KBU.NET Web Authentication
auth_param basic credentialsttl 2 hours
acl AuthorizedUsers proxy_auth REQUIRED
.
.
# Allow authorized users
# ==========================
http_access allow all AuthorizedUsers
auth_param basic children 5
auth_param basic realm KBU.NET Web Authentication
auth_param basic credentialsttl 2 hours
acl AuthorizedUsers proxy_auth REQUIRED
.
.
# Allow authorized users
# ==========================
http_access allow all AuthorizedUsers