I have two Mikrotiks. One side as L2TP server (Main) and other as L2TP Client (Spoke). I am unable to pass traffic beyond the Lan interface of either side. The L2TP client side (Spoke) obtains IP address via DHCP from ISP. It connects to Main and I can ping from Main (L2TP server) side IP from IP 192.168.1.1 to Spoke side IP 192.168.61.1 and Vice versa. I am unable to ping anything beyond these “LAN” or Inside IP addresses.
I am totally drawing a blank on what to look at now. I believe I should be doing source Nat but at this moment, I am not clear. (See attached)
OK, traffic in one direction is resolved with a masquerade rule on the spoke side.
I have the routers all working in one direction they can all ping thru to the core network 192.168.1.0/24. What the current issue is the route back, the Production router can ping the inside interface of each spoke but no further and only if I set a route to the interface after the L2TP Ipsec tunnel comes up.
How do I create a route on the core side to the spoke subnet if there is no interface or IP to use? The interface is created dynamically when the spoke mikrotik connects.
Masquerade has been removed and a static route has been added so it will use interface on the Main router. I hope I did it right. I used the same username that I have already created under the Secrets menu on this interface. Still no traffic in one direction from main side 192.168.1.0/24 to spoke subnet 192.168.61.0/24. I can ping only the spoke side lan interface of 192.168.61.1 from the Main MT router. See L2TP Server Binding interface I added (below) called R1-l2tp-in1 and it has a route to the spoke subnet 192.168.61.0/24
[PRODUCTION MAIN SIDE] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
DST-ADDRESS PREF-SRC GATEWAY DISTANCE
snipped…
6 ADC 192.168.1.0/24 192.168.1.1 inside 0
7 ADC 192.168.1.251/32 192.168.1.1 R1-l2tp-in1 0
8 A S 192.168.60.0/24 192.168.99.1 gre-tunnel-to-1… 5
9 A S 192.168.61.0/24 R1-l2tp-in1 1
10 ADC 192.168.99.1/32 192.168.99.1 loopback-gre-site1 0
[PRODUCTION] >