mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-22 10:34:57 +00:00
initial commit. working, but needs more features
This commit is contained in:
commit
4eaaae0ec1
34
Dockerfile
Normal file
34
Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
# Transmission and OpenVPN
|
||||
#
|
||||
# Version 0.9
|
||||
|
||||
FROM ubuntu:14.04
|
||||
MAINTAINER Kristian Haugene
|
||||
|
||||
VOLUME /data
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install software-properties-common
|
||||
RUN add-apt-repository ppa:transmissionbt/ppa
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y transmission-cli
|
||||
RUN apt-get install -y transmission-common
|
||||
RUN apt-get install -y transmission-daemon
|
||||
RUN apt-get install -y supervisor
|
||||
RUN apt-get install -y openvpn
|
||||
RUN mkdir -p /var/log/supervisor
|
||||
|
||||
# Not generally in use. But nice when starting up container interactively
|
||||
RUN apt-get install -y screen
|
||||
|
||||
ADD piaconfig/config.ovpn /etc/openvpn/config.ovpn
|
||||
ADD piaconfig/credentials.txt /etc/openvpn/credentials.txt
|
||||
ADD piaconfig/ca.crt /etc/openvpn/ca.crt
|
||||
ADD piaconfig/crl.pem /etc/openvpn/crl.pem
|
||||
ADD startOpenVPN.sh /etc/openvpn/start.sh
|
||||
ADD transmissionSettings.json /etc/transmission-daemon/settings.json
|
||||
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
EXPOSE 9091
|
||||
|
||||
CMD ["/usr/bin/supervisord"]
|
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
PrivateInternetAccess OpenVPN - Transmission
|
||||
===
|
||||
|
||||
# Coming soon
|
||||
Will document usage later
|
18
piaconfig/CA North York.ovpn
Normal file
18
piaconfig/CA North York.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote ca.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/CA Toronto.ovpn
Normal file
18
piaconfig/CA Toronto.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote ca-toronto.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/France.ovpn
Normal file
18
piaconfig/France.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote france.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/Germany.ovpn
Normal file
18
piaconfig/Germany.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote germany.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/Hong Kong.ovpn
Normal file
18
piaconfig/Hong Kong.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote hk.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/Netherlands.ovpn
Normal file
18
piaconfig/Netherlands.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote nl.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/Romania.ovpn
Normal file
18
piaconfig/Romania.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote ro.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/Sweden.ovpn
Normal file
18
piaconfig/Sweden.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote sweden.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/Switzerland.ovpn
Normal file
18
piaconfig/Switzerland.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote swiss.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/UK London.ovpn
Normal file
18
piaconfig/UK London.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote uk-london.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/UK Southampton.ovpn
Normal file
18
piaconfig/UK Southampton.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote uk-southampton.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/US California.ovpn
Normal file
18
piaconfig/US California.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-california.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/US East.ovpn
Normal file
18
piaconfig/US East.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-east.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/US Florida.ovpn
Normal file
18
piaconfig/US Florida.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-florida.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/US Midwest.ovpn
Normal file
18
piaconfig/US Midwest.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-midwest.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/US Seattle.ovpn
Normal file
18
piaconfig/US Seattle.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-seattle.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/US Texas.ovpn
Normal file
18
piaconfig/US Texas.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-texas.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
18
piaconfig/US West.ovpn
Normal file
18
piaconfig/US West.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote us-west.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
23
piaconfig/ca.crt
Normal file
23
piaconfig/ca.crt
Normal file
@ -0,0 +1,23 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIID2jCCA0OgAwIBAgIJAOtqMkR2JSXrMA0GCSqGSIb3DQEBBQUAMIGlMQswCQYD
|
||||
VQQGEwJVUzELMAkGA1UECBMCT0gxETAPBgNVBAcTCENvbHVtYnVzMSAwHgYDVQQK
|
||||
ExdQcml2YXRlIEludGVybmV0IEFjY2VzczEjMCEGA1UEAxMaUHJpdmF0ZSBJbnRl
|
||||
cm5ldCBBY2Nlc3MgQ0ExLzAtBgkqhkiG9w0BCQEWIHNlY3Vy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i1jAS9tNP2E+DCZiWcM/5Y7/XKS/6KvrPQT90nM5klK9LfNvS+kFabMmMBe2
|
||||
llQlzAzFiIfabACTQn84QLeLOActKhK8hFJy2Gy6
|
||||
-----END CERTIFICATE-----
|
18
piaconfig/config.ovpn
Normal file
18
piaconfig/config.ovpn
Normal file
@ -0,0 +1,18 @@
|
||||
client
|
||||
dev tun
|
||||
proto udp
|
||||
remote nl.privateinternetaccess.com 1194
|
||||
resolv-retry infinite
|
||||
nobind
|
||||
persist-key
|
||||
persist-tun
|
||||
ca ca.crt
|
||||
tls-client
|
||||
remote-cert-tls server
|
||||
auth-user-pass credentials.txt
|
||||
comp-lzo
|
||||
verb 1
|
||||
reneg-sec 0
|
||||
crl-verify crl.pem
|
||||
|
||||
|
2
piaconfig/credentials.txt
Normal file
2
piaconfig/credentials.txt
Normal file
@ -0,0 +1,2 @@
|
||||
your-pia-username
|
||||
your-pia-password
|
11
piaconfig/crl.pem
Normal file
11
piaconfig/crl.pem
Normal file
@ -0,0 +1,11 @@
|
||||
-----BEGIN X509 CRL-----
|
||||
MIIBgTCB6zANBgkqhkiG9w0BAQ0FADCBpTELMAkGA1UEBhMCVVMxCzAJBgNVBAgT
|
||||
Ak9IMREwDwYDVQQHEwhDb2x1bWJ1czEgMB4GA1UEChMXUHJpdmF0ZSBJbnRlcm5l
|
||||
dCBBY2Nlc3MxIzAhBgNVBAMTGlByaXZhdGUgSW50ZXJuZXQgQWNjZXNzIENBMS8w
|
||||
LQYJKoZIhvcNAQkBFiBzZWN1cmVAcHJpdmF0ZWludGVybmV0YWNjZXNzLmNvbRcN
|
||||
MTQwNTA3MTgwOTE5WhcNMjQwNTA3MTgwOTE5WjAUMBICAQEXDTE0MDQyODIyMDMy
|
||||
NVowDQYJKoZIhvcNAQENBQADgYEA4EA2wjio+BxYFui1mBj5gmypxUQyA7xQJ3Vo
|
||||
cwWSllQKHpfmQ7fwyTL22uc21W9hM4geD1FwoXDUEraQjfyBJOxJwc6GOhTN2wHv
|
||||
3vplKjdbXmxxAfjduBvlIB0a6qSz1L6hwZJrZUGimlWS9NQrmYaKLbtG07n2UyA+
|
||||
mqz5bEc=
|
||||
-----END X509 CRL-----
|
4
startOpenVPN.sh
Executable file
4
startOpenVPN.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /etc/openvpn/
|
||||
openvpn --config config.ovpn
|
8
supervisord.conf
Normal file
8
supervisord.conf
Normal file
@ -0,0 +1,8 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:openvpn]
|
||||
command=/etc/openvpn/start.sh
|
||||
|
||||
[program:transmissiond]
|
||||
command=/usr/bin/transmission-daemon -f -g /etc/transmission-daemon/
|
74
transmissionSettings.json
Normal file
74
transmissionSettings.json
Normal file
@ -0,0 +1,74 @@
|
||||
{
|
||||
"alt-speed-down": 50,
|
||||
"alt-speed-enabled": false,
|
||||
"alt-speed-time-begin": 540,
|
||||
"alt-speed-time-day": 127,
|
||||
"alt-speed-time-enabled": false,
|
||||
"alt-speed-time-end": 1020,
|
||||
"alt-speed-up": 50,
|
||||
"bind-address-ipv4": "0.0.0.0",
|
||||
"bind-address-ipv6": "::",
|
||||
"blocklist-enabled": false,
|
||||
"blocklist-url": "http://www.example.com/blocklist",
|
||||
"cache-size-mb": 4,
|
||||
"dht-enabled": true,
|
||||
"download-dir": "/data/completed",
|
||||
"download-limit": 100,
|
||||
"download-limit-enabled": 0,
|
||||
"download-queue-enabled": true,
|
||||
"download-queue-size": 5,
|
||||
"encryption": 1,
|
||||
"idle-seeding-limit": 30,
|
||||
"idle-seeding-limit-enabled": false,
|
||||
"incomplete-dir": "/data/incomplete",
|
||||
"incomplete-dir-enabled": true,
|
||||
"lpd-enabled": false,
|
||||
"max-peers-global": 200,
|
||||
"message-level": 2,
|
||||
"peer-congestion-algorithm": "",
|
||||
"peer-id-ttl-hours": 6,
|
||||
"peer-limit-global": 200,
|
||||
"peer-limit-per-torrent": 50,
|
||||
"peer-port": 51413,
|
||||
"peer-port-random-high": 65535,
|
||||
"peer-port-random-low": 49152,
|
||||
"peer-port-random-on-start": false,
|
||||
"peer-socket-tos": "default",
|
||||
"pex-enabled": true,
|
||||
"port-forwarding-enabled": false,
|
||||
"preallocation": 1,
|
||||
"prefetch-enabled": 1,
|
||||
"queue-stalled-enabled": true,
|
||||
"queue-stalled-minutes": 30,
|
||||
"ratio-limit": 2,
|
||||
"ratio-limit-enabled": false,
|
||||
"rename-partial-files": true,
|
||||
"rpc-authentication-required": false,
|
||||
"rpc-bind-address": "0.0.0.0",
|
||||
"rpc-enabled": true,
|
||||
"rpc-password": "{425745bf3914984c2abcc013276f40e8fa5d84ecC5.df8oF",
|
||||
"rpc-port": 9091,
|
||||
"rpc-url": "/transmission/",
|
||||
"rpc-username": "username",
|
||||
"rpc-whitelist": "127.0.0.1",
|
||||
"rpc-whitelist-enabled": false,
|
||||
"scrape-paused-torrents-enabled": true,
|
||||
"script-torrent-done-enabled": false,
|
||||
"script-torrent-done-filename": "",
|
||||
"seed-queue-enabled": false,
|
||||
"seed-queue-size": 10,
|
||||
"speed-limit-down": 100,
|
||||
"speed-limit-down-enabled": false,
|
||||
"speed-limit-up": 100,
|
||||
"speed-limit-up-enabled": false,
|
||||
"start-added-torrents": true,
|
||||
"trash-original-torrent-files": false,
|
||||
"umask": 2,
|
||||
"upload-limit": 100,
|
||||
"upload-limit-enabled": 0,
|
||||
"upload-slots-per-torrent": 14,
|
||||
"utp-enabled": true,
|
||||
"watch-dir": "/data/watch",
|
||||
"watch-dir-enabled": true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user