Merge pull request #61 from joe-p/remove_src_valid_mark
Allow container to run wireguard without --privileged
This commit is contained in:
commit
745980bd66
@ -208,6 +208,9 @@ RUN echo "deb http://deb.debian.org/debian/ buster non-free" > /etc/apt/sources.
|
||||
/tmp/* \
|
||||
/var/tmp/*
|
||||
|
||||
# Remove src_valid_mark from wg-quick
|
||||
RUN sed -i /net\.ipv4\.conf\.all\.src_valid_mark/d `which wg-quick`
|
||||
|
||||
VOLUME /config /downloads
|
||||
|
||||
ADD openvpn/ /etc/openvpn/
|
||||
|
@ -24,13 +24,15 @@ The container is available from the Docker registry and this is the simplest way
|
||||
To run the container use this command, with additional parameters, please refer to the Variables, Volumes, and Ports section:
|
||||
|
||||
```
|
||||
$ docker run --privileged -d \
|
||||
$ docker run -d \
|
||||
-v /your/config/path/:/config \
|
||||
-v /your/downloads/path/:/downloads \
|
||||
-e "VPN_ENABLED=yes" \
|
||||
-e "VPN_TYPE=wireguard" \
|
||||
-e "LAN_NETWORK=192.168.0.0/24" \
|
||||
-p 8080:8080 \
|
||||
--cap-add NET_ADMIN \
|
||||
--sysctl "net.ipv4.conf.all.src_valid_mark=1" \
|
||||
--restart unless-stopped \
|
||||
dyonr/qbittorrentvpn
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user