How? We have many sites with Windows clients behind src-nat and l2tp/ipsec server behind dst-nat, never able to connect without registry patch.it is possible to run an LT2P/IPsec server on a Mikrotik behind a NATing device even without tweaking the Windows registry, the price to pay is that the clients then cannot have public IPs directly on themselves.
How? We have many sites with Windows clients behind src-nat and l2tp/ipsec server behind dst-nat, never able to connect without registry patch.
Thank You! I hope it will help me to connect but I already read too many guides on l2tp likeIt is not clear from your post, how your network is set up. I assume, L2TP server is behind router with dst-nat to this server, and you are trying to connect from Windows client. If so, Windows registry modification is required on client computer. Read this (although article is about Windows Vista, it applies to newer Windows versions)
https://support.microsoft.com/en-us/hel ... in-windows
With this "forth and back dst-nat" setup, the local address of the IPsec responder is the same like the source address from which the packets actually arrive to the initiator, the NAT-T concludes that there is no NAT at server side. Therefore, if there is no NAT at initiator side either, the peers conclude they can use ESP, which is an issue if you cannot configure forwarding of ESP to the Mikrotik at the NAT at the Mikrotik end.
- (optional for clarity) add a bridge interface with no member ports
- attach the public IP of the NAT behind which the server Mikrotik lives to an interface on the Mikrotik as a /32 one (normally to the portless bridge one created above, but you can use any interface)
- /ip firewall nat
print chain=dstnat where !dynamic
add chain=dstnat place-before=0 action=dst-nat protocol=udp dst-port=500,4500 in-interface=your-wan-interface \
to-addresses=the.public.ip.mentioned.above- enjoy
I'm not sure I understand your concern. The public /32 IP will exist on the Mikrotik only once, and you can choose whether you attach it to a dedicated interface (the port-less bridge), to the WAN, or to another interface. If your Mikrotik's WAN was connected to internet directly, you wouldn't need this trick.The main concern is about the same public IP to 2 separate interfaces, WAN and L2TP fake bridge. Or I am missing something?
Windows l2tp client -> remote LAN -> SOHO router -> Internet -> Mikrotik router with dst-nat -> LAN -> Mikrotik l2tp server
Don't want to enable proxy-arp on LAN interface, to access devices on internal network.I assume you have good reasons to take all this burden (registry tweaking or implementing my trick) rather than running the L2TP/IPsec directly on the outer Mikrotik.
Well, doing so is only necessary if you assign IP addresses from the LAN subnet to the PPP (L2TP and other) clients, as in that case the clients in LAN subnet send ARP requests for the PPP clients' IPs rather than using the gateway. So if you use two adjacent subnets which can be covered by a common 1-bit-shorter mask (such as 192.168.0.0/24 and 192.168.1.0/24 which together fit into 192.168.0.0/23), you can use one of them for LAN clients and the other one for PPP clients so that you didn't need the proxy-arp, but you can refer to both using a common dst-address and src-address matchers in the firewall where you want to give the same treatment to both groups (but hey, we have the /ip firewall address-list to group together non-adjacent subnets and ranges).Don't want to enable proxy-arp on LAN interface, to access devices on internal network.
Maybe you should write that this is in spanish?This is the solution:
What's "the same" in particular? Is your L2TP/IPsec server running on Mikrotik which doesn't have a public IP on itself and it is connected to the internet via some external NAT device with port forwarding?I have the same issue, but only with some devices.