I am experiencing some issues in relation to an IPsec tunnel between a Sophos XG85 & a Mikrotik RB2011.
I have gotten the IPsec to establish with no issues. I can ping and access all resources from the Mikrotik side, however from the Sophos side I cannot ping or access any devices on the Mikrotik side.
I don’t think I’d need to masquerade the traffic? As it’s an IPsec tunnel, so it’s private traffic if I understand correctly?
I do have another NAT rule for masquerading traffic out on my WAN.
I believe I need a specific filter rule to accept the traffic from the Sophos however I am falling short on that front.
Don’t worry, it’s because the IPsec policies intercept the traffic and divert it into the tunnel. But some route for the traffic must exist, as the IPsec policies’ traffic selectors only act after the regular routing has routed that traffic somewhere.
Also the action=accept rule in chain=srcnat is correct if it is there to exempt the traffic to be sent via IPsec from getting srcnated.
Regarding the initial issue, I cannot see anything wrong in the few rules you’ve posted. So post the complete configuration, and also bear in mind that e.g. Windows machines do not respond to pings arriving from outside their own subnet. Running /tool sniffer quick ip-address=192.168.1.0/24 ip-protocol=icmp while pinging from the Sophos side to the Mikrotik side should show you how far the request gets and whether a response arrives. The only thing it won’t show is the response leaving through the tunnel, but mangle rules can be used to log them.