How to Resolve Unifi VPN Access RAS/VPN Server Error for Windows 10
In this tutorial I will show you how to resolve Unifi controller version 6.1.71, Unifi VPN Access error “The Connection was prevented because of a policy configured on your RAS/VPN server. Specifically, the authentication method used by the server to verify your username and password may not match the authentication method configured in your connection profile. Please contact the Administrator of the Ras Server and notify them on this error.”
There are only a few steps you need to take to resolve the RAS/VPN server VPN Access Error.
- Log into your Unifi controller version 6.1.71. This should also work with newer and previous versions of the Unifi controller software.
- Click on Settings
- Click on System Settings
- Click the New User Interface slider to turn it off.
- You will be prompted with a popup, click the red [ Deactivate ] button.
- You should now be viewing a classic version of the Unifi Controller software.
- Click on Settings
- Click on the Networks tab.
- Locate your VPN Access network and click the Edit icon.
- Go down to the RADIUS section and check mark the box for “Require MS-CHAP v2” and then click save.
- Go ahead and test the VPN access now. This setting change should have successfully resolved the “The Connection was prevented because of a policy configured on your RAS/VPN server.” error message you were getting.
thank you so much for this tutorial / guide.
I already started to get frustrated because it worked fine on my iphone but refused to work on my windows 10 machine.
A few klicks and everything is running just fine – THANK YOU!
I’m glad it was helpful. Thank you for stopping by.
I had the same problem, but your info solved it. Thank you!
Sorry.. This simply does not work on most Main-stream Win10 builds..
I have followed this and dozens of other tutorials for over two days and I have yet to make a L2TP VPN connection connect between a UDM Pro and Windows Pro Build 19043.
FYI, I can make a connection perfectly between the UDM Pro and Win10 LTSC build 17763, iPhone and Android devices, but any OEM Windows10 build just won’t play..
There shouldn’t be a difference. I have countless Windows OEM installations of windows 10 working fine. Are you getting a RAS error? If so search RAS on the website. Let me know if you have additional questions.
I have setup VPN on a UDM Pro and everything is working. The only issue that I am facing is when two or more users try to connect to the VPN from the same location. Each user has different credentials but only one of them is allowed to login on the VPN. The rest cannot connect.
Is this by default and can we bypass it without the need to setup Site-to-Site VPN? We are talking about 4-5 users.
This is a known issue and it is a Microsoft Windows problem. I suggest using site-to-site VPN or deploying a firewall capable of SSL VPN like a SonicWALL.
Thank you, sir! Came here from you setting up VPN article and resolved the issue immediately.
I might have to buy a bloody book if I’m not careful ;0)
Thanks for coming! I’m glad this article resolved your issue.
Thank you, sir! Came here from you setting up VPN article and resolved the issue immediately. I have 2 weeks trying to resolve this problem after reset my unifi gateway security.
Gob bless my brother. Congratulations
Thank you for the visit and the kind words. I am glad I was able to help!
I have a UDM-Pro with Network 7.1.68 with automatic configuration.
One of our Windows 11 (21H2) users cannot keep his L2TP connection. It varies from hours to 2 minutes when using RDP.
Is there any way to figure out what is causing this?
Thank you for the visit. I suggest using the following https://patrickdomingues.com/2020/03/31/how-to-ping-with-date-and-time-to-txt-file-using-cmd/ to track where the connectivity issue is.
Create two command instances on the computer having vpn issues to ping to google.com and one to the VPN IP of the UDM PRO. Let it sit through the day.
Create two command instances from a computer behind the UDMPRO to his public IP and one to google.com Let it sit through the day.
This will help you track for drop packets if it’s his network or your network on the UDMPRO side. If you find that the UDMPRO is pinging find to the outside and to his IP its not the UDM PRO dropping packets if you find ping to google but there are drops to his IP than his ISP modem may have issues are there are too many hops to get to his network.
From his side if he pings google.com fine but not the vpn ip then UDM ISP or the UDM Pro might be having an issue. However this could be due to people uploading \ downloading and filling up the pipe causing him to drop connection. If you find packet drops for both google.com and UDM pro vpn ip its his network or ISP. If you find both are dropping then create a command instance directly to his router. If you find packet drops this way then the issue is his network or computer. If he is on wifi that could be the issue.
Let me know if you have any other questions.
IT WORKS. AFTER 30MIN I GOT IT THANK TO YOU!