I have a Mikrotik router RB5009UPr+S+ running RouterOs 7.15 and an Ubiquiti cloud router on a different site.
Trying to create a WireGuard VPN tunnel from the Mikrotik to the Ubiquiti. I have enabled WireGuard server on the Ubituiti and added two clients, one for my android phone and one for the Mikrotik.
Here is the configuration from the Ubituiti
[Interface]
PrivateKey = privkey
Address = 192.168.9.2/32
DNS = 192.168.9.1
[Peer]
PublicKey = pubkey
AllowedIPs = 192.168.9.1/32,192.168.9.2/32,0.0.0.0/0
Endpoint = my.ddns.net:51821
I added added the interface by importing the [Interface] part of the config and the privkey is set for the WireGuard interface on the Mikrotik. I manually created a peer using the publickey from the config, endpoint, allowed ip’s.
Here are the configs from the mikrotik
[admin@xRouterTik] > /interface wireguard print detail
Flags: X - disabled; R - running
0 R name=“SnickerboaWG” mtu=1420 listen-port=51821 private-key=“privkey_from_config” public-key=“generated_public_key”
[admin@xRouterTik] > /interface wireguard peers print detail
Flags: X - disabled; D - dynamic
0 interface=SnickerboaWG name=“SnickerboaClient” public-key=public_key_from_config" private-key=“” endpoint-address=my.ddns.net endpoint-port=51821 current-endpoint-address=x.y.z.a current-endpoint-port=51821
allowed-address=192.168.9.1/32,192.168.9.2/32,192.168.10.0/24,192.168.12.0/24,10.6.50.0/24 preshared-key=“” client-endpoint=“” rx=0 tx=0
I have also opened UDP port 51820, 51821 (I have tested with different ports..) into the Mikrotik. I have tried to add a address to the wireguard interface like 192.168.9.2/32 but nothing works.
First I got something about peer handshake fails and there is TX traffic and no RX.
Now there is nothing in the logs, only “TX/RX Errors” increasing on the wireguard interface Traffic stats
I have tried for days, reading documentation, watching youtube guides, the Android WireGuard client IS WORKING so the Ubiquiti WireGuard server is working!
Why is it so impossible or difficult to add a WireGuard client on the Mikrotik router??
I have also tried to setup a OpenVPN client on the Mikrotik but the Mikrotik doesn’t support comp-lzo, reneg-sec.
I get this in the log when I try to import the ovpn config from the Ubiquiti on the Mikrotik
unsupported configuration parameter ‘comp-lzo’
unsupported configuration parameter ‘reneg-sec’
Could someone please help, should it not be possible to add a VPN client on Mikrotik?
Should I invest in something like a Netgate / Pfsense instead?