NEW Check if your VPN is honest — a free subscription audit in 60 seconds →
← Back to library
Protocols Practice PRO

Selfsteal with nginx: public 443 and local TLS

The basic Linux setup has Xray on TCP/443, nginx serving the site on 127.0.0.1:9443, and HTTP/80 retained for ACME and HTTPS redirects. Preserve existing clients and check each segment separately.

Read the theory →

After configuration, the public domain will open a site with a valid certificate, while a VPN client with the correct parameters will establish a tunnel through the same TCP/443 port. Build the setup on one test node first. Check the existing architecture This setup requires Xray to reach the host's loopback interface. nginx runs either on the host or in a container using network_mode: host. Two separate bridge cont…

/

This guide is part of paid access

Get full access to unlock the text, configs and builder.

Unlock access →