I have a wireguard (server) on a fixed IP that can accept connections, from my 4g cgnatted remote site with at GL Slate.
Slate (GL-A1300, v4.5.22) [Dynamic Endpoint, CGNAT, 4G, 192.168.10.1] << >> [fixed IP, FFTP, 192.168.4.1] pfSense
Some things work some don't, fix one thing and it breaks another. I have tried numerous settings and tested the LAN both ends and WAN, using ping, traceroute and curl.
What i would like
All internet traffic direct, not via the VPN.
LAN traffic to go via the VPN, have a site to site.
I think the most suited to this is VPN Dashboard ...
VPN Policy Based on the Target Domain IP... use vpn 192.168.4.0/24
or
Customize Routing Rules... Target Address 192.168.4.0/24
The VPN allowed IPs are the tunnel, and my remote LAN
AllowedIPs = 10.202.0.0/24, 192.168.4.0/24 (I have tried adding and removing other items here)
Remote Access LAN - ON, IP Masquerading - OFF, Block Non-VPN Traffic - OFF, Allow Access WAN - OFF
Client Virtual IP (IPv4) 10.202.0.2/24
I have added a static route at the fixed IP end to 192.168.10.0/24.
Do i have to use LuCI to add firewall rules or routes or does the GL interface configure that?
Does anyone have any suggestions to make it work for, LAN only site to site, wireguard VPN?
Things that fail include, internet access from the Slate router eg it cant download packages, though it can access the other LAN
Unable to ping a GL Router client NAT ip eg 192.168.10.164 from the other LAN.
Traceroute to 192.168.10.164 ends at the tunnel 10.202.0.2
Can ping, traceroute, curl the router (192.168.10.1) from the other LAN.