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.

  1. Log into your Unifi controller version 6.1.71. This should also work with newer and previous versions of the Unifi controller software.
  2. Click on Settings
  3. Click on System Settings
  4. Click the New User Interface slider to turn it off.

  5. You will be prompted with a popup, click the red [ Deactivate ] button.
  6. You should now be viewing a classic version of the Unifi Controller software.
  7. Click on Settings
  8. Click on the Networks tab.
  9. Locate your VPN Access network and click the Edit icon.
  10. Go down to the RADIUS section and check mark the box for “Require MS-CHAP v2” and then click save.
  11. 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. 

I hope this article was helpful, if you have any questions, please feel free to contact me. If you would like to be notified of when I create a new post, you can subscribe to my blog alert.

8 Comments

  1. Hey Patrick,

    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!

  2. 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..

    1. 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.

  3. 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.

  4. 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)

Leave a Comment

40 − 30 =