项目作者: vkushnir

项目描述 :
AAA Service for PPPoE Clients
高级语言: PLSQL
项目地址: git://github.com/vkushnir/radius_pppoe.git
创建时间: 2017-11-03T08:03:08Z
项目社区:https://github.com/vkushnir/radius_pppoe

开源协议:MIT License

下载


radius_pppoe

AAA service for PPPoE Clients
Docker image name vkushnir/radiusd:pppoe

Environment variables for container

  1. DB_DRIVER=oracle

Set the database driver to one of:

  • oracle
  • mysql not implemented yet
  • mssql not implemented
  • postgresql not implemented
  1. DB_SERVER=localhost
  2. DB_USER=username
  3. DB_PASSWORD=password
  4. DB_NAME=database
  5. DB_PORT=1521

connection info

  1. RAD_ACCT1=radacct
  2. RAD_ACCT2=radacct

If you want both stop and start records logged to the same SQL table, leave this as is. If you want them in different tables, put the start table in acct_table1 and stop table in acct_table2

  1. RAD_POSTAUTH=radpostauth

Allow for storing data after authentication

  1. RAD_CHECK=radcheck
  2. RAD_REPLY=radreply
  3. RAD_GROUPCHECK=radgroupcheck
  4. RAD_GROUPREPLY=radgroupreply
  5. RAD_USERGROUP=radusergroup

Table to keep group info

  1. READ_GROUPS=yes

If set to ‘yes’ (default) we read the group tables
If set to ‘no’ the user MUST have Fall-Through = Yes in the radreply table

  1. DELETE_STALE=yes

Remove stale session if checkrad does not see a double login

  1. SQL_TRACE=yes

Print all SQL statements when in debug mode (-x) to ${logdir}/sqlrace.sql*

  1. SQL_SOCKS=20

Number of sql connections to make to server
Setting this to LESS than the number of threads means that some threads may starve, and you will see errors like “No connections available and at max connection limit”
Setting this to MORE than the number of threads means that there are more connections than necessary.

  1. SQL_DELAY=120

Number of seconds to dely retrying on a failed database connection (per_socket)

  1. SQL_LIFETIME=0

Lifetime of an SQL socket. If you are having network issues such as TCP sessions expiring, you may need to set the socket lifetime. If set to non-zero, any open connections will be closed “lifetime” seconds after they were first opened.

  1. SQL_QUERIES=0

Maximum number of queries used by an SQL socket. If you are having issues with SQL sockets lasting “too long”, you can limit the number of queries performed over one socket. After “max_qeuries”, the socket will be closed.
Use 0 for “no limit”.

  1. READ_CLIENTS=no

Set to ‘yes’ to read radius clients from the database (‘nas’ table)
Clients will ONLY be read on server startup. For performance and security reasons, finding clients via SQL queries CANNOT be done “live” while the server is running.

  1. NAS=nas

Table to keep radius client info

Environment variables from vkushnir/freeradius:2-oracle

  1. ENV RADIUS_USER="freerad"
  2. ENV RADIUS_GROUP="freerad"

Username and group used to run FreeRADIUS server

  1. ENV RADIUS_UID="105"
  2. ENV RADIUS_GID="107"

UID and GID set according to host system