How To Setup Squid Authenticate with Radius on CentOS 6.4

n this how to, I assume you already have a setup running FreeRADIUS server. I am going to share how to install and setup Squid 3.1.10 on CentOS 6.4 version. This how to has been tested on Windows 7 and Chrome 26.0.1410.64 as a client.

 

First, we must ensure everything are up to date by running the following commands: –

yum check-update
yum -y update

Next, start installing Squid by running the following command: –

yum -y install squid

Now, add the following auth_param and http_access config below in /etc/squid/squid.conf file after line 6: –

# Radius Authentication
auth_param basic program /usr/lib64/squid/squid_radius_auth -f /etc/squid/squid_radius_auth.conf
auth_param basic children 5
auth_param basic realm My-Squid-Server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl radius-auth proxy_auth REQUIRED

# Allow Radius Authorized Users
http_access allow radius-auth

Next, include the following config below in /etc/squid/squid_radius_auth.conf file: –

# Radius server and secret
server 1.2.3.4
secret my-secret-here

Now, start Squid service and create a system startup links for Squid so it starts automatically whenever the system boots up: –

service squid start
chkconfig squid on

Next, setup your favourite web browser to use port 3128. You will be prompted to enter username and password to start web browsing.

Finally, with all the configuration above I hope you are able to use and enjoy your Squid proxy server. Thank you.


Source:http://wingloon.com/

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند

مقالات مربوطه

How to Install Bind (Named) on CentOS 7 / RHEL 7

The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services,...

Install and Setup FreeRADIUS on CentOS 5, CentOS 6 and Ubuntu 11.10

A simple tutorial to setup and configure FreeRADIUS on CentOS 5 and Ubuntu 10.04.   Just...

How to Install Squid on CentOS 7 / RHEL 7

now I will install squid RPM using yum, yum is a famous package manager for RPM based Operating...

How to Install Squid on CentOS 7 / RHEL 7 ( Easy Config )

[root@prox ~]#  yum -y install squid [root@prox ~]#  vi /etc/squid/squid.conf acl CONNECT...

How to Install OpenLiteSpeed ( LSWS ) on CentOS 7 / RHEL 7 /CentOS 6 / RHEL 6 /CentOS 5 / RHEL 5

CentOS 5, 6 & 7 Add the Repository Use the following commands to add our CentOS...