Newer
Older
gnexus-book / 10-systems / traffic-routes / public-gnexus-space-to-internal-nginx.md

owner: gmikcon status: active last_reviewed: 2026-10-25 review_interval: 90d confidence: high

source_of_truth: owner-confirmed-and-live-verified

Public gnexus.space Traffic To Internal nginx

This route describes the main public traffic path into the local infrastructure.

Route

Internet
  -> gnexus.space
  -> external VPS
  -> external OpenVPN server
  -> OpenVPN tunnel
  -> internal OpenVPN client
  -> internal proxy VPS
  -> internal nginx reverse proxy
  -> target VPS or internal machine
  -> target service

Note (2026-10-25, navi rei): the OpenVPN client terminating the tunnel is the ovpn VM (192.168.1.150, tun0 10.8.0.2), not the internal proxy VPS itself. Inbound tun0 traffic for tcp 80/443/25565 is DNAT'd on the ovpn VM to 192.168.1.183 (internal proxy VPS) with SNAT to 192.168.1.150.

Exposure

  • Exposure: public.
  • Public-facing entry: external-vps.
  • Internal routing: OpenVPN tunnel to internal-proxy-vps (via DNAT on the ovpn VM, 192.168.1.150).
  • Proxy layer: internal-nginx-proxy.
  • Main public web ports: 80, 443; plus tcp 25565 (Minecraft, nginx stream module).

Purpose

The route lets public traffic terminate on an external VPS and then pass into selected internal services through a VPN tunnel. The internal nginx proxy decides which target VPS or machine receives the request.

Known Public Domains

  • git.gnexus.space
  • hpanel.gnexus.space
  • jellyfin.gnexus.space
  • lytvak.gnexus.space
  • minecraft.gnexus.space
  • auth.gnexus.space
  • cloud.gnexus.space
  • files.gnexus.space
  • gnexus.space
  • navi.gnexus.space
  • synapse.gnexus.space
  • transmission.gnexus.space

Known Hosts

  • External VPS: external-vps (public IP 51.83.131.93, OVH, France — DNS target of *.gnexus.space).
  • Internal proxy VPS: internal-proxy-vps, VM ovpn_reserv, LAN address 192.168.1.183 (static via netplan inside the guest; was 192.168.1.226 until the 2026-10-16/17 blackout — .226 no longer responds, see 10-systems/servers/internal-proxy-vps.md), libvirt address 192.168.105.181/24.

Confirmed Enabled Proxy Targets

Domain Upstream
auth.gnexus.space http://192.168.1.167
cloud.gnexus.space http://192.168.1.152
files.gnexus.space http://192.168.1.157
git.gnexus.space http://192.168.1.156
gnexus.space http://192.168.1.151
hpanel.gnexus.space http://192.168.1.176:8000
jellyfin.gnexus.space http://192.168.1.153:8096
navi.gnexus.space http://192.168.1.168:8000
synapse.gnexus.space http://192.168.1.172:8013
transmission.gnexus.space http://192.168.1.154:3000

Stream-Level TCP Mapping (verified 2026-10-25)

Domain Upstream Mechanism
minecraft.gnexus.space tcp://192.168.1.160:25565 nginx stream module, /etc/nginx/stream-conf.d/minecraft.gnexus.space.conf on internal-proxy-vps

Available But Not Confirmed Enabled

These nginx site files exist on internal-proxy-vps, but they were not listed as enabled symlinks during the last check:

  • lytvak.gnexus.space -> http://192.168.1.167

(The former minecraft.gnexus.space entry pointed at the stale HTTP site file with dead upstream 192.168.1.218; the live mapping is the stream config above.)

Verification Notes

  • 2026-10-04 (navi rei): the external VPS catch-all forwards unknown *.gnexus.space subdomains to the internal proxy — verified by fetching a probe file from the default site of .226 through http://synapse.gnexus.space. HTTP-01 challenges therefore reach certbot on .226 (LE certificate issued for synapse.gnexus.space the same day). nginx site configs live in /etc/nginx/sites-available/ on internal-proxy-vps (root access required). Address note (2026-11-08, navi Eris): the internal proxy then lived on .226; since 2026-10-17 it is on .183 — historical mentions of .226 in older notes refer to that era.
  • 2026-10-04 (navi rei): added hpanel.gnexus.space → http://192.168.1.176:8000 (GHard Monitor panel). nginx site on internal-proxy-vps: port 80 → 301 to https, port 443 → TLS proxy with Host/X-Real-IP/X-Forwarded-For/X-Forwarded-Proto, proxy_buffering off, proxy_read_timeout 300s, proxy_http_version 1.1. LE certificate issued via certbot --nginx (valid until 2027-01-02). The /mcp location is blocked at the proxy (403): the panel has no auth yet (GHARDAUTH* unset, admin token empty), so the MCP endpoint must not be public. Verified externally: DNS → 51.83.131.93, health {"status":"ok"}, UI 200 over HTTP/2, HTTP→HTTPS 301.
  • 2026-10-25 (navi rei): Minecraft public path verified end-to-end. MC status ping via minecraft.gnexus.space:25565 and 51.83.131.93:25565 returned MOTD A Minecraft Server, version 26.2 (proto 776), 0/40 players; TCP connect from 3 external check-host.net nodes (BR/MD/RU) OK. Internal chain: ovpn VM (192.168.1.150) nft DNAT (tun0 tcp 80/443/25565 → 192.168.1.183, SNAT to 192.168.1.150; counters ~2.85M packets) → nginx stream on .183 (listen 25565 → 192.168.1.160:25565). Legacy leftovers left in place: disabled sites-available/minecraft.gnexus.space on .183 (stale .218 upstream), redundant socat minecraft-tcp-forward.service on the ovpn VM (→ 192.168.68.218:25565, mine's second NIC; receives no tun0 traffic — PREROUTING DNAT intercepts first).

Unknowns

  • OpenVPN public port.
  • SSH forwarding details to the internal alex VPS.
  • External VPS forwarding mechanism for 25565 (SSH credentials not in gnexus-creds, gntodo 506) — end-to-end verified working regardless.