Last active
January 17, 2020 14:27
-
-
Save Brandawg93/1fbb663507faeb75f4e4004fca3852d6 to your computer and use it in GitHub Desktop.
Secure Unbound using Docker and NordVPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
unbound: | |
image: mvance/unbound-rpi:latest #use 'mvance/unbound:latest' if not on a raspberry pi | |
container_name: unbound | |
network_mode: service:vpn | |
restart: unless-stopped | |
vpn: | |
image: bubuntux/nordvpn | |
container_name: nordvpn | |
cap_add: | |
- net_admin | |
devices: | |
- /dev/net/tun | |
ports: | |
- 5353:53/tcp | |
- 5353:53/udp | |
dns: 1.1.1.1 | |
environment: | |
- USER=<[email protected]> | |
- PASS=<your_password> | |
- COUNTRY=United_States | |
- PROTOCOL=TCP | |
- CATEGORY=P2P | |
- NETWORK=192.168.1.0/24 #run this to find NETWORK: ip route | awk '!/ (docker0|br-)/ && /src/ {print $1}' | |
- OPENVPN_OPTS=--pull-filter ignore "ping-restart" --ping-exit 180 | |
- TZ=America/New_York | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment