Community discussions

MikroTik App
 
roswitina
newbie
Topic Author
Posts: 42
Joined: Tue Mar 12, 2013 8:12 am

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

Thu Jun 08, 2023 9:45 pm

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?
Last edited by roswitina on Thu Jun 08, 2023 10:34 pm, edited 1 time in total.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mikrotik RB2011 as a client on a Linux Wireguard server

Thu Jun 08, 2023 9:46 pm

And the Tik part of the config is... ?
 
roswitina
newbie
Topic Author
Posts: 42
Joined: Tue Mar 12, 2013 8:12 am

Re: Mikrotik RB2011 as a client on a Linux Wireguard server

Thu Jun 08, 2023 10:13 pm

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 ;-)) attempts.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Mikrotik RB2011 as a client on a Linux Wireguard server

Thu Jun 08, 2023 10:14 pm

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.
 
roswitina
newbie
Topic Author
Posts: 42
Joined: Tue Mar 12, 2013 8:12 am

Re: Mikrotik RB2011 as a client on a Linux Wireguard server

Thu Jun 08, 2023 10:33 pm

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??).
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

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

Thu Jun 08, 2023 10:36 pm

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.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19100
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

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

Thu Jun 08, 2023 11:23 pm

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

viewtopic.php?t=182340

Who is online

Users browsing this forum: GoogleOther [Bot], syslog and 44 guests