Answer the question
In order to leave comments, you need to log in
How to setup Win -> L2TP+IPsec connection through NAT?
Hello.
The essence of the problem:
Two offices, you need to create a L2TP
tunnel between the computer in the grid of the first office to the router of the second.
Scheme:
win10 (client) -> gateway (1ый офис) -> интернет -> ubiquite router (2ой офис, server)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent
AssumeUDPEncapsulationContextOnSendRule
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters
ProhibitIpSec
AllowL2TPWeakCrypto
wireshark
on win10
and tcpdump
on the receiver ubiquite
, everything that leaves everything comes. win10
raise win10
the virtual machine, in the virtual machine (I tried it with linux, a similar success). win10
- successfully. ESTABLISHED
the connection allows you to connect from the host Windows, but why it does not work without such a crutch is not clear. mac
connected without complaints. vpn
that the connection is being established, but win10
it still returns 809:Mar 29 09:29:42 15[IKE] <1> xxx.xxx.54.116 is initiating a Main Mode IKE_SA
Mar 29 09:29:42 06[IKE] <remote-access|1> IKE_SA remote-access[1] established between yyy.yyy.182.90[yyy.yyy.182.90]..xxx.xxx.54.116[192.168.3.122]
Mar 29 09:29:42 07[IKE] <remote-access|1> CHILD_SA remote-access{1} established with SPIs cd95951a_i f7801e3a_o and TS yyy.yyy.182.90/32[udp/l2f] === xxx.xxx.54.116/32[udp/l2f]
Answer the question
In order to leave comments, you need to log in
You will not believe, 4 days struggled with raising VPN on one WIN10PRO. No registry edits helped, 809 error and that's it.
The problem was solved unexpectedly, once again I created a new VPN connection, but with the requirement for a connection with maximum encryption, saved it, and then edited it to optional.
Yes, VPN created via PowerShell
# Create VPN connection
$VpnName = "My IPsec VPN"
$gateway = "vpn.gdeto.tam.ru"
$psk = "1CrutoyParol"
Add-VpnConnection -Name $VpnName -ServerAddress $gateway -L2tpPsk $psk -TunnelType L2tp -EncryptionLevel Required -AuthenticationMethod Chap,MSChapv2 -Force -AllUserConnection -RememberCredential -PassThru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question