Mikrotik (chr) IPSEC/GRE

Mikrotik provide amazing affordable hardware and RouterOS software. RouterOS have bazillion number of functionalities however IPSEC VTI is missing (*2023), so only solution is to use IPIP or GRE tunnel and encrypt them with IPSEC, if for example dynamic routing is required between 2 remote sites.

Mikrotik Cloud Hosted Router (CHR) (ROS v7) is a GNS3 node, we will encrypt gre tunnel endpoints to acx1100 also will exchange routes with OSPF.

acx1100 will encrypt gre tunnels endpoints, tunnel interface (gr-) is attached to logical system LRC, LRC will exchange routes via OSPF with Mikrotik CHR

Details for the ipsec scenario/design and strongswan can be found here

acx1100 ipsec common and policy configuration and more details can be found here

Mikrotik CHR configuration

some of the configuration like dhcp-server to lan networks and others are out of the scope

acx1100 configuration

Logical systems configuration

Validation

Mikrotik CHR

PC1,PC2

acx1100

LRC

LR1,LR2,LR3

We have same config for LR1,LR2 and LR3 .. will validate only LR1

Wireshark – network switch between acx1100 and Mikrotik CHR

PC1 to acx1100(LRC)

We can see everything is encrypted with ipsec/esp

PC1 to acx1100(LR1)

Вашият коментар