# NGINX and Wireguard - local network routing questions

**URL:** <https://community.nginx.org/t/nginx-and-wireguard-local-network-routing-questions/9068>\
**Category:** NGINX\
**Tags:** networking, reverse-proxy\
**Created:** [February 23, 2026, 9:59pm UTC](https://community.nginx.org/t/nginx-and-wireguard-local-network-routing-questions/9068 "2026-02-23T21:59:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceciliabrooke](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@ceciliabrooke](https://community.nginx.org/u/ceciliabrooke)\
**Post date:** [February 23, 2026, 9:59pm UTC](https://community.nginx.org/t/nginx-and-wireguard-local-network-routing-questions/9068/1 "2026-02-23T21:59:37Z")

</div>

**My issue:**

I have a wireguard VPS that I am trying to use to essentially create an intranet. There are a few servers I would like to run on my local machine (which stays connected to the VPS at all times via the wireguard tunnel. All VPS users access resources through wireguard.

Namely, I am running an audiobookshelf docker container on localhost on my local machine, but how can I expose access to this server to all other wireguard peers? I simply want the localhost of my machine to be visible to the VPS as if it were a local network. Any guidance or learning materials would be much appreciated. I’ve had a heck of a time trying to find documentation for this use-case. Possibly because I don’t know enough to know what to search.

**How I encountered the problem:**

**Solutions I’ve tried:**

Using proxy hosts / streams in NPM to reroute the localhost traffic from peer to server and then to a local domain (QLS.local)

**Version of NGINX or NGINX adjacent software (e.g. NGINX Gateway Fabric):**

NPM [v2.14.0](https://github.com/NginxProxyManager/nginx-proxy-manager/releases/tag/v2.14.0)

**Deployment environment:**

Fedora client and ubuntu server

**Minimal NGINX config to reproduce your issue (preferably running on [https://tech-playground.com/playgrounds/nginx](https://tech-playground.com/playgrounds/nginx) for ease of debugging, and if not as a code block):** _(Tip → Run `nginx -T` to print your entire NGINX config to your terminal.)_

**NGINX access/error log:** _(Tip → You can usually find the logs in the `/var/log/nginx` directory.)_

---

<div class="post-metadata">

**Author:** ![system](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/system/32/19_2.png) [@system](https://community.nginx.org/u/system)\
**Post date:** [March 25, 2026, 10:00pm UTC](https://community.nginx.org/t/nginx-and-wireguard-local-network-routing-questions/9068/2 "2026-03-25T22:00:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
