I have a nextcloud instance being hosted from my home network. The URL associated with it points directly at my home’s IP. I don’t want to host the instance on a VPS because disk space is expensive. So, instead, I want to point the URL at the VPS, and then somehow route the connection to my home’s nextcloud instance without leaking my home’s ip.

How might I go about doing this? Can this be achieved with nginx?

EDIT: Actually, not leaking my home’s IP is not essential. It is acceptable if it is possible to determine the IP with some effort. What I really want is to be able to host multiple websites with my single home IP without those websites being obviously connected, and to avoid automatic bots constantly looking for vulnerabilities in my home network.

  •  Max   ( @Max@mander.xyz ) OP
    link
    fedilink
    English
    11 year ago

    Thank you!

    By using the VPN connection, you wouldn’t even need to open a port on your home network which is a great starting point for security as well.

    Hmm, what do you mean with this? I would need to at least open one port to route the connection to the nextcloud instance in my home network - right?

    • Only the host acting as the VPN “server” needs to have an open port. In my setup, I made the VPS the server and my home server a client. Thus I had no open ports on my home network, only on the VPS.