I am unable to setup IPSec VPN between two mikrotik routers. Router one is: RB750r2 and router 2 is: RB750gr3. I found several tutorial but no success.
I can’t ping host from my network 192.168.0.0 (router 1) to remote network (router 2) 172.30.0.0/24 and also can’t ping router 1 hosts from router 2 network. Any ideas? What am I missing?
Here is step by step Router 1 instruction Which I use:
I used this instruction for Router 2 and IP address is reversed of course. I have no phase 1 or phase 2 error in log but as I said I am unable to ping local IP address.
Turning on Logging can help. System > Logging, add topics: IPSEC
In IP > IPSec, Installed SAs you should see two lines indicating a tunnel was successful. If there are no lines, then check your config again. Or consult the logs for a helpful message.
Normally the problem in such setups is that the routers are doing NAT as well (for internet access from the local networks)
and the NAT rules are written in such a way that the traffic between the networks is NATted as well. That causes the
tunnel to fail. You will need to modify the NAT rule (or add extra NAT rules) to avoid that, or you can abandon this whole
method and use an IPIP tunnel with IPsec protection between the routers, with a /30 network address on the endpoints,
and either static routes or some autorouting (e.g. BGP) to add the proper routes to the routing table.
As you now have a dedicated interface for the tunnel, the NAT problem (caused by a generic “masquerade what goes
out on ether1”) no longer occurs.
at each end configure a IPIP tunnel with the external addresses and an IPsec secret
at each end add an IP address to the endpoint of the tunnel, e.g. 10.0.0.1/30 and 10.0.0.2/30
(you can use any private address that is not part of your networks)
at each end add IP route(s) to the subnets at the other end via gateway that is the remote tunnel address
or: at each end add a BGP Peer to the other remote tunnel and a BGP Network that is the local network(s).
Why the BGP peers? Does IPIP not support multicast/broadcast? If not you can use GRE and run OSPF over those for easier configuration. I prefer GRE but I came from Cisco land so it may just be a go-with-what-ya-know reflex.