From 3ac2bfa0be7b6872372d70133bb1c8701c43731c Mon Sep 17 00:00:00 2001 From: chapeau Date: Sat, 23 Mar 2024 09:05:37 +0100 Subject: [PATCH] Fix proxy check --- auth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth.py b/auth.py index b91fbdb..7af0f22 100644 --- a/auth.py +++ b/auth.py @@ -213,6 +213,9 @@ def post_auth(data): # If proxified request if not nas_type: + if not user or not user["access"]: + logger.info("Proxified request: %s has no internet access" % (username)) + return radiusd.RLM_MODULE_REJECT logger.info("Proxified request, nas unknown") return radiusd.RLM_MODULE_OK