19
submitted 1 year ago by [email protected] to c/[email protected]

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

top 8 comments
sorted by: hot top controversial new old
[-] [email protected] 6 points 1 year ago

To do this without port forwarding you could look at using tailscale (https://github.com/tailscale).

[-] [email protected] 1 points 1 year ago

I'll look into it, thanks

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

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

[-] [email protected] 1 points 1 year ago

On a VPS you mean ? I'll try thanks

[-] [email protected] 2 points 1 year ago* (last edited 1 year ago)

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

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.

[-] [email protected] 0 points 1 year ago* (last edited 1 year ago)

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]

this post was submitted on 09 Sep 2023
19 points (91.3% liked)

Selfhosted

39257 readers
225 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