Hi, A bit of a newb in the selfhosting world and i’m asking for any insights for the following issue :
The setup : A Openwrt router (GL-INET one) connected to the web via a Wireguard client line to a ProtonVPN server. The router has a Wireguard server running and AdGuard Home too. All the devices and server is connected to the router. A server is inside the LAN with some services (home assistant, paperless, etc.)
The goal : Trying to connect my phone on my router with the Wireguard server. To later access the services on LAN like home assistant or the router.
I’ve successfully uploaded the conf file to my phone but i cant manage to have the connection made to the router. The correct ISP IP is written into the conf files (tried DDNS glddns too without success). Of course if i write the VPN server IP it’s not working either but i guess that’s to be expected.
Maybe it’s the wrong solution ? Or do i have to get my hands in port forwarding on the vpn server level ? (i have no idea how to port forward in the vpn server though). Maybe there’s a simplier solution ?
Thanks for your advice :)
To do this without port forwarding you could look at using tailscale (https://github.com/tailscale).
I’ll look into it, thanks
https://github.com/fatedier/frp 10 minutes reading 5 to setup the best tool for tunneling i could find. The frps on a vpn(the most cheap you can find) and frpc on your server at home
On a VPS you mean ? I’ll try thanks
The commercial VPN client part shouldn’t affect your problem if I’m reading it correctly and you just want to access your LAN remotely. If you’re hosting the Wireguard server on the router, you’ll likely need a firewall rule for the port used by the wg server to allow inbound connections. And you need to configure
AllowedIPs
correctly on both server and client.Since you’re using OpenWRT, you might try out Policy-based Routing which gives you a lot of control over this and also has some instructions for various server and client configs which may be helpful.
Also, if your ISP uses a CG-NAT you won’t be able to do this without another publicly accessible device, although some ISPs will disable it if asked.
Silly question but how do I know if I’m behind a cgnat ?
If your public IP is in the
100.64.0.0/10
range, then you’re behind a CG-NAT.
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:
Fewer Letters More Letters IP Internet Protocol NAT Network Address Translation VPN Virtual Private Network VPS Virtual Private Server (opposed to shared hosting)
[Thread #127 for this sub, first seen 10th Sep 2023, 13:25] [FAQ] [Full list] [Contact] [Source code]