Community discussions

MikroTik App
 
Newbie2023
just joined
Topic Author
Posts: 2
Joined: Tue Jan 10, 2023 6:08 pm

WireGuard with Android does not work

Tue Jan 10, 2023 6:25 pm

As I am a complete Newbie with MikroTik equipment I apologize if I am asking stupid questions, but I would really appreciate any help I can get.
I am trying to set up a wireguard server behind my FritzBox to access the lokal network from the internet. I found some tutorials how to do it, but nothing works.

I use a hEX router - completely reset to default values.

- The WAN-Port is connected to FritzBox eth3 – IP: 192.168.64.94
- In the FritzBox I configured port forwarding of ext. port 13231 to 192.168.64.94:13231
- The LAN-Port of the router is connected to my PC (192.168.88.0/24)
- From the Web config interface I
- used WireGuard "add new" interface „wireguard1“ to interface list. Port 13231
- Added IP-Address 192.168.10.1/24 to interface „wireguard1“
- Added Peer Endpoint 192.168.10.10 to "wireguard1"
- Added interface „wireguard1“ to interface list „LAN“
- Added Firewall rule to input chain: accept UDP Port 13231

On my smartphone I installed and configured the wireguard app, but it cannot connect to the MikroTik router. There seems to be no response to the handshake initiation.

Looking at the firewall rules, I see incoming traffic on the "accept 13231" rule, but looking at the "interfaces" page there is no traffic at the wireguard interface.

Can anyone tell me what I am doing wrong?
 
Newbie2023
just joined
Topic Author
Posts: 2
Joined: Tue Jan 10, 2023 6:08 pm

Re: WireGuard with Android does not work  [SOLVED]

Wed Jan 11, 2023 5:31 pm

After a lot of searching on the internet I found a post saying that MikroTik has problems with some keys.
So, I generated a new key on my mobile and now everything works properly.
Maybe it was because the first public key had some special characters ("+" and "/"), the new one doesn't
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19322
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: WireGuard with Android does not work

Wed Jan 11, 2023 5:41 pm

Good work.
More info on wireguard........
viewtopic.php?t=182340

Who is online

Users browsing this forum: Amazon [Bot], UkRainUa and 23 guests