I am using my Gl.Inet router while I am traveling and I connect to my home with VPN. Sometimes I have problem, when remote subnet is the same as my home subnet (192.168.1.x). Sure, I should change this to something not commonly used range, but I have many devices on my network and I don’t have time to change now.
On my Mac I am using this temporary solution:
sudo route add -host 192.168.1.54 -interface ppp0
If I want to access home device at 192.168.1.54, it would be accessing trough ppp0 VPN interface. It works.
It is possible to set static route like this on Glinet router? I set static route like this, but it's not working:
It seems 192.168.0.4 is the unit's own IP address. But the gateway should never be its own address. (Unless maybe you want to add an unreachable route.) And the route specifies "lan" but don't you want to use wg0? Which interface is wg0 assigned to? I guess it isn't "lan".
192.168.9.4 is the WG0 IP (VPN interface) address. It is connecting to the remote server 192.168.9.1. I tried with IP 9.1 too, but it's not working either.