Files
cgrates-radius/tariffplans/new/Attributes.csv
2025-12-24 22:18:05 +05:00

2.5 KiB

1#Tenant,ID,Contexts,FilterIDs,ActivationInterval,AttributeFilterIDs,Path,Type,Value,Blocker,Weight
2# PPPoE User Credentials for RADIUS PAP Authentication
3#
4# Format: Each user needs an attribute profile that:
5# 1. Matches on Account (username)
6# 2. Returns PasswordFromAttributes for PAP verification
7# 3. Optionally returns session parameters (IP, rate limits, timeout)
8#
9# The PasswordFromAttributes field will be retrieved by the RADIUS agent
10# and compared against the PAP-encoded password in the AccessRequest
11# ============================================================
12# User: pppoe_user1 - Basic user with password only
13# ============================================================
14cgrates.org,ATTR_PPPOE_USER1,*sessions,*string:~*req.Account:pppoe_user1,,,*req.PasswordFromAttributes,*constant,SecurePass123,false,10
15# ============================================================
16# User: pppoe_user2 - User with static IP assignment
17# ============================================================
18cgrates.org,ATTR_PPPOE_USER2,*sessions,*string:~*req.Account:pppoe_user2,,,*req.PasswordFromAttributes,*constant,MyPassword456,false,10
19cgrates.org,ATTR_PPPOE_USER2,,,,,*req.FramedIP,*constant,10.0.0.100,,
20# ============================================================
21# User: pppoe_user3 - User with rate limiting (Mikrotik example)
22# ============================================================
23cgrates.org,ATTR_PPPOE_USER3,*sessions,*string:~*req.Account:pppoe_user3,,,*req.PasswordFromAttributes,*constant,FastUser789,false,10
24cgrates.org,ATTR_PPPOE_USER3,,,,,*req.FramedIP,*constant,10.0.0.101,,
25cgrates.org,ATTR_PPPOE_USER3,,,,,*req.RateLimit,*constant,10M/20M,,
26cgrates.org,ATTR_PPPOE_USER3,,,,,*req.SessionTimeout,*constant,86400,,
27# ============================================================
28# User: pppoe_user4 - Premium user with higher limits
29# ============================================================
30cgrates.org,ATTR_PPPOE_USER4,*sessions,*string:~*req.Account:pppoe_user4,,,*req.PasswordFromAttributes,*constant,PremiumPass!@#,false,10
31cgrates.org,ATTR_PPPOE_USER4,,,,,*req.FramedIP,*constant,10.0.0.102,,
32cgrates.org,ATTR_PPPOE_USER4,,,,,*req.RateLimit,*constant,100M/100M,,
33cgrates.org,ATTR_PPPOE_USER4,,,,,*req.SessionTimeout,*constant,0,,
34# ============================================================
35# User: test - Simple test user for quick verification
36# ============================================================
37cgrates.org,ATTR_PPPOE_TEST,*sessions,*string:~*req.Account:test,,,*req.Password,*constant,test123,false,10