# Install freeradius from port
cd /usr/ports/net/freeradius2
make install clean
# Configuration
cd /usr/local/etc/raddb
vi sites-enabled/default
#at authenticate section
#remove "#" before "pam" after line "# Pluggable Authentication Modules."
#save and exit
# Test Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest _yourSystemUser_ _yourSystemPassword_ localhost 0 testing123
#if show message "Access Accept" go to next step.
#MySQL Authen section now in /usr/local/etc/raddb directory
vi radiusd.conf
#remove "#" before "$INCLUDE sql.conf"
#save and exit
vi sites-enabled/default
#At "authorize" section
#remove "#" before "sql" after line "# See "Authorization Queries" in sql.conf"
#At "accounting" section
#remove "#" before "sql" after line "# See "Accounting queries" in sql.conf"
#Save and Exit
#MySQL Database section.
#Please create database "radius" first.
cd sql/mysql
mysql -u _MySQLUser_ -p_MySQLPasswd_ radius < schema.sql
mysql -u _MySQLUser_ -p_MySQLPasswd
INSERT INTO radcheck (UserName, Attribute, Value) VALUES ('guest', 'Password','guest');
exit
# Test SQL Authen Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest guest guest localhost 0 testing123
#if show message "Access Accept" success.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น