I am having difficulty accessing my Server LAN from my Client LAN using Wineguard.
I have two networks: my Server LAN network is 192.168.10.1/24, and my Client LAN is 192.168.20.1/24. I have a Wireguard Server running on a GL-AX1800 and a Wireguard Client running on a GL-X750V2.
When I connect the Client and Server Wireguard VPN, they show as connected (green dots on both). On my client I go to google and search “whats my ip” and it tells me the WAN IP of my Server Router, which is great. That tells me that Internet traffic is being sent from the Client to the Server and then out to the Internet.
However, when I try to access any IP on my Server LAN, it doesn’t go through; I can’t ping or access my web server on my Server LAN.
Here is my client Wireguard configuration:
[Interface]
Address = 10.0.0.2/24
PrivateKey = XXXXXXXXXXXXXXXXX
DNS = 64.6.64.6
MTU = 1420
[Peer]
AllowedIPs = 0.0.0.0/0,::/0
Endpoint = XXXXXX.glddns.com:51820
PersistentKeepalive = 25
PublicKey = XXXXXXXXXXXXXXXXX
Here is my Client route table (from SSH into the router):
root@GL-X750:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
0.0.0.0 33.144.105.165 0.0.0.0 UG 40 0 0 wwan0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
33.144.105.164 0.0.0.0 255.255.255.252 U 40 0 0 wwan0
76.167.168.222 33.144.105.165 255.255.255.255 UGH 40 0 0 wwan0
128.0.0.0 0.0.0.0 128.0.0.0 U 0 0 0 wg0
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
How can I set this up so I can also access my server LAN (192.168.10.1/24) from my client LAN?
NOTE: Allowed IPs is set to “0.0.0.0/0,::/0”, so everything including the Server LAN addresses should be going to Wireguard.