Hi everyone, I'm totally new to OpenWRT and VPN topic in general, so some clarifiications later may be needed.
Let's start with the idea:
As probably many people before and after me, I'd like to have a personal VPN to my home network. I'd like to be able to connect and be visible outside as from my home network. It's especially for the case of my work laptop, which I'm not able to configure in any way (because of some internal safety politics etc. So I'd like to have a router serving for this purpose.
If I'd have to put it on a diagram, it would look like this:
Laptop (or mobile) <-> OpenWRT router <-> VPN server at home <-> Internet
What I already have:
- I have configured a Wireguard Server using Raspberry Pi and PiVPN. I also have a DDNS using duckdns.org so I'm able to connect to it using just a dns name, not an IP address.
- Wireguard is working fine with clients directly connected, like phone with Wireguard app.
- I configured OpenWRT on Tp-Link AX23 to have Wireguard client and as the stats say, that works. However, any device that is connected to it is not visible as Wireguard peer, so the public IP is different than that from my home network.
I tried checking before with my phone configured as Wireguard client and hotspot on/ As the phone itself was redirected and visible as "from home", any device connected to it's network was not. That's where OpenWRT idea came from.
Questions are:
- Is it even possible with Wireguard setup to have a router working as "gateway" for Wireguard connection? In the scenario that any client connected to the router is also a peer, but without any configuration?
- Can OpenWRT automatically configure clients itself, without anything changing on the connected device, to be visible as Wireguard peer? What I want is just connect the device to router WiFi or LAN and already be "inside" VPN connection.
- If so, how?
- If not, is it possible with different vpn, e.g. OpenVPN?
Should you need any conf
files please let me know.