From df56fe456bd85739a9d3bf0d61f7221c2d9929ca Mon Sep 17 00:00:00 2001 From: Junaid Saeed Uppal Date: Tue, 23 Dec 2025 20:49:58 +0500 Subject: [PATCH] Add default auth processor for testing --- pppoe_auth.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pppoe_auth.json b/pppoe_auth.json index 65cb23f..905e456 100644 --- a/pppoe_auth.json +++ b/pppoe_auth.json @@ -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"} + ] } ] }