this post was submitted on 05 Dec 2024
13 points (93.3% liked)

Selfhosted

40732 readers
389 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 2 years ago
MODERATORS
 

Hey everyone. So I created a wire guard tunnel to my home network in order to access my are containers but all I can access is my router login page and one of my access point login page. All being in the same range is 192.168.3.1(router), 192.168.3.2 (access point and switch) and 192.168.3.10 server. My arr listen to their respective ports ie 8989 for sonarr etc. When I'm at home I reach them with no issues. What could be the reason I can't access them remotely?

top 9 comments
sorted by: hot top controversial new old
[–] just_another_person 8 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Wireguard only gets you to the endpoint. You need extra routes from there.

Post your wg config, and possibly the staticnroute table on the router. What kind of OS the router is using might help as well to understand possible firewall rules being a problem.

Solution may be as simple as adding a static route to the Wireguard subnet so your other hosts can find it.

[–] colonelp4nic 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

To add, here's an example of my OpenVPN config addition to ensure 192.168.3.* is accessible over VPN

verb 5
push "route 192.168.3.0 255.255.255.0 vpn_gateway"
[–] just_another_person 3 points 2 weeks ago

OpenVPN does routing a tad differently, but same point applies. Network clients need to know where to go to find a route that isn't part of the home subnet they are joined too. With containers in the mix without bridging, the host needs to know that the WG subnet can be found at the router.

[–] [email protected] 2 points 2 weeks ago (1 children)

Ah makes sense. I'm using a Mikrotik router and implemented the Back to Home function which automatically creates the tunnel and all firewall configs. Supposedly it's like me being in my home network but I need to look into your suggestions.

[–] just_another_person 2 points 2 weeks ago (1 children)

That may look fine from your router's perspective, but if your network clients don't get an updated routing tables, they won't know or possibly accept traffic from the new subnet on the VPN.

[–] [email protected] 6 points 2 weeks ago

Solved. All I needed to do was route the Back to Home (wire guard ) address list to a table for the server. 🤙

[–] Hiro8811 2 points 2 weeks ago

I'm not familiar with wireguard but I use Tailscale and it works really well

[–] [email protected] 2 points 2 weeks ago

Can you ping the server through your tunnel? Maybe try a traceroute to see if it gets through your router correctly.

If this does work, check if the arrs have some "restrict to local network" setting.

If not, I'd check the firewall logs on your router to see if it is blocking the connection.

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

You can set up one device to do masquerading and forwarding then you can see entire lan