So I've come up with a Wireguard use case I'd like to pursue: use wireguard to allow devices off my home network to VPN onto my home network, and connect to the Internet through my home network. The idea is for remote server access, private Internet use in hotels and cafes, and so on.
Complications: I'm new to VPN in general, don't know much at all about IPv6, and my v4 isn't super-sharp either, and I'm testing all this on a home network that's a little complicated (and this may be adding more difficulty than there should be).
My test clients are on my "guest" network: 192.168.2.0/24. My test server is on my regular network: 192.168.1.0/24. Guests can get on the Internet but not on my regular network for the most part, but I've opened up ports and confirmed that I can successfully allow guests to access specific ports on the server.
Running "wg" in the (Linux) server shows:
interface: wg0
public key: (hidden)
private key: (hidden)
listening port: 51820
peer: (hidden)
endpoint: 192.168.2.209:55467
allowed ips: 0.0.0.0/0, ::/0
latest handshake: 49 seconds ago
transfer: 25.77 KiB received, 26.64 KiB sent
peer: (hidden)
endpoint: 192.168.2.194:60176
allowed ips: 0.0.0.0/0, ::/0
latest handshake: 4 hours, 24 minutes, 24 seconds ago
transfer: 8.94 KiB received, 18.31 KiB sent
Both clients (PC running the beta official Windows wireguard client, and an Android running the app) seem to be doing the handshake just fine, but once connected, no traffic flows to any point on the LAN or the Internet.
The wireguard network interface is 192.168.3.1/24. I'm thinking maybe the problem is some sort of missing step to route the traffic from 3.x to anywhere else, but I'm not sure what to try.
The clients have allowed IPs set to 0.0.0.0/0 on their end, but I've also tried 192.168.0.0/16 and so on, but that just limits the scope of where I can't connect--anything sent through the tunnel fails. The android client Wireguard IP is 192.168.3.3/32.
Anything obviously off? Theoretically I wouldn't even be using this from my own guest network, but it's an easier way to test. If it's simply not going to work from my guest network because of some factor I hadn't considered, but would still work remotely, that's fine with me.
Complications: I'm new to VPN in general, don't know much at all about IPv6, and my v4 isn't super-sharp either, and I'm testing all this on a home network that's a little complicated (and this may be adding more difficulty than there should be).
My test clients are on my "guest" network: 192.168.2.0/24. My test server is on my regular network: 192.168.1.0/24. Guests can get on the Internet but not on my regular network for the most part, but I've opened up ports and confirmed that I can successfully allow guests to access specific ports on the server.
Running "wg" in the (Linux) server shows:
interface: wg0
public key: (hidden)
private key: (hidden)
listening port: 51820
peer: (hidden)
endpoint: 192.168.2.209:55467
allowed ips: 0.0.0.0/0, ::/0
latest handshake: 49 seconds ago
transfer: 25.77 KiB received, 26.64 KiB sent
peer: (hidden)
endpoint: 192.168.2.194:60176
allowed ips: 0.0.0.0/0, ::/0
latest handshake: 4 hours, 24 minutes, 24 seconds ago
transfer: 8.94 KiB received, 18.31 KiB sent
Both clients (PC running the beta official Windows wireguard client, and an Android running the app) seem to be doing the handshake just fine, but once connected, no traffic flows to any point on the LAN or the Internet.
The wireguard network interface is 192.168.3.1/24. I'm thinking maybe the problem is some sort of missing step to route the traffic from 3.x to anywhere else, but I'm not sure what to try.
The clients have allowed IPs set to 0.0.0.0/0 on their end, but I've also tried 192.168.0.0/16 and so on, but that just limits the scope of where I can't connect--anything sent through the tunnel fails. The android client Wireguard IP is 192.168.3.3/32.
Anything obviously off? Theoretically I wouldn't even be using this from my own guest network, but it's an easier way to test. If it's simply not going to work from my guest network because of some factor I hadn't considered, but would still work remotely, that's fine with me.