GithubHelp home page GithubHelp logo

Comments (4)

hwdsl2 avatar hwdsl2 commented on May 12, 2024

@sudanking What error(s) did you see? In case it is Error 628, go to the "Security" tab [1] of VPN connection properties, enable CHAP and disable MS-CHAP v2.

Also, please note that due to a limitation of the IPsec protocol, multiple devices behind the same NAT (e.g. a home router) cannot simultaneously connect to the same IPsec VPN server.

[1] #7 (comment)
[2] #9

from setup-ipsec-vpn.

sudanking avatar sudanking commented on May 12, 2024

this what I get in event viewer:
The user XXXXXXXX dialed a connection named XXXXXXX which has failed. The error code returned on failure is 809.

I use single connection from one place to server.

from setup-ipsec-vpn.

hwdsl2 avatar hwdsl2 commented on May 12, 2024

@sudanking As explained in important notes [1], to avoid Error 809 please add the following registry key and reboot your Windows 10 computer [2].

  • Client behind NAT devices
    Solution: Modern Windows devices do not support L2TP/IPsec connections when the Windows computer or VPN server are located behind a NAT. If the Windows VPN client fails with Error 809 when trying to establish a VPN connection to an MX located behind a NAT, add the "AssumeUDPEncapsulationContextOnSendRule" DWORD value to the Windows registry. This DWORD value allows Windows to establish security associations when both the VPN server and the Windows based VPN client computer are behind NAT devices.

For Windows Vista, 7, 8, 10, and 2008 Server:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent

RegValue: AssumeUDPEncapsulationContextOnSendRule

Type: DWORD

Data Value: 2

Note that after creating this key you will need to reboot the machine.

In case that you also see Error 628, refer to my previous comment.

[1] https://github.com/hwdsl2/setup-ipsec-vpn#important-notes
[2] https://documentation.meraki.com/MX-Z/Client_VPN/Troubleshooting_Client_VPN#Windows_Error_809

from setup-ipsec-vpn.

hwdsl2 avatar hwdsl2 commented on May 12, 2024

@sudanking Closing this issue for now. Please follow instructions in my earlier comment. Feel free to reply if the problem persists.

from setup-ipsec-vpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.