Community discussions

MikroTik App
 
4mat
just joined
Topic Author
Posts: 2
Joined: Tue Jan 25, 2022 2:02 pm

WindscribeVPN (Wireguard) on Mikrotik hEX

Tue Jan 25, 2022 3:09 pm

Hi, first post here and please excuse any errors on my part.
I am trying to configure a Mikrotik hEX router (v7.1.1), so that everything I connect to it has Internet access via Windscribe VPN (WireGuard).
There is a WireGuard Config Generator on the provider's site with some options.
Selecting a Location and Port e.g. 443 the following config file is created:
[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Address = 100.113.246.2/32
DNS = 10.255.255.3

[Peer]
PublicKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AllowedIPs = 0.0.0.0/0
Endpoint = arn-159-wg.whiskergalaxy.com:443
PresharedKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
As for the equipment, currently includes
DSL Modem Router (IP:192.168.2.1)
Mikrotik hEX (Quick Set Screenshot)
PC (IP:192.168.88.254)
Reading other similar topics, I have set up the following so far via Winbox: WireGuard Interface, Peer
Any help with the rest of the settings?
 
4mat
just joined
Topic Author
Posts: 2
Joined: Tue Jan 25, 2022 2:02 pm

Re: WindscribeVPN (Wireguard) on Mikrotik hEX

Tue Jan 25, 2022 6:47 pm

Part #2

I tried to follow instructions posted by forum member msatter HERE.
No luck so far.
CURRENT CONFIG
Any help will be very welcome
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19322
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: WindscribeVPN (Wireguard) on Mikrotik hEX

Wed Jan 26, 2022 10:44 pm

This article may provide some guidance.
viewtopic.php?t=182340
 
msatter
Forum Guru
Forum Guru
Posts: 2912
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: WindscribeVPN (Wireguard) on Mikrotik hEX

Wed Jan 26, 2022 10:57 pm

In your case use script two and it put the config in but leaves it disabled so that you check and enable it. The first script is for dynamic take over of existing connection and that is much more complex and need a lot of checks during running. I am using that one myself every few days.

The actual directing/selecting which traffic has to use the VPN you can look at what Anav mentioned and pointed what he wrote there.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19322
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: WindscribeVPN (Wireguard) on Mikrotik hEX

Wed Jan 26, 2022 11:04 pm

The wg settings on your device appear to be okay.

Looking at the providers output,
Okay so they have provided the endpoint address for you to put into the MT peer settings.
arn-159-wg.whiskergalaxy.com and port 443.

Not sure what to do with this 100.113.246.2/32 though?????

You used the public key they generated to put into the MT peer settings.......
You gave them your public key the MT generated for them to use.

Not sure why we care about the DNS they provided ??????

Also pre-shared key that is not something ive seen used yet, is it just blanked out because there is no entry??

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ISSUES

1. SOURCE NAT, remove source nat rule for wireguard, not required.

2. IP Routes
- okay you have the required dst-address=0.0.0.0/0 gwy=wg1 table=wg1

Personally I would not confuse readers by having the same name for an interface and anything else on the config in this case the table.
Not sure why that dynamic IP shows up in DAC because I see nothing that would cause the router to be even aware of it.

I dont understand where this 10.255.255... Route through wg1 comes from?? DID you make this and for what purpose ???
I dont understand were this 100.113.xx.x Route through wg1 comes from?? Unless you actually gave the WG interface an IP address???

Finally I dont see the route rule associated with your First IP route through WG
where you select
src-address=192.162.88.0/24
Action= lookup-only-in-table
table=wg1

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

RECTIFY STEPS - main issues.
1. Ensure route route rule is in place first
2. Remove the sourcenat rule
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other things.
3. Remove 255.255 route if not required
4. Remove IP address of wg interface (not shown on your pics but suspected)
 
brewer7
just joined
Posts: 2
Joined: Fri Dec 06, 2019 4:50 pm

Re: WindscribeVPN (Wireguard) on Mikrotik hEX

Thu Apr 07, 2022 2:20 pm

I faced same task... you need to add your interface IP 100.113.246.2/32 to your newly created routing table. keep this address on the interface, of cause and add masquarade rule for out WG interface. for me it works perfect
 
voytecky
just joined
Posts: 4
Joined: Tue Feb 01, 2022 12:01 am
Location: PL

Re: WindscribeVPN (Wireguard) on Mikrotik hEX

Sat Apr 09, 2022 2:05 pm

Brever7, can you post your complete configuration involving wireguard, with firewall rule, table, routes. I’m stuck with setting up connection to Mullvad. Have a handshake but that’s it. Thanks.

Who is online

Users browsing this forum: Bing [Bot], roemer and 20 guests