1
0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-09-19 17:42:56 +00:00
vault-openvpn/example/living-example/README.md
2016-07-25 00:51:25 +02:00

31 lines
1.0 KiB
Markdown

# 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`
```bash
# 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:
```bash
# vault-openvpn --auto-revoke --pki-mountpoint luzifer_io client knut-ws02.openvpn.luzifer.io
remote myserver.com 1194 udp
client
nobind
dev tap
<ca>
[...]
```