Hey There
This repo a couple of scripts (and those are perfect manuals at the same time) that lets you deploy a VPN server in a matter of minutes.
It requires a fresh Ubuntu 16.04
You're welcome to browse the .sh
files and hack your own out of those, or just use the commands below to quickly get the job done.
This script would uuidgen a PSK and print it out to console, where you can copy and hit enter to continue.
After you ssh your_vpn_machine
, just run this:
curl -L https://raw.githubusercontent.com/truemetal/ikev2_vpn/master/ikev2-deploy-psk.sh -o /tmp/deploy.sh && chmod +x /tmp/deploy.sh && /tmp/deploy.sh
The .pem files would be in ~/vpn-certs/
You can add your users to /etc/ipsec.secrets
, make sure to reboot afterwards
After you ssh your_vpn_machine
, just run this:
curl -L https://raw.githubusercontent.com/truemetal/ikev2_vpn/master/ikev2-deploy-certs.sh -o /tmp/deploy.sh && chmod +x /tmp/deploy.sh && /tmp/deploy.sh
Please feel free to open an issue or drop me a pull request.
Bogdan (Dan) Pashchenko https://ios-engineer.com