Skip to content

Commit

Permalink
--device /dev/net/tun doesn't seems to be need it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Gutierrez committed May 17, 2021
1 parent d9cd847 commit fd42839
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fd42839

Please sign in to comment.