I am having quite a few issues making wireguard client work on this travel router. I will try and explain in as much detail as i can
HomeNetwork (wireguard server) - 192.168.1.0/24
AR-750 - 192.168.8.1/24
Current Local Network (connected via lan) - 192.168.1.0/24
If i use a wireguard config like this:
[Interface]
PrivateKey = xxxx
Address = 10.10.0.4/32
DNS = 192.168.1.1
[Peer]
PublicKey = xxxx
AllowedIPs = 0.0.0.0/0, ::/0, 192.168.1.0/24
Endpoint = <remote-ip>:51820
Then the local lan and remote lan overlap, and i cant reach anything on my home network as the route is trying to hit the local network. and then this is what the route table looks like:
root@GL-AR750:~# route -ne
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
128.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
So a work around i have managed to make work on my wireguard configuration on my laptop is splitting the allowed IPs from /24 to /25. And on my laptop this works, but when i try and add these to the router wireguard config the routes dont reflect these changes.
[Interface]
PrivateKey = xxx
Address = 10.10.0.4/32
DNS = 192.168.1.1
[Peer]
PublicKey = xxx
AllowedIPs = 0.0.0.0/0, ::/0, 192.168.1.0/25, 192.168.1.128/25
Endpoint = <remote-ip>:51820
root@GL-AR750:~# route -ne
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
88.98.93.XXX 192.168.1.254 255.255.255.255 UGH 0 0 0 eth0
128.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
Im not sure why the configu works on my laptop but on the router it doesnt. Any help welcome.