The easiest way of configuring MikroTik hAP ac2 (RouterOS 7) as a VPN client. We have: 1. MikroTik router that we want to configure as a client
2. VPS that we want to configure as WireGuard VPN server. 3. Create Peer with the server side credentials. Interface:wireguard, Public Key:<SERVER PUB KEY>, Endpoint:<SERVER EXTERNAL IP>, Endpoint Port<51820 is WireGuard default (configured due pivpn installing)> Allowed Address:0.0.0.0/0 > Preshared Key:<PRESHARED KEY FROM CLIENT's CONFIG FILE [Peer]> Persistent Keepalive:10 (no really matter). 4. Firewall > NAT > + > Chain:srcnat, Out.Interface:wireguard, Action: masquerade Also keep default: Chain:srcnat, Out..Interface:<YOUR INTERNET PORT ON ROUTER (ether1 or so by default)>, Action: masquerade 5. Filter Rules > Don't touch. Client side doesn't require configuring. 6. IP > Addresses > + > Address:<INTERNAL ADDRESS FROM CLIENT'S CONFIG, FIRST DEFAULT: 10.186.212.2 SECOND 10.186.212.3 and so on (I created many configs so 10.186.212.8 is here