https://github.com/makeomatic/openvpn
docker-compose based openvpn & configurations
https://github.com/makeomatic/openvpn
Last synced: about 1 year ago
JSON representation
docker-compose based openvpn & configurations
- Host: GitHub
- URL: https://github.com/makeomatic/openvpn
- Owner: makeomatic
- Created: 2018-04-24T17:31:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T20:52:41.000Z (almost 8 years ago)
- Last Synced: 2025-01-05T00:23:54.793Z (about 1 year ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openvpn docker configuration
Uses https://github.com/kylemanna/docker-openvpn as underlaying container provider
## Core OS setup
For use on core os we need to do pre-setup
1. Install docker-compose
```sh
sudo su -
mkdir -p /opt/bin
DOCKER_VER=1.21.0
curl -L "https://github.com/docker/compose/releases/download/$(DOCKER_VER)/docker-compose-$(uname -s)-$(uname -m)" -o /opt/bin/docker-compose
```
2. Populate .env file with your data, sample configuration is included
3. `docker-compose up -d` - launches your service
4. Create identity via `USERNAME=test ./scripts/add-client.sh`
5. transfer `./data/clients/test.ovpn` to your machine & client of choice & enjoy vpn
6. remove identity via `USERNAME=test ./scripts/remove-client.sh`
7. Transfer .ovpn configuration to your compute, example:
```sh
./scripts/transfer.sh test > ./config.ovpn
```
8. Install tunnelblick, for instance `brew install tunnelblick` or `brew cask install tunnelblick`
9. Install ovpn configuration on your machine, for mac its as easy as `open ./config.ovpn`
10. Adjust settings of tunnelblick:
* checkbox [ ] proxy all ipv4 traffic
* configuration -> advanced -> [ ] allow changes to manually-set network settings