Forwarding Traffic through VPS proxy reddit / selfhosted ---------------------------------------------------------------------- Mqttes · 2023-12-08 08:16 Hi, ive (after a lot of confusion) successfully set up my homeserver using unraid, and have various docker containers and a vm running on it. As i am not home a lot, i want to acces them from outside, via a domain i have with subdomains for the various services (e.g. nextcloud , domain , xyz) with https and other protocols (not exactly sure what is required for parsec for example) Due to port-forwarding not being an option for me, i have rented a vps at ionos close to my home. I figured i would just set up a reverse proxy there that then redirects traffic to my server via tailscale, but i cannot really get that to work. Do you think this is a good idea or should i reroute the traffic with something like squid. Also, if anyone uses a Ionos vps, do you know why ports dont seem to remain open and close at random? In short, what is the best way to redirect traffic to my server without a static IP with a vps that has a static ip? ---------------------------------------------------------------------- HargoTheAlien · 2023-12-09 06:50 I do this for things I have selfhosted at my house. I have a VPS that I run as a Wireguard server and it connects to my Nginx reverse proxy at my house. Then I use UFW to for routing specific ports from the VPS across the Wireguard VPN to my Nginx proxy at my home. From there Nginx directs the traffic to the appropriate service I want to expose. Pretty simple setup and has been working for me for a couple of years now. ---------------------------------------------------------------------- Mqttes · 2023-12-09 09:40 I was Kind of worried about using wireguard without tailscale, seeing that with tailscale you have an easy overview of which devices are offline etc. Regardless, I haven't gotten it to work yet, do you know of a guide that outlines how to do this properly? ---------------------------------------------------------------------- HargoTheAlien · 2023-12-09 14:51 Here is a link to the guide I used. It is for using a VPS to proxy a home based email server, but I edited it to the ports I needed and removed all the SMTP, IMAP, etc... as I was not doing email. [https://www.linuxbabe.com/mail-server/mail-proxy- server](https://www.linuxbabe.com/mail-server/mail-proxy-server) ---------------------------------------------------------------------- Mqttes · 2023-12-09 15:14 Thank you ---------------------------------------------------------------------- NinjaFragrant7710 · 2023-12-10 10:46 You could have a look at Cloudflare Tunnels. You do not need to open/forward any ports and its free. Only requirement is to use cloudflare for your domain. ---------------------------------------------------------------------- Mqttes · 2023-12-10 10:48 Good ideas, but streaming video is against their tos and I have a jellyfin server ---------------------------------------------------------------------- Binary-Miner · 2023-12-10 21:04 Just wanted to add I have almost the same setup as Hargo, just configured it recently. DigitalOcean Ubuntu Server VPS, Wireguard tunnel to an on prem Ubuntu Server (running on a spare Raspberry Pi) which houses my nginx reverse proxy to forward ports to my server. Setup my A records on my domain name to use the IP of the VPS for subdomain name goodness. Although there's no guarantee my VPS IP won't change, it works for now ---------------------------------------------------------------------- Mqttes · 2023-12-11 10:34 Thanks, did it Mike that and finally got it working ---------------------------------------------------------------------- Sharp_Account8952 · 2023-12-18 22:49 This is limited to HTTP/HTTPS unless you download cloudflared client on all endpoints. For TCP and UDP the clients that wish to connect HAVE to download cloudflareds software. Basically cloudflared wraps the http in a websocket and creates an arbitrary TCP/UDP. Essentially mimicking a tcp/UDP connection. That’s why the clients are required to download cloudflared. Otherwise it’s a good suggestion.