Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:syces:nasrequirements [2014/09/22 10:07] tf |
en:syces:nasrequirements [2014/09/22 10:55] (current) tf |
||
---|---|---|---|
Line 7: | Line 7: | ||
===== Captive Portal ===== | ===== Captive Portal ===== | ||
- | A captive portal (CP) redirects unauthenticated users to a login form. Two different types (internal, external) of CPs may be implemented. At least one CP should be configurable per Gateway. In enterprise environments it should be possible to define multiple CPs and assign them to SSIDs (wireless) | + | A captive portal (CP) redirects unauthenticated users to a login form. Two different types (internal, external) of CPs may be implemented. At least one CP should be configurable per Gateway. In enterprise environments it should be possible to define multiple CPs and assign them to SSIDs (wireless), VLANs (wired) |
==== Common Requirements ==== | ==== Common Requirements ==== | ||
Line 43: | Line 43: | ||
==== Radius Authentication | ==== Radius Authentication | ||
=== Access Request === | === Access Request === | ||
+ | The access-request packet | ||
+ | * User-Name (RFC 2865 5.1)\\ A maximum of 30 characters plus ' | ||
+ | * User-Password (RFC 2865 5.2)\\ 1 to 25 characters | ||
+ | * NAS-IP-Address (RFC 2865 5.4)\\ External NAS IP-Address | ||
+ | * NAS-Identifier\\ Name of NAS. Used for limit accounts to specific hosts | ||
+ | * NAS-Port (RFC 2865 5.5)\\ physical port number | ||
+ | * NAS-Port-Type (RFC 2865 5.41)\\ e.g\\ 15 : Ethernet\\ 19 : Wireless - IEEE 802.11\\ see RFC | ||
+ | Any other attributes will currently be ignored. | ||
=== Access Accept === | === Access Accept === | ||
+ | In case of a successful authentication the radius server sends an acces-accept packet that may contain the following attributes:: | ||
+ | * Session-Timeout (RFC 2865 5.27)\\ session limit in seconds | ||
+ | * Reply-Message (RFC 2865 5.18)\\ - XYM -volume limit in MiB | ||
+ | |||
+ | The NAS should use one of the following method: | ||
+ | - Either use the received attributes to find out when to stop the session\\ or | ||
+ | - the NAS regularly retries to get users authenticated and stops the session when this fails | ||
+ | The manufacturer may decide which method to chose. The first one produces less traffic, but doesn' | ||
+ | The NAS can't rely on receiving one of the above attributes (see RFC2865 | ||
+ | Other attributes are currently not used. | ||
+ | |||
=== Access Reject === | === Access Reject === | ||
==== Radius Accounting | ==== Radius Accounting | ||
=== Accounting Start === | === Accounting Start === | ||
+ | The Accounting-Start packet needs to be generated right after a successful authentication. | ||
+ | |||
+ | It consists of an Accounting-Request (RFC 2866 4.1) with the following atttributes: | ||
+ | * Acct-Status-Type (RFC 2866 5.1)\\ " | ||
+ | * User-Name (RFC 2865 5.1)\\ A maximum of 30 characters plus ' | ||
+ | * NAS-IP-Address (RFC 2865 5.4)\\ External NAS IP-Address | ||
+ | * NAS-Port (RFC 2865 5.5)\\ physical port number | ||
+ | * NAS-Port-Type (RFC 2865 5.41) (optional)\\ e.g\\ 15 : Ethernet\\ 19 : Wireless - IEEE 802.11\\ see RFC | ||
+ | * Framed-IP-Address (RFC 2865 5.8)\\ User IP address (Client). | ||
+ | * Acct-Session-Id (RFC 2866 5.5)\\ Unique Session-ID to identity the current session and update the counters | ||
+ | * Called-Station-Id (RFC 2865 5.30)\\ other than in RFC: MAC address of gateway or wireless controller | ||
+ | * Calling-Station-Id (RFC 2865 5.31)\\ other than in RFC: MAC address of client | ||
+ | Apart from the attributes marked as optional all other attributes have to be implemented due to §113 TKG. | ||
+ | |||
=== Interim Update === | === Interim Update === | ||
+ | With Interim Updates volume based accounts can be handled. They are optional, but recommended. | ||
+ | With UDP protocol it is possible that packets get lost, therefore it is recommended to always send interim-update packets. | ||
+ | And it is possible to contiunally inform the user about the reamining volume and time. | ||
+ | |||
+ | In an Accounting-Update packet the following attributes have to be sent: | ||
+ | * Acct-Status-Type (RFC 2866 5.1)\\ " | ||
+ | * User-Name (RFC 2865 5.1)\\ A maximum of 30 characters plus ' | ||
+ | * NAS-IP-Address (RFC 2865 5.4)\\ External NAS IP-Address | ||
+ | * Acct-Input-Octets (RFC 2866 5.3)\\ Input volume in bytes within a user session.. According to RFC this should only be sent with a Stop-Packet, | ||
+ | * Acct-Output-Octets (RFC 2866 5.4)\\ Output volume in bytes within a user session.. According to RFC this should only be sent with a Stop-Packet, | ||
+ | * Acct-Session-Id (RFC 2866 5.5)\\ Unique Session-ID to identity the current session and update the counters | ||
+ | * Acct-Session-Time (RFC 2866 5.7)\\ Duration of session in seconds. According to RFC this should only be sent with a Stop-Packet, | ||
+ | * Called-Station-Id (RFC 2865 5.30)\\ other than in RFC: MAC address of gateway or wireless controller | ||
+ | * Calling-Station-Id (RFC 2865 5.31)\\ other than in RFC: MAC address of client | ||
+ | * Framed-IP-Address (RFC 2865 5.8)\\ user IP address (Client). | ||
+ | * Vendor-Specific (RFC 2865 5.26)\\ When this attribute is NOT sent the RADIUS-Server assumes that Acct-Session-Time, | ||
+ | |||
=== Accounting Stop === | === Accounting Stop === | ||
- | + | The Accounting-Stop-Paket must be sent directly after session end. | |
+ | It consists of an accounting-Request (RFC 2866 4.1) with the following attributes: | ||
+ | * Acct-Status-Type (RFC 2866 5.1)\\ " | ||
+ | * User-Name (RFC 2865 5.1)\\ A maximum of 30 characters plus ' | ||
+ | * NAS-IP-Address (RFC 2865 5.4)\\ External NAS IP-Address | ||
+ | * Acct-Input-Octets (RFC 2866 5.3)\\ input volume in bytes within a session | ||
+ | * Acct-Output-Octets (RFC 2866 5.4)\\ output volume in bytes within a session | ||
+ | * Acct-Session-Id (RFC 2866 5.5)\\ Unique Session-ID to identity the current session and update the counters | ||
+ | * Acct-Session-Time (RFC 2866 5.7)\\ duration in seconds | ||
+ | * Acct-Terminate-Cause (RFC 2866 5.10) (optional)\\ Cause of session termination. | ||
+ | * Called-Station-Id (RFC 2865 5.30)\\ other than in RFC: MAC address of gateway or wireless controller | ||
+ | * Calling-Station-Id (RFC 2865 5.31)\\ other than in RFC: MAC address of client | ||
+ | * Framed-IP-Address (RFC 2865 5.8)\\ user IP address (Client). | ||
+ | Apart from the attributes marked as optional all other attributes have to be implemented due to §113 TKG. | ||