this post was submitted on 09 Sep 2023
18 points (90.9% liked)

Selfhosted

39435 readers
7 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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 :)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] [email protected] 1 points 1 year ago (1 children)

Silly question but how do I know if I'm behind a cgnat ?

[–] [email protected] 2 points 1 year ago

If your public IP is in the 100.64.0.0/10 range, then you're behind a CG-NAT.