I would appreciate if I could please get some help on setting up the RB5009UG as a Wireguard server to connect with android phone.
Here is my server config:
Here is my android phone config:
Interface:
name:home
private key:IPrxxxxx
Public Key: D0Pkxxxx
Addresses: 192.168.201.2/24
DNS servers: 192.168.200.1
Peer:
Public key: uQe9xxxx
Endpoint: xxxx:51820
Allowed IP’s: 0.0.0.0/1, 128.0.0.0/1
What about other config on RB? Addresses, routes, … what you posted is not enough to make it work. Does wireguard1 interface have any IP address? Something like 192.168.201.1/24 perhaps? Also what you posted is wrong, there should be no endpoint for peer on RB.
Change android settings
Use DNS 1.1.1.1, 9.9.9.9
and
Allowed IPs Try 0.0.0.0/0 if your intent is to go out the internet of the MT router ???
If your intent is to access a subnet on the MT router put that there instead…
The entries of 0.0.0.0/1 and 128.0.0.1, I have no idea will do but nothing I have seen before.
@anav: 0.0.0.0/1 plus 128.0.0.0/1 is the same as 0.0.0.0/0, only doing it this way with two parts probably helps with overriding device’s existing default route.
disabled the route
[sami@Mikrotik_router] > ip route/ print
Flags: D - DYNAMIC; X, I, A - ACTIVE; c, s, v, y - COPY
Columns: DST-ADDRESS, GATEWAY, DISTANCE
Does Android client have any status? Can it try to ping 192.168.201.2? And when you do that, is there any change in peer’s Rx and Tx on RB? If not, do you see at least some incoming packets on WG port 51820? You can use Tools->Torch on WAN interface (digi). And of course your router does have public IP address, right?
Android looks connected and tx changes all the time ( increasing ) but the rx remains at 0 all the time. I ping from android to router but I don’t receive anything. On the peer I can see this
The router has a public ip yes. It’s PPoE and I connect to it using DDNS ( no-ip ).
WIth torch on the wan interface on port 51820 I can see packets running
Should be
add action=accept chain=input comment=“Allow Wireguard” dst-port=51820
in-interface=digi protocol=udp
alternatively this would have worked as well.
add action=accept chain=input comment=“Allow Wireguard” dst-port=51820
in-interface-list=WAN protocol=udp
although I do see something potentially off on the interface list members
/interface list member
add interface=eth1-wan list=LAN ???
add interface=eth2-lan list=LAN
add interface=eth3-lan list=LAN
add interface=eth4-lan list=LAN
add interface=eth5-lan list=LAN
add interface=eth6-lan list=LAN
add interface=eth7-lan list=LAN
add interface=eth8-lan list=LAN
add interface=digi list=WAN
add interface=eth1-wan list=WAN
add interface=bridge-lan list=LAN