This script allows you to install a VPN and forward the ports of the connected mashine. Before using please watch the tutorial on this channel:
https://www.youtube.com/channel/UCW4LHmdX_qIE2lBT0_DW3VQ
Run this command to install and configure:
curl -o portVPN1.sh https://raw.githubusercontent.com/LinuXimple/openvpn-port-forwarding/main/portVPN1.sh && sudo bash portVPN1.sh
curl -o portVPNclient.sh https://raw.githubusercontent.com/LinuXimple/openvpn-port-forwarding/main/portVPNclient.sh && sudo bash portVPNclient.sh
This is designed to run on Ubuntu server 22.04, but it should run on any Debian-based distro
Please read the script before running it. Run it on a dedicated machine because it may interfere with other services. There is no automated way to uninstall.