mirror of
https://github.com/tiyn/wiki.git
synced 2026-07-26 04:21:34 +02:00
qbittorrent: Added Wireguard Setup
This commit is contained in:
@@ -8,10 +8,12 @@ The official container and documentation was made by
|
||||
|
||||
## Set-up
|
||||
|
||||
Create the file `rebuild.sh`.
|
||||
Change the settings according to your needs and run `./rebuild.sh` afterward.
|
||||
The default username of the web interface is `admin`.
|
||||
The default password is `adminadmin`.
|
||||
Create a `rebuild.sh` from the given examples – either for [OpenVPN](#openvpn-rebuildsh) or
|
||||
[Wireguard](#wireguard-rebuildsh), depending on the desired VPN protocol.
|
||||
Change the settings according to your needs and run the corresponding script afterward.
|
||||
|
||||
For both variants, the default username of the web interface is `admin` and the default password is
|
||||
`adminadmin`.
|
||||
Both can be changed in the web interface after setup.
|
||||
|
||||
### Environment-variables
|
||||
@@ -60,7 +62,7 @@ There are some special variables to set.
|
||||
| `--sysctl` | configure systemctl |
|
||||
|
||||
|
||||
### rebuild.sh
|
||||
### openvpn-rebuild.sh
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
@@ -82,3 +84,24 @@ docker run --name qbittorrentvpn \
|
||||
--sysctl "net.ipv4.conf.all.src_valid_mark=1" \
|
||||
-d dyonr/qbittorrentvpn
|
||||
```
|
||||
|
||||
### wireguard-rebuild.sh
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
docker stop qbittorrentvpn
|
||||
docker rm qbittorrentvpn
|
||||
docker pull dyonr/qbittorrentvpn
|
||||
docker run --name qbittorrentvpn \
|
||||
--restart unless-stopped \
|
||||
--cap-add NET_ADMIN \
|
||||
--sysctl "net.ipv4.conf.all.src_valid_mark=1" \
|
||||
--sysctl "net.ipv6.conf.all.disable_ipv6=0" \
|
||||
-p 9091:8080 \
|
||||
-v qbittorrentvpn_config:/config \
|
||||
-v qbittorrentvpn_data:/downloads \
|
||||
-e "VPN_ENABLED=yes" \
|
||||
-e "VPN_TYPE=wireguard" \
|
||||
-e "LAN_NETWORK=192.168.0.0/16" \
|
||||
-d dyonr/qbittorrentvpn
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user