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
|
## Set-up
|
||||||
|
|
||||||
Create the file `rebuild.sh`.
|
Create a `rebuild.sh` from the given examples – either for [OpenVPN](#openvpn-rebuildsh) or
|
||||||
Change the settings according to your needs and run `./rebuild.sh` afterward.
|
[Wireguard](#wireguard-rebuildsh), depending on the desired VPN protocol.
|
||||||
The default username of the web interface is `admin`.
|
Change the settings according to your needs and run the corresponding script afterward.
|
||||||
The default password is `adminadmin`.
|
|
||||||
|
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.
|
Both can be changed in the web interface after setup.
|
||||||
|
|
||||||
### Environment-variables
|
### Environment-variables
|
||||||
@@ -60,7 +62,7 @@ There are some special variables to set.
|
|||||||
| `--sysctl` | configure systemctl |
|
| `--sysctl` | configure systemctl |
|
||||||
|
|
||||||
|
|
||||||
### rebuild.sh
|
### openvpn-rebuild.sh
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@@ -82,3 +84,24 @@ docker run --name qbittorrentvpn \
|
|||||||
--sysctl "net.ipv4.conf.all.src_valid_mark=1" \
|
--sysctl "net.ipv4.conf.all.src_valid_mark=1" \
|
||||||
-d dyonr/qbittorrentvpn
|
-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