Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:dpi:dpi_options:brass:opt_bras:reference_bras:interact_fastpcrf_radius:example_sett_radius [2020/02/05 17:38] – ↷ Links adapted because of a move operation lexx26 | en:dpi:dpi_options:brass:opt_bras:reference_bras:interact_fastpcrf_radius:example_sett_radius [2020/03/18 14:56] (current) – removed lexx26 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 4 FreeRadius3 setup example ====== | ||
- | {{indexmenu_n> | ||
- | This section describes the minimum configuration editing you shoud make to provide FreeRadius 3 interaction with the FastPCRF. | ||
- | <note warning> | ||
- | Suppose the Radius server IP address is 192.168.1.200 and its port is 1812. | ||
- | === VasExperts dictionary === | ||
- | First you should add the vendor-specific {{ : | ||
- | |||
- | * Copy / | ||
- | * Add to the $freeRadius/ | ||
- | < | ||
- | |||
- | === Client creation === | ||
- | Parameters of connection with the RADIUS server should be specified in the fastpcrf.conf configuration file of our instance, which is a RADIUS client: | ||
- | < | ||
- | Here eth0 is the local device name (network card name) used to establish the connection with the 192.168.1.200 server. | ||
- | |||
- | For each FastPCRF instance, the first step is to create a client in the FreeRadius. Let's name the client as fastdpi1. All clients (FastPCRF instances) will refer to the same fastdpi-vs virtual server. | ||
- | |||
- | Add the following lines to the Radius server raddb/ | ||
- | < | ||
- | client fastdpi1 { | ||
- | ipaddr = 192.168.1.32 | ||
- | secret = secret123 | ||
- | require_message_authenticator = yes | ||
- | # add_cui = yes | ||
- | virtual_server = fastdpi-vs | ||
- | } | ||
- | </ | ||
- | |||
- | Here: | ||
- | |||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | |||
- | === Creation of the virtual server === | ||
- | To create a virtual server configuration, | ||
- | |||
- | * set the virtual server name by changing the **server default** line at the beginning of the file to **server fastdpi-vs** | ||
- | * in the listen section for auth requests (type = auth), you should specify both the IP address and the port used to listen to incoming requests (note that this is the local address of the RADIUS server): | ||
- | < | ||
- | ipaddr = 192.168.1.200 | ||
- | port = 1814 | ||
- | interface = eth0 | ||
- | </ | ||
- | * delete the remaining listen sections (or comment out since we don't need them anymore) | ||
- | * all the substantive work on generating an Access-Request response is specified within the post-auth section. It is impossible to give any recommendations here since it all depends on the specific provider, on the environment of the RADIUS server, since it is unknown where the data come from.For more detailed information on the list of required attributes see [[en: | ||
- | < | ||
- | post-auth { | ||
- | … | ||
- | # | ||
- | # Add VasExperts attributes | ||
- | # | ||
- | if ( Chargeable-User-Identity == 0x00 ) { | ||
- | update reply { | ||
- | Chargeable-User-Identity := " | ||
- | } | ||
- | } | ||
- | else { | ||
- | update reply { | ||
- | Chargeable-User-Identity := " | ||
- | } | ||
- | } | ||
- | update reply { | ||
- | Framed-IP-Address := " | ||
- | VasExperts-Policing-Profile := " | ||
- | VasExperts-Service-Profile += " | ||
- | Session-Timeout := 300 | ||
- | } | ||
- | … | ||
- | } | ||
- | </ | ||
- | * The cui parameter of the post-auth section is commented out! FreeRadius sends the hash value of the login within the CUI instead of the user login , which we do not need, so we will form the CUI attribute in the response independently, | ||
- | * To the Post-Auth-Type REJECT section (formation of the Access-Reject) below you should add: | ||
- | * '' | ||
- | * The '' | ||
- | * The '' | ||
- | |||
- | Example: | ||
- | < | ||
- | if (Chargeable-User-Identity == " | ||
- | update reply { | ||
- | Chargeable-User-Identity := " | ||
- | } | ||
- | } | ||
- | update reply { | ||
- | VasExperts-Policing-Profile := " | ||
- | VasExperts-Service-Profile += " | ||
- | } | ||
- | </ | ||
- | |||
- | === Editing of users === | ||
- | To do so you should add two entries for FastPCRF to the raddb/users file: | ||
- | |||
- | < | ||
- | VasExperts.FastDPI.unknownUser Cleartext-Password := " | ||
- | DEFAULT Cleartext-Password := " | ||
- | </ | ||
- | |||
- | The first entry specifies the user name which FastPCRF sends if the user login is unknown, for detailed info, see the description of the '' |