#apt-get install freeradius
Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following extra packages will be installed:freeradius-common freeradius-utils libdbi-perl libfreeradius2 libltdl7libnet-daemon-perl libperl5.10 libplrpc-perl perl perl-base perl-modulesSuggested packages:freeradius-ldap freeradius-postgresql freeradius-mysql freeradius-krb5dbishell perl-doc libterm-readline-gnu-perl libterm-readline-perl-perlThe following NEW packages will be installed:freeradius freeradius-common freeradius-utils libdbi-perl libfreeradius2libltdl7 libnet-daemon-perl libperl5.10 libplrpc-perlThe following packages will be upgraded:perl perl-base perl-modules3 upgraded, 9 newly installed, 0 to remove and 34 not upgraded.Need to get 11.0MB of archives.After this operation, 8,290kB of additional disk space will be used.Do you want to continue [Y/n]?(생략)Updating default SSL certificate settings, if any...Adding user freerad to group ssl-certGenerating DH parameters, 1024 bit long safe prime, generator 2This is going to take a long time...............................+.......................+.......+...................+........................................................+............+................+.......+...+...........................................+..................................................................................................................................................+....+.+............+.........+.+.................................+.....+..............+.......+.................................................+.............................................+...................+..............+.............................+..............................................................................................+....................................................................................................................................+........................................................................+........................+....................................+....................+.....................+................................................................................................................................+......................................++*++*++** Starting FreeRADIUS daemon freeradius [ OK ]Setting up freeradius-utils (2.1.8+dfsg-1ubuntu1) ...Setting up perl-modules (5.10.1-8ubuntu2) ...Setting up perl (5.10.1-8ubuntu2) ...Setting up libnet-daemon-perl (0.43-1) ...Setting up libplrpc-perl (0.2020-2) ...Setting up libdbi-perl (1.609-1build1) ...Processing triggers for libc-bin ...ldconfig deferred processing now taking placeroot@UAT:/home/iprize#
client 192.168.111.0/24 {
secret = radius_authshortname = private-network}
# apt-get install libpam-radius-auth
# server[:port] shared_secret timeout (s)
192.168.111.111 radius_auth 1
auth sufficient pam_radius_auth.so
#adduser -home /home/iprize iprize
rad_recv: Access-Request packet from host 192.168.111.131 port 6767, id=147, length=91
User-Name = "iprize"User-Password = "testing123"NAS-IP-Address = 127.0.1.1NAS-Identifier = "sshd"NAS-Port = 5742NAS-Port-Type = VirtualService-Type = Authenticate-OnlyCalling-Station-Id = "192.168.111.1"+- entering group authorize {...}++[preprocess] returns ok++[chap] returns noop++[mschap] returns noop[suffix] No '@' in User-Name = "iprize", looking up realm NULL[suffix] No such realm "NULL"++[suffix] returns noop[eap] No EAP-Message, not doing EAP++[eap] returns noop++[unix] returns updated++[files] returns noop++[expiration] returns noop++[logintime] returns noop++[pap] returns updatedFound Auth-Type = PAP+- entering group PAP {...}[pap] login attempt with password "testing123"[pap] Using CRYPT encryption.[pap] User authenticated successfully++[pap] returns ok+- entering group post-auth {...}++[exec] returns noopSending Access-Accept of id 147 to 192.168.111.131 port 6767Finished request 0.Going to the next requestWaking up in 4.9 seconds.Cleaning up request 0 ID 147 with timestamp +25Ready to process requests.