angristan/wireguard-install — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a one file bash script that makes setting up a WireGuard VPN on a Linux server as easy as possible.

I want to run the script, answer simple questions, and have it install WireGuard, set up the server, turn on traffic forwarding, apply NAT so connected devices browse using the server IP, and create a ready to use client config file. It should support both IPv4 and IPv6 when available.

Please make it work on common Linux server distros like Ubuntu, Debian, Fedora, Arch, Alpine, AlmaLinux, Rocky Linux, Oracle Linux, and CentOS Stream. After the VPN is installed, running the same script again should show a simple menu to add a new client, remove an existing client, or uninstall the VPN.

Keep it safe, clear, and beginner friendly. Print helpful messages, validate inputs, and avoid breaking an existing server setup. Look up current WireGuard docs online if you need to.

Want more depth? Deep Reverse