Now disable ufw at tunnel down after deluge kill and re-enable it at tunnel up

This commit is contained in:
Eldwan Brianne
2021-03-17 10:27:53 +01:00
parent 0376af5593
commit fc974ff463
4 changed files with 14 additions and 6 deletions

4
root/etc/ufw/disable.sh Normal file → Executable file
View File

@@ -6,9 +6,7 @@ TIMESTAMP_FORMAT='%a %b %d %T %Y'
log() {
echo "$(date +"${TIMESTAMP_FORMAT}") [ufw-disable] $*"
}
# Source our persisted env variables from container startup
. /etc/deluge/environment-variables.sh
ufw reset
log "Disabling ufw"
ufw disable
ufw status