Add default auth processor for testing

This commit is contained in:
2025-12-23 20:49:58 +05:00
parent 28e9c0fe06
commit df56fe456b

View File

@@ -108,6 +108,19 @@
{"tag": "ReplyMessage", "path": "*rep.Reply-Message", "filters": ["*notempty:~*cgrep.Error:"],
"type": "*constant", "value": "Authentication failed: Invalid username or password"}
]
},
{
"id": "MikrotikPPPoEAuthDefault",
"filters": [
"*string:~*vars.*radReqType:*radAuth"
],
"flags": ["*log"],
"request_fields": [],
"reply_fields": [
{"tag": "Code", "path": "*rep.*radReplyCode", "type": "*constant", "value": "AccessAccept"},
{"tag": "SessionTimeout", "path": "*rep.Session-Timeout", "type": "*constant", "value": "3600"},
{"tag": "AcctInterimInterval", "path": "*rep.Acct-Interim-Interval", "type": "*constant", "value": "60"}
]
}
]
}