I'm out of my depth and not zeroing in on what I should be Googling. Has anyone encountered similar design/function or could provide input? I'd welcome someone knowledgeable about Python as well.
I have an OpenVPN server using Radius to authenticate and utilize Server Group Mappings via (Windows) Network Policy Server. This is currently working. There is a specific python script that makes it function. I used this guide:
https://docs.openvpn.net/how-to-tutorialsguides/administration/integrating-active-directory-with-access-server-using-radius-and-post_auth/
However, our organization also has Duo Security and wants to use the MFA to add extra security to OpenVPN.
The guide for this configuration is located on Duo's website. It also relies on a python script.
I'm unsure how to (assuming it's possible) to create a hybrid script that will allow Duo MFA but still use Radius for NPS. The NPS allows users to be controlled by their groups and in turn enforce network access (on OpenVPN) and also control source IP ranges (vai firewall ACLs).
If I use the python script for Duo, I lose the ability for NPS to set the group and in turn use the local groups for IP assignments. If I use the OpenVPN script, I lose Duo MFA. I have tried to parse the script and apply logic to the syntax/arrays and tinker to no avail.
Thoughts?