Hello All.
Due to I couldn’t implement an IPsec tunnel I’ll do with L2TP which Windows implements it as default.
But I’m getting this error:

This is the code:
/ip pool
add name=poolIPv4 ranges=100.64.0.2-100.64.0.254
add name=poolIPv4-VPN ranges=100.64.1.2-100.64.1.254
/ip dhcp-server
add add-arp=yes address-pool=poolIPv4 disabled=no interface=LAN name=dhcp-IPv4
/ppp profile
add dns-server=8.8.8.8 local-address=100.64.1.1 name=VPN remote-address=poolIPv4-VPN use-encryption=required use-ipv6=default
set *FFFFFFFE dns-server=8.8.8.8 local-address=100.64.1.1 remote-address=poolIPv4-VPN use-encryption=required
/interface l2tp-server server
set authentication=mschap1,mschap2 default-profile=VPN enabled=yes ipsec-secret=123456
/ip address
add address=100.64.0.1/24 interface=LAN network=100.64.0.0
/ppp secret
add name=user password=123456 profile=VPN service=l2tp
/ip firewall filter
add action=accept chain=input dst-port=500 protocol=udp
add action=accept chain=input dst-port=4500 protocol=udp
add action=accept chain=input dst-port=1701 protocol=udp
add action=accept chain=input protocol=ipsec-ah
add action=accept chain=input protocol=ipsec-esp
/ip firewall nat
add action=masquerade chain=srcnat src-address=100.64.1.0/24
add action=masquerade chain=srcnat
/ip ipsec peer
add address=0.0.0.0/0 exchange-mode=main-l2tp dh-group=modp2048,modp1024 generate-policy=port-override secret=123456
/ip ipsec policy
set 0 dst-address=0.0.0.0/0 src-address=0.0.0.0/0
The problem looks that it’s on the IPsec encryption but that the standard implementation.