Skip to content

Commit

Permalink
fix(setup): add now required --device /dev/net/run
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Oct 28, 2024
1 parent fbc589e commit 0ef8189
Show file tree
Hide file tree
Showing 29 changed files with 120 additions and 33 deletions.
2 changes: 1 addition & 1 deletion contributing/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ You can also do this through IDE such as [VS Code source control](https://code.v
1. Run it with:
```sh
docker run -it --rm --cap-add=NET_ADMIN \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \

This comment has been minimized.

Copy link
@NoobOfAll

NoobOfAll Nov 3, 2024

It should be /dev/net/tun , basically a type of run

-e VPN_SERVICE_PROVIDER=someprovider \
-e VPN_TYPE=openvpn \
-e OPENVPN_USER=test -e OPENVPN_PASSWORD=test \
Expand Down
1 change: 1 addition & 0 deletions setup/inter-containers-networking.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ The current workaround is to use an IP address to reach `B`:
services:
gluetun:
image: qmcgaw/gluetun
# ...
networks:
gluetun_network:
Expand Down
2 changes: 1 addition & 1 deletion setup/openvpn-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ In the following we assume your custom openvpn configuration file is named `cust
1. Run the container for example with:

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=custom -e OPENVPN_CUSTOM_CONFIG=/gluetun/custom.conf -v /yourpath/custom.conf:/gluetun/custom.conf:ro -e OPENVPN_USER="youruser" -e OPENVPN_PASSWORD="yourpassword" qmcgaw/gluetun
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run -e VPN_SERVICE_PROVIDER=custom -e OPENVPN_CUSTOM_CONFIG=/gluetun/custom.conf -v /yourpath/custom.conf:/gluetun/custom.conf:ro -e OPENVPN_USER="youruser" -e OPENVPN_PASSWORD="yourpassword" qmcgaw/gluetun

This comment has been minimized.

Copy link
@NoobOfAll

NoobOfAll Nov 3, 2024

It should be /dev/net/tun , basically a type of run

```

## Implicit behavior
Expand Down
2 changes: 2 additions & 0 deletions setup/port-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ services:
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- OPENVPN_USER=js89ds7
- OPENVPN_PASSWORD=8fd9s239G
Expand Down
10 changes: 8 additions & 2 deletions setup/providers/airvpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
### Wireguard

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=airvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=airvpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=yCbHtKAgJASnJs2S/aZsjag9Fy04csmR4qDUDkJgX2c= \
-e WIREGUARD_PRESHARED_KEY=yCbHtKAgJASnJs2S/aZsjag9Fy04csmR4qDUDkJgX2c= \
Expand All @@ -20,6 +21,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=airvpn
- VPN_TYPE=wireguard
Expand All @@ -37,7 +40,8 @@ services:
1. [Setup your client certificate](../advanced/openvpn-client-certificate.md)

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=airvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=airvpn \
-v /yourpath:/gluetun \
-e SERVER_COUNTRIES=Netherlands \
qmcgaw/gluetun
Expand All @@ -50,6 +54,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=airvpn
- SERVER_COUNTRIES=Netherlands
Expand Down
4 changes: 4 additions & 0 deletions setup/providers/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ./yourovpnconfig.conf:/gluetun/custom.conf:ro
environment:
Expand Down Expand Up @@ -50,6 +52,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=custom
- VPN_TYPE=wireguard
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/cyberghost.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
1. [Setup your client certificate](../advanced/openvpn-client-certificate.md)

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=cyberghost \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=cyberghost \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-v /yourpath:/gluetun \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
Expand All @@ -19,6 +20,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=cyberghost
- OPENVPN_USER=abc
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/expressvpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## TLDR

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=expressvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=expressvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```
Expand All @@ -15,6 +16,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=expressvpn
- OPENVPN_USER=abc
Expand Down
8 changes: 6 additions & 2 deletions setup/providers/fastestvpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

```sh
# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=fastestvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=fastestvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```

```sh
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=fastestvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=fastestvpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e WIREGUARD_ADDRESSES="10.64.222.21/32" \
Expand All @@ -25,6 +27,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=fastestvpn
- VPN_TYPE=wireguard
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/hidemyass.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## TLDR

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=hidemyass \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=hidemyass \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```
Expand All @@ -15,6 +16,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=hidemyass
- OPENVPN_USER=abc
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/ipvanish.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## TLDR

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=ipvanish \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=ipvanish \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```
Expand All @@ -15,6 +16,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=ipvanish
- OPENVPN_USER=abc
Expand Down
8 changes: 6 additions & 2 deletions setup/providers/ivpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

```sh
# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=ivpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=ivpn \
-e VPN_TYPE=openvpn -e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_CITIES=amsterdam qmcgaw/gluetun
```

```sh
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=ivpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=ivpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e WIREGUARD_ADDRESSES="10.64.222.21/32" \
Expand All @@ -25,6 +27,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=ivpn
- VPN_TYPE=wireguard
Expand Down
8 changes: 6 additions & 2 deletions setup/providers/mullvad.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

```sh
# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=mullvad \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=mullvad \
-e VPN_TYPE=openvpn -e OPENVPN_USER=1355131650462193 \
-e SERVER_CITIES=amsterdam qmcgaw/gluetun
```

```sh
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=mullvad \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=mullvad \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e WIREGUARD_ADDRESSES="10.64.222.21/32" \
Expand All @@ -25,6 +27,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
Expand Down
8 changes: 6 additions & 2 deletions setup/providers/nordvpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

```sh
# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=nordvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=nordvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```
Expand All @@ -13,7 +14,8 @@ docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=nordvpn \

```sh
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=nordvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=nordvpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
Expand All @@ -28,6 +30,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=nordvpn
- VPN_TYPE=openvpn # or wireguard
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/perfect-privacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## TLDR

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER="perfect privacy" \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER="perfect privacy" \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_CITIES=Amsterdam qmcgaw/gluetun
```
Expand All @@ -15,6 +16,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=perfect privacy
- OPENVPN_USER=abc
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/privado.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## TLDR

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=privado \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=privado \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```
Expand All @@ -15,6 +16,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=privado
- OPENVPN_USER=abc
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/private-internet-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## OpenVPN

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER="private internet access" \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER="private internet access" \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-v /yourpath/gluetun:/gluetun \
-e SERVER_REGIONS=Netherlands qmcgaw/gluetun
Expand All @@ -16,6 +17,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ./gluetun:/gluetun
environment:
Expand Down
5 changes: 4 additions & 1 deletion setup/providers/privatevpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
For OpenVPN:

```sh
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=privatevpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=privatevpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```
Expand All @@ -19,6 +20,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=privatevpn
- OPENVPN_USER=abc
Expand Down
8 changes: 6 additions & 2 deletions setup/providers/protonvpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@

```sh
# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=protonvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=protonvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
```

```sh
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=protonvpn \
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/run \
-e VPN_SERVICE_PROVIDER=protonvpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
Expand All @@ -24,6 +26,8 @@ services:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- VPN_TYPE=wireguard
Expand Down
Loading

0 comments on commit 0ef8189

Please sign in to comment.