[Done] Mikrotik RB2011 as a client on a Linux Wireguard server

I would like to set up a wireguard connection on my RB2011. The router should connect as a client to a Linux wireguard server and send (route) certain clients or URLs over this connection.

I have a client.conf, but I can’t manage to create a working configuration and connect with it.

[Interface]
PrivateKey = qGO9k/V+fsVHl/uZLzoOpd3+F4KiNvG9u67q64JOtnM=
Address = 10.15.20.10/24
DNS = 1.1.1.1, 1.0.0.1

[Peer]
PublicKey = i38DJiFwkbznlomwyBwKsqGdzFe8ZfIsgrQ6/o04SS8
PresharedKey = /vnAYnHnb9oU31fopQWsspaR8n/36rGBo9fMLqWx0J8=
Endpoint = 1.2.3.4:51820
AllowedIPs = 0.0.0.0/0, ::0/0

## Purely informative I would like to inform that the given keys are randomly created by me and have nothing to do with my WG server.

Can someone help me please?

And the Tik part of the config is… ?

That if I knew, I would already be further.
I have tried very many different configurations, but none have worked.

I have unfortunately not found any information that helped me with the assignment of the data from the client.conf to the inputs at Mikrotik or with which I could do something.

I will probably research again tomorrow and then again one (or more :wink:) attempts.

I’m not a fan of spoon feeding. You need to do your homework or you will not learn.

https://help.mikrotik.com/docs/display/ROS/WireGuard
Roadwarrior part.

OK, let’s close the whole thing.

I didn’t want to let anyone do my work on the configuration, but maybe a nudge in the right direction.

Until now, I was of the opinion that you can also ask questions in a forum. Even if they may seem simple or stupid for some (or many??).

I provided you the link to the official wg documentation.
All you need to know is there.

If you do not want to read and digest that limited info, what are you going to do with your next problem ?

Good luck.

Hi there,
Read this its a bit more useful and should get you to understand what you need to config.

a. ip address structure
b. firewall rules
c. ip routes and possibly routing rules and table
d. allowed Addresses

https://forum.mikrotik.com/viewtopic.php?t=182340