Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

Directed Realm Configuration Files

This section discusses how to set up the directed realm configuration files.

Sample proxy.ini File

The following proxy.ini file registers the proxy realm called sample.com and registers a directed authentication and accounting realm called sample2.com. It defines several directed accounting methods, including those we plan to reference from the sample2.com.pro realm configuration file.

[Realms]
sample.com

[Directed]
sample2.com

[DirectedAcctMethods]
CustBAcctSQL = /opt/JNPRsbr/radius/CustomerB/theirsql.acc
CustCAcctAttributes = /opt/JNPRsbr/radius/CustomerC/account.ini
CustCAcctSQLConfig = /opt/JNPRsbr/radius/sqlacct.acc
CustDAcctSQLConfig3 = /opt/JNPRsbr/radius/CustomerD/mysql.acc

Note: For syntax details, see proxy.ini File.

Note: The user directories must be manually created before restarting or issuing a SIGHUP (1) signal to SBR Carrier.

The following proxy.ini file specifies that otto@rtt.other.com and carol@3g.other.com are both mapped to the other.com directed realm.

[Directed]
other.com = *.other.com

The following proxy.ini file specifies that otto@rtt.other.com and carol@3g.other.com are both mapped to the other.com directed realm and that caitlin@groton.other.com is mapped to the groton.other.com directed realm.

[Directed]
other.com = *.other.com
groton.other.com

Sample Directed Realm (.dir) File

The following configuration file must be called sample2.com.dir for it to work with the proxy.ini file (described on Sample proxy.ini File).

[Auth]
Enable = 1
StripRealm = 1
UseMasterDictionary = yes

[Acct]
Enable = 1
RecordLocally = 1
UseMasterDictionary = yes

[AuthMethods]
Native User

[AcctMethods]
CustCAcctAttributes
CustCAcctSQLConfig

[Called-Station-Id]
8885551212
55512340

Note: For syntax details, see Directed Realm Configuration (.dir) File.

This sample file configures both directed authentication and directed accounting. It also strips realm routing information from the User-Name before authentication.

The [Acct Methods] section of this file lists the two accounting methods for the sample2.com realm. These are CustCAcctAttributes, which specifies how to log attributes to a .act accounting log file on the local server, and CustCAcctSQLConfig, which configures accounting to an external SQL database. Both methods are configured in the [DirectedAcctMethods] section of our sample proxy.ini file, above.

Modified: 2017-03-07