Network two LAN-s through WireGuard
Posted: Thu Sep 12, 2024 4:44 pm
Hi everyone,
I'm new to this forum and currently facing an issue with configuring WireGuard to connect two MikroTik routers (hEX S, wAP ac LTE kit) over a DigitalOcean-hosted Ubuntu v24 server. Both routers are intended to operate within the same subnet (192.168.69.0/24). Despite spending several days setting up and poring over manuals, I'm unable to establish connectivity between the two routers, which are currently on my workbench (they will be separated by a significant distance in the future).
Here's a more detailed breakdown of my issue:
When I attempt to ping from either MikroTik router, I get the following responses indicating that the host is unreachable:
From the Ubuntu server, pinging any of the MikroTik IPs results in:
The WireGuard interface seems to be up with the following configuration:
Each peer's allowed IPs are properly set, and the interface and peers appear to be configured correctly. However, connectivity between the routers remains unsuccessful.
I'm new to this forum and currently facing an issue with configuring WireGuard to connect two MikroTik routers (hEX S, wAP ac LTE kit) over a DigitalOcean-hosted Ubuntu v24 server. Both routers are intended to operate within the same subnet (192.168.69.0/24). Despite spending several days setting up and poring over manuals, I'm unable to establish connectivity between the two routers, which are currently on my workbench (they will be separated by a significant distance in the future).
Here's a more detailed breakdown of my issue:
When I attempt to ping from either MikroTik router, I get the following responses indicating that the host is unreachable:
Code: Select all
[admin@MikroTik] > ping 192.168.69.161
SEQ HOST SIZE TTL TIME STATUS
0 10.0.0.1 84 64 86ms687us host unreachable
1 10.0.0.1 84 64 86ms31us host unreachable
Code: Select all
root@ubuntu-vm:~# ping 192.168.69.161
PING 192.168.69.161 (192.168.69.161) 56(84) bytes of data.
From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
...
--- 192.168.69.161 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3094ms
Code: Select all
root@ubuntu-vm:~# wg
interface: wg0
public key: <public key server>
private key: (hidden)
listening port: 51830
peer: <public key1>
endpoint: 67.123.228.14:51830
allowed ips: 10.0.0.2/32
latest handshake: 1 minute, 35 seconds ago
transfer: 70.59 KiB received, 23.84 KiB sent
peer: <public key2>
endpoint: 67.123.228.14:16432
allowed ips: 10.0.0.3/32
latest handshake: 1 minute, 50 seconds ago
transfer: 341.47 KiB received, 388.53 KiB sent
peer: <public key3>
allowed ips: 10.0.0.4/32, 192.168.69.0/24