These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # OpenVPN
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [kylemanna](https://hub.docker.com/r/kylemanna/openvpn).
  5. #### Volumes
  6. Set the following volumes with the -v tag.
  7. | Volume-Name | Container mount | Description |
  8. | ----------- | --------------- | ------------------------ |
  9. | `ovpn` | `/etc/openvpn` | storage for openvpn data |
  10. #### Ports
  11. Set the following ports with the -p tag.
  12. | Container Port | Recommended outside port | Protocol | Description |
  13. | -------------- | ------------------------ | -------- | ------------ |
  14. | `1194` | `1194` | UDP | openvpn port |
  15. #### Additional
  16. There are some special variables to set.
  17. | Flag | Usage |
  18. | ----------- | ---------------------- |
  19. | `--cap-add` | add linux capabilities |
  20. #### Rebuild
  21. ```shell
  22. #!/bin/sh
  23. docker stop openvpn
  24. docker rm openvpn
  25. docker pull kylemanna/openvpn
  26. docker run --name openvpn \
  27. --restart unless-stopped \
  28. --cap-add=NET_ADMIN \
  29. -p 1194:1194/udp \
  30. -v ovpn:/etc/openvpn \
  31. -d kylemanna/openvpn
  32. ```