Added windscribe support for deluge and updated nginx authelia config
This commit is contained in:
parent
228a29acfe
commit
88f233134d
6 changed files with 126 additions and 3 deletions
7
states/roles/maintain/deluge/firewalld-direct.xml
Normal file
7
states/roles/maintain/deluge/firewalld-direct.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<direct>
|
||||||
|
<rule ipv="ipv4" table="filter" chain="OUTPUT" priority="0">-m owner --gid-owner deluge -o lo -j ACCEPT</rule>
|
||||||
|
<rule ipv="ipv4" table="filter" chain="OUTPUT" priority="0">-m owner --uid-owner deluge -p tcp --dport 53 -j ACCEPT</rule>
|
||||||
|
<rule ipv="ipv4" table="filter" chain="OUTPUT" priority="0">-m owner --uid-owner deluge -p udp --dport 53 -j ACCEPT</rule>
|
||||||
|
<rule ipv="ipv4" table="filter" chain="OUTPUT" priority="1">-m owner --gid-owner deluge '!' -o tun0 -j REJECT</rule>
|
||||||
|
</direct>
|
|
@ -5,6 +5,9 @@ deluge:
|
||||||
python2-mako:
|
python2-mako:
|
||||||
pkg.installed
|
pkg.installed
|
||||||
|
|
||||||
|
deluge-vpn-pkg:
|
||||||
|
pkg.installed:
|
||||||
|
- name: openvpn
|
||||||
|
|
||||||
#This should be handled by backup and restore states
|
#This should be handled by backup and restore states
|
||||||
#{% if not salt['file.directory_exists']('/srv/deluge/.config/deluge') %}
|
#{% if not salt['file.directory_exists']('/srv/deluge/.config/deluge') %}
|
||||||
|
@ -24,3 +27,39 @@ deluged:
|
||||||
deluge-web:
|
deluge-web:
|
||||||
service.running:
|
service.running:
|
||||||
- enable: true
|
- enable: true
|
||||||
|
|
||||||
|
/etc/firewalld/direct.xml:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://roles/maintain/deluge/firewalld-direct.xml
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 644
|
||||||
|
|
||||||
|
/etc/openvpn/client/windscribe-denmark.conf:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://roles/maintain/deluge/windscribe-denmark.conf
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 644
|
||||||
|
|
||||||
|
/etc/openvpn/client/windscribe.login:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://secure/files/windscribe.login
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 644
|
||||||
|
|
||||||
|
openvpn-client@windscribe-denmark:
|
||||||
|
service.running:
|
||||||
|
- enable: true
|
||||||
|
- watch:
|
||||||
|
- file: /etc/openvpn/client/windscribe-denmark.conf
|
||||||
|
- file: /etc/openvpn/client/windscribe.login
|
||||||
|
|
||||||
|
|
||||||
|
deluge-firewall:
|
||||||
|
service.running:
|
||||||
|
- name: firewalld
|
||||||
|
- enable: true
|
||||||
|
- watch:
|
||||||
|
- file: /etc/firewalld/direct.xml
|
||||||
|
|
77
states/roles/maintain/deluge/windscribe-denmark.conf
Normal file
77
states/roles/maintain/deluge/windscribe-denmark.conf
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
client
|
||||||
|
dev tun
|
||||||
|
proto udp
|
||||||
|
remote dk.windscribe.com 1194
|
||||||
|
|
||||||
|
nobind
|
||||||
|
auth-user-pass windscribe.login
|
||||||
|
|
||||||
|
resolv-retry infinite
|
||||||
|
|
||||||
|
auth SHA512
|
||||||
|
cipher AES-256-CBC
|
||||||
|
keysize 256
|
||||||
|
comp-lzo
|
||||||
|
verb 2
|
||||||
|
mute-replay-warnings
|
||||||
|
remote-cert-tls server
|
||||||
|
persist-key
|
||||||
|
persist-tun
|
||||||
|
|
||||||
|
key-direction 1
|
||||||
|
<ca>
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIF3DCCA8SgAwIBAgIJAMsOivWTmu9fMA0GCSqGSIb3DQEBCwUAMHsxCzAJBgNV
|
||||||
|
BAYTAkNBMQswCQYDVQQIDAJPTjEQMA4GA1UEBwwHVG9yb250bzEbMBkGA1UECgwS
|
||||||
|
V2luZHNjcmli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LhJlkp4Q==
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
</ca>
|
||||||
|
<tls-auth>
|
||||||
|
-----BEGIN OpenVPN Static key V1-----
|
||||||
|
5801926a57ac2ce27e3dfd1dd6ef8204
|
||||||
|
2d82bd4f3f0021296f57734f6f1ea714
|
||||||
|
a6623845541c4b0c3dea0a050fe6746c
|
||||||
|
b66dfab14cda27e5ae09d7c155aa554f
|
||||||
|
399fa4a863f0e8c1af787e5c602a801d
|
||||||
|
3a2ec41e395a978d56729457fe6102d7
|
||||||
|
d9e9119aa83643210b33c678f9d4109e
|
||||||
|
3154ac9c759e490cb309b319cf708cae
|
||||||
|
83ddadc3060a7a26564d1a24411cd552
|
||||||
|
fe6620ea16b755697a4fc5e6e9d0cfc0
|
||||||
|
c5c4a1874685429046a424c026db672e
|
||||||
|
4c2c492898052ba59128d46200b40f88
|
||||||
|
0027a8b6610a4d559bdc9346d33a0a6b
|
||||||
|
08e75c7fd43192b162bfd0aef0c716b3
|
||||||
|
1584827693f676f9a5047123466f0654
|
||||||
|
eade34972586b31c6ce7e395f4b478cb
|
||||||
|
-----END OpenVPN Static key V1-----
|
||||||
|
</tls-auth>
|
|
@ -199,7 +199,7 @@ RESET_PASSWD_CODE_LIVE_MINUTES = 180
|
||||||
; User need to confirm e-mail for registration
|
; User need to confirm e-mail for registration
|
||||||
REGISTER_EMAIL_CONFIRM = false
|
REGISTER_EMAIL_CONFIRM = false
|
||||||
; Does not allow register and admin create account only
|
; Does not allow register and admin create account only
|
||||||
DISABLE_REGISTRATION = false
|
DISABLE_REGISTRATION = true
|
||||||
; User must sign in to view anything.
|
; User must sign in to view anything.
|
||||||
REQUIRE_SIGNIN_VIEW = false
|
REQUIRE_SIGNIN_VIEW = false
|
||||||
; Mail notification
|
; Mail notification
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header Content-Length "";
|
proxy_set_header Content-Length "";
|
||||||
|
|
||||||
proxy_pass https://authelia.actcur.com/verify;
|
proxy_pass https://authelia.actcur.com/api/verify;
|
||||||
}
|
}
|
||||||
|
|
||||||
{% elif location == "2" %}
|
{% elif location == "2" %}
|
||||||
|
|
|
@ -24,7 +24,7 @@ server {
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header Content-Length "";
|
proxy_set_header Content-Length "";
|
||||||
|
|
||||||
proxy_pass https://authelia.actcur.com/verify;
|
proxy_pass https://authelia.actcur.com/api/verify;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /unauthenticated.php {
|
location /unauthenticated.php {
|
||||||
|
|
Loading…
Add table
Reference in a new issue