I am running an self-hosted openvpn server with few clients. I want to expose 1 client to the external network, how can I do that? I see similar option in paid admin panel, but I'm using the free version which offers only a command line interface (CLI). If the complete exposure of a client is not possible, then I want to forward the ports without manually changing iptables each and every time.
Current structure is something like that:
+------------+
| |
| Client 1 +--------------------+
| | | +----------------------+
+------------+ v | |
Internet <----------> Self-Hosted |
+------------+ ^ | OpenVPN Server |
| | | | Community Edition |
| Client 2 +--------------------+ | |
| | +----------------------+
+------------+
Now I want to expose the client 2 to the public network (internet) through the VPN server. I can do that manually exposing ports using IP tables. But if a new port need a new rule in IP table, which I have to put manually. I am not very proficient with IP tables or openvpn administration, also exposing port manually is not effective enough (though may good for security perspective).
I want to expose the client 2 through the vpn server for once and all. How can I achieve that goal?