Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:dpi:dpi_components:radius:radius_requirements [2018/03/19 12:04] – created lexx26 | en:dpi:dpi_components:radius:radius_requirements [2025/09/03 08:04] (current) – [IPv6 Support] elena.krasnobryzh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | {{indexmenu_n> | ||
+ | FastRADIUS (RADIUS Event Monitor) is designed to create an IP-LOGIN binding in DPI in networks with dynamic IP address assignment based on RADIUS Accounting (Mapping IP-LOGIN). \\ | ||
+ | FastRADIUS supports the following commands in FastDPI: \\ | ||
+ | - [[en: | ||
+ | - [[en: | ||
+ | It is also possible to assign CG-NAT ([[dpi: | ||
+ | |||
+ | ====== Operation Schemes ====== | ||
+ | ===== Recommended Scheme: Receiving RADIUS Accounting Traffic on a Dedicated Linux Interface Not Connected to FastDPI ===== | ||
+ | RADIUS Accounting is delivered to FastRADIUS on a standard Linux interface specified in the configuration file ('' | ||
+ | Interaction with standard Linux interfaces is handled via '' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | ==== Minimum FastRADIUS Configuration ==== | ||
+ | Settings are located in the file ''/ | ||
+ | |||
+ | To apply the configuration, | ||
+ | <code bash> | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===Stream Processing Configuration=== | ||
+ | <note tip> | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===Configuration for Exporting RADIUS Events to an External Collector=== | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== Alternative Scheme: Diverting RADIUS Accounting Traffic from FastDPI DPDK Interfaces ===== | ||
+ | RADIUS Accounting must be fed into the DPI device ports along with network traffic. This can be achieved by mirroring the ports connected to the RADIUS server. In this case, FastRADIUS only receives the mirror and does not respond to the RADIUS server. | ||
+ | |||
+ | ==== TAP Interface Configuration ==== | ||
+ | FastRADIUS can run on the same server as FastDPI or be deployed on an external server. Two virtual interfaces, TAP0 and TAP1, are used to isolate the required traffic. | ||
+ | |||
+ | Specify the port in the configuration: | ||
+ | <code bash> | ||
+ | in_dev=tap1 | ||
+ | </ | ||
+ | |||
+ | **Deploying Radius Monitor on the Same Server. Using a Bridge:** | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | **Deploying Radius Monitor on an External Server. Using a Tunnel:** | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | * TAP0 — used for traffic diversion | ||
+ | * TAP1 — listened on by Radius Monitor | ||
+ | * A Bridge or Tunnel is created between TAP0 and TAP1 for traffic forwarding. | ||
+ | * MAC learning is disabled on the TAP0 interface | ||
+ | |||
+ | Execute the following commands from the console: | ||
+ | <code bash> | ||
+ | ip tuntap add tap0 mode tap | ||
+ | ip tuntap add tap1 mode tap | ||
+ | |||
+ | ip link set dev tap0 up | ||
+ | ip link set dev tap1 up | ||
+ | |||
+ | ip link add br0 type bridge | ||
+ | |||
+ | ip link set tap0 master br0 | ||
+ | bridge link set dev tap0 learning off | ||
+ | ip link set tap1 master br0 | ||
+ | |||
+ | ifconfig tap0 192.168.4.20 up | ||
+ | ifconfig tap1 192.168.4.21 up | ||
+ | ifconfig br0 up | ||
+ | </ | ||
+ | |||
+ | <note warning> | ||
+ | |||
+ | ==== Configuring Traffic Diversion from FastDPI to FastRADIUS ==== | ||
+ | Enable the traffic diversion service on FastDPI: | ||
+ | <code bash> | ||
+ | fdpi_ctrl load profile --service 14 --profile.name radius | ||
+ | fdpi_ctrl load --service 14 --profile.name radius --ip 10.16.252.11 | ||
+ | fdpi_ctrl load --service 14 --profile.name radius --ip 10.16.252.12 | ||
+ | </ | ||
+ | where: | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== Additional Radius Monitor Settings ===== | ||
+ | * '' | ||
+ | * '' | ||
+ | <note important> | ||
+ | |||
+ | ==== Connecting NAT Based on CIDR ==== | ||
+ | Creating named [[en: | ||
+ | <code bash> | ||
+ | fdpi_ctrl load profile --service 11 --profile.name nat_profile_all --profile.json '{ " | ||
+ | </ | ||
+ | |||
+ | In the FastRADIUS configuration file ''/ | ||
+ | Example: | ||
+ | <code bash> | ||
+ | 0.0.0.0/ | ||
+ | 10.0.0.0/ | ||
+ | 10.1.1.0/ | ||
+ | </ | ||
+ | When a more specific (concrete) profile is specified for an address, it is selected. | ||
+ | |||
+ | ===== IPv6 Support ===== | ||
+ | Configuration parameters for binding addresses and subnets to subscribers are specified in the ''/ | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Parameters '' | ||
+ | |||
+ | The subscriber is identified by the RADIUS attribute '' | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== Subscriber Identification in Mobile Networks ===== | ||
+ | * '' | ||
+ | * '' | ||
+ | ==== Appending Region Prefixes to Subscriber Names (LOGIN) ==== | ||
+ | Used when the RADIUS monitor and SCAT serve multiple regions, and '' | ||
+ | - Enable the setting '' | ||
+ | - Add to the file ''/ | ||
+ | 172.17.76.2 MSK- | ||
+ | 172.17.76.3 SPB- | ||
+ | 172.17.76.4 SPB- | ||
+ | 172.17.76.5 SPB-</ | ||
+ | * first field - NAS-IP-Address from the RADIUS packet | ||
+ | * second field - prefix to be added to the Login\\ |