1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-12-26 06:41:20 +00:00
vault-openvpn/example/living-example
2016-07-25 00:51:25 +02:00
..
client.conf initial version 2016-07-25 00:51:25 +02:00
cloud-init.yml initial version 2016-07-25 00:51:25 +02:00
README.md initial version 2016-07-25 00:51:25 +02:00
server.conf initial version 2016-07-25 00:51:25 +02:00

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>
[...]