i have setup an ipsec between my mikrotik router and another device(which i don’t know even what kind of device is).
The fact is that the connection established but my internal network cannot reach the other lan on the other device.
actually i have seen that there is no route for that network. is this normal?
any suggestions how to troubleshoot this issue?
Ipsec doesn’t not automatically configure routes to nat rules. You will need to add a static route on each end with the LAN interface as the gateway. You will also need to add a NAT rules on each end to accept the the route subnet so that it is not processed by your masq rule.
When you say “on each end” i guess you mean on each of the two devices(my mikrotik and the router at the other side). Now, i dont have acces to the other router but i can ask to the owner to do that.
In the meantime i can configure my device. Could you please tell me what command should i use for the static route and the NAT assuming that my lan subnet is 192.168.217.0/24 and the remote subnet is 172.20.14.0/24?
Gateway of the route does not matter, it even does not matter if you have specific route, typically default route is enough. Ipsec doesn’t use that information to forward packet.
Ceck installed SAs if pase2 is establised correctly and also make sure that accept NAT rule is at the top.
I see that the connection is established. On the installed sa i see 2 installed sa, sometimes 4…
As i remember because now i cannot access the router, only in one sa i see bytes on the other is always zero.
I remember that accept nat rule is also on the top.
Can you please tell me what commands to run, what should be the results.