forked from dperson/openvpn-client
-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--device /dev/net/tun doesn't seems to be need it.
- Loading branch information
Julio Gutierrez
committed
May 17, 2021
1 parent
d9cd847
commit fd42839
Showing
1 changed file
with
2 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ Official `NordVPN` client in a docker container; it makes routing traffic throug | |
|
||
This container was designed to be started first to provide a connection to other containers (using `--net=container:vpn`, see below *Starting an NordVPN client instance*). | ||
|
||
**NOTE**: More than the basic privileges are needed for NordVPN. With docker 1.2 or newer you can use the `--cap-add=NET_ADMIN` and `--device /dev/net/tun` options. Earlier versions, or with fig, and you'll have to run it in privileged mode. | ||
**NOTE**: More than the basic privileges are needed for NordVPN. With docker 1.2 or newer you can use the `--cap-add=NET_ADMIN` option. Earlier versions, or with fig, and you'll have to run it in privileged mode. | ||
|
||
## Starting an NordVPN instance | ||
|
||
|
@@ -57,7 +57,7 @@ sudo docker run -it --name web -p 80:80 -p 443:443 --link vpn:bit \ | |
|
||
The environment variable NETWORK must be your local network that you would connect to the server running the docker containers on. Running the following on your docker host should give you the correct network: `ip route | awk '!/ (docker0|br-)/ && /src/ {print $1}'` | ||
|
||
docker run -ti --cap-add=NET_ADMIN --device /dev/net/tun --name vpn \ | ||
docker run -ti --cap-add=NET_ADMIN --name vpn \ | ||
-p 8080:80 -e NETWORK=192.168.1.0/24 \ | ||
-e [email protected] -e PASS='pas$word' -d ghcr.io/bubuntux/nordvpn | ||
|
||
|
@@ -75,8 +75,6 @@ services: | |
image: ghcr.io/bubuntux/nordvpn | ||
cap_add: | ||
- NET_ADMIN # Required | ||
devices: | ||
- /dev/net/tun # Required | ||
environment: # Review https://github.com/bubuntux/nordvpn#environment-variables | ||
- [email protected] # Required | ||
- "PASS=pas$word" # Required | ||
|
@@ -120,8 +118,6 @@ services: | |
network_mode: bridge # Required | ||
cap_add: | ||
- NET_ADMIN # Required | ||
devices: | ||
- /dev/net/tun # Required | ||
environment: # Review https://github.com/bubuntux/nordvpn#environment-variables | ||
- [email protected] # Required | ||
- "PASS=pas$word" # Required | ||
|