I have a few things that I host from my house. I have read that it’s better practice to route stuff through a VPS to not expose your home IP.

Here’s what I’ve done so far: VPN setup on VPS with successful routing of containers. Confirmed by using a CLI IP check within the container which returned the VPS IP. I used PiVPN because I know it and it’s easy to set up.

Where I got stuck: I pointed Nginx to the supposed IP:port of the connection, but couldn’t get it to load.

What should I do next?

  • Oisteink@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    12 hours ago

    By using its ip:port

    If you have homeserver1 running stuff and that’s connected to the vps through vpn you make sure your homeserver1 service that you want to proxy runs on the homeserver1’s vpn ip.

    For docker this is done by specifying that ip when you expose ports or use 0.0.0.0

    I assume you can already ping homeserver1 from the vps by using the vpn address of homeserver1