1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-11-14 02:52:44 +00:00
vault-openvpn/example/living-example/README.md
2016-07-25 00:51:25 +02:00

1 KiB

Example: living-example

This example is the configuration I'm running for my personal VPN connection. Sure there are some modifications but that are customizations not relevant for this project.

How to set up the server?

  • Edit the cloud-init.yml file and set your own variables in /etc/script_env
  • Create a DigitalOcean droplet using this config
  • Replace the myserver.com part in the client.conf with your IP
  • Generate a server configuration and put it into /etc/openvpn/server.conf
# vault-openvpn --auto-revoke --pki-mountpoint luzifer_io server edda.openvpn.luzifer.io
server 10.231.0.0 255.255.255.0
route 10.231.0.0 255.255.255.0
[...]
  • Ensure the server has finished generating dh.pem and reload the config: systemctl restart openvpn
  • Generate a client configuration and put it into Tunnelblick or any other client software you like:
# vault-openvpn --auto-revoke --pki-mountpoint luzifer_io client knut-ws02.openvpn.luzifer.io
remote myserver.com 1194 udp

client
nobind
dev tap

<ca>
[...]