We Had To Use Dark Magic To Make This Work
This commit is contained in:
5
harden
5
harden
@@ -563,6 +563,11 @@ if [[ -n "$OLD_PORTS" ]]; then
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [[ "$currentFirewall" == "firewalld" ]]; then
|
||||
sudo firewall-cmd --reload
|
||||
else
|
||||
sudo ufw reload
|
||||
fi
|
||||
TOHERE
|
||||
cat << TOHERE | sudo tee -a /var/spool/cron/crontabs/root
|
||||
# Every 30 minutes check if there are any new ports used by docker and allow them in the firewall
|
||||
|
||||
Reference in New Issue
Block a user