1
0
Fork 0
mirror of https://github.com/Luzifer/vault-openvpn.git synced 2024-12-26 14:51:19 +00:00
vault-openvpn/example/living-example/README.md

31 lines
1 KiB
Markdown
Raw Normal View History

2016-07-24 22:51:25 +00: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`
```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>
[...]
```