• We had to restore from a backup today after a failed software update. Backup was from 0000 EDT and restored it at 0800 EDT so we lost about 8hrs. Today is 07/20/2024. More info here.

OpenVPN route client traffic to server


New Member
May 17, 2022
Reaction score
Good day,
I have my home server (on which I test my systems) freshly set up with Debian 11 today, and would like others to be able to connect to it. Of course I don't want my IPv4 to be shared, so I thought of the following solution: buy a cheap vServer and forward all requests to it. Theoretically, you could set up a VPN (with OpenVPN) and share the ports from the VPN client (my home server). Now I have the problem that I do not know exactly how to set this configuration.

Kind regards

You don't have to do such a complicated setup, you could just use Cloudflare to reverse proxy to your systems where you don't want your public ip to be exposed. That would look something like this.
If you would want to do that with an openvpn server you would have to have a public ip for every host on your home network and that each host connects to your openvpn server.

So that you could create firewall rules on your openvpn server based on the destintation(the public ip's) and port that it is correctly forwarded/natted to the correct system on your home netwerk with the forward adress being the correct vpn/private ip of that particular system. That would maybe look something like this as in logic of firewall rules.
if dest == and port == 8080
       forward/nat 8080
elif dest == and port == 9090
       forward/nat 9090
The above logic example it to show that you can use different port numbers but you could just as well only do it with 443 like this.
if dest == and port == 443
       forward/nat 443
elif dest == and port == 443
       forward/nat 443
However you will have an easier time and it will be less effort if you used Cloudflare as a reverse proxy.
Last edited:

Members online