angristan/openvpn-install ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple bash installer that sets up and manages an OpenVPN server on common Linux servers like Debian, Ubuntu, Fedora, CentOS, Arch, and similar systems.
I want it to be easy to run on a fresh VPS as root, with an interactive menu for normal users and a command line mode for automation. It should install OpenVPN, configure the server, create client profiles, list clients, revoke them, renew certificates, and cleanly uninstall everything if needed.
Please make it handle firewall and forwarding setup, support both TCP and UDP, and let me choose IPv4, IPv6, or both. It should generate downloadable .ovpn files, support password protected client keys, and avoid DNS leaks where possible. If you need to check current OpenVPN docs or distro packaging details, look them up online.
Keep the script practical, safe, and easy to use, with sensible defaults and clear output.
Are you gonna build this?
make sure you review the code using coderabbit