Community discussions

MikroTik App
 
xerohero
just joined
Topic Author
Posts: 1
Joined: Mon Jan 23, 2023 6:57 pm
Location: Dublin
Contact:

RouterOS v7.7 [Stable] - Wireguard Setup

Thu Jan 26, 2023 11:37 pm

Hello,

I am trying to setup VPN connections from multiple remote servers all running Wireguard. These connections should be directed to certain devices only, such that, for example, device X is directed through tunnel A while device Y is directed through tunnel B. I think something like iptables could do the job of filtering and redirecting each client to the correct endpoint (I'm happy to be corrected if there is a better/more efficient way to do it too).

The VPN provider is supplying config files in the form below:
[Interface]
PrivateKey = PRIVATE_KEY_XXXXXXXX
Address = 11.22.33.44/24
DNS = 1.1.1.1, 1.0.0.1

[Peer]
PublicKey = PUBLIC_KEY_YYYYYYYYYY
PresharedKey = PRESHARED_KEY_ZZZZZZZZZZZ
Endpoint = 12.34.56.78:51820
AllowedIPs = 0.0.0.0/0, ::0/0
I have updated my RouterBoard RB2011UiAS-RM to the latest RouterOS, and I have installed the WireGuard package on the OS.

Thank you for any help you can provide.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19099
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: RouterOS v7.7 [Stable] - Wireguard Setup

Fri Jan 27, 2023 2:17 am

So how many accounts do you have with this third party provider.
How many tunnels will you be creating ( assuming they are multiple to address different geographical endpoints? )

Then you need to detail specifically
which user/devices or groups of user/device on the 2011 need to access the tunnel.

Read up here - viewtopic.php?t=182340

Once you have a config done up and need some tweaking, return
and provide your config.....
/export file=anynameyouwish ( minus router serial # and any public WANIP info etc.. )
 
holvoetn
Forum Guru
Forum Guru
Posts: 5403
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: RouterOS v7.7 [Stable] - Wireguard Setup

Fri Jan 27, 2023 10:41 am

And make a drawing of what you are planning to do. It might help for yourself as well.

Who is online

Users browsing this forum: Amazon [Bot] and 26 guests