I’ve got a Mikrotik hex and want to set it up as the Wireguard client and route all the traffic from the local network through the VPN tunnel.
| Mikrotik.
| local: 192.168.88.1
| wireguard: 10.66.66.8
| wan: 192.168.2.10
|
|
|
| router lan-internet ----- ISP
| 192.168.2.1.
|
|
|
|
| wireguard server.
| external: 63.15.16.17
| 10.66.66.1
|
|
internet
I added all the Wireguard settings, set the wireguard interface address to 10.66.66.8 and added new routes:
dst-address=10.66.66.1/32 gateway=wireguard
dst-address=0.0.0.0/0 gateway=wireguard
Seems like Wireguard is working correctly because I can see the connection from 10.66.66.8 on the server and also I can ping 10.66.66.1 from the Mikrotik
But local traffic is not routed through the Wireguard tunnel for some reason.
How do I know what’s going on and how do I fix that?
Here’s all the routes I have:
[admin@MikroTik] > /ip/route/print
Flags: D - DYNAMIC; X, I, A - ACTIVE; c, s, y - COPY
Columns: DST-ADDRESS, GATEWAY, DISTANCE
# DST-ADDRESS GATEWAY DISTANCE
0 Xs 0.0.0.0/0 wireguard1 1
1 As 0.0.0.0/0 192.168.2.1 1
2 As 10.66.66.1/32 wireguard1 1
DAc 10.66.66.8/32 wireguard1 0
DAc 192.168.2.0/24 ether1 0
DAc 192.168.88.0/24 bridge 0
