Removing line, not doing what it should #572
This commit is contained in:
@@ -104,7 +104,6 @@ if [[ "${ENABLE_UFW,,}" == "true" ]]; then
|
|||||||
if [[ "${UFW_DISABLE_IPTABLES_REJECT,,}" == "true" ]]; then
|
if [[ "${UFW_DISABLE_IPTABLES_REJECT,,}" == "true" ]]; then
|
||||||
# A horrible hack to ufw to prevent it detecting the ability to limit and REJECT traffic
|
# A horrible hack to ufw to prevent it detecting the ability to limit and REJECT traffic
|
||||||
sed -i 's/return caps/return []/g' /usr/lib/python3/dist-packages/ufw/util.py
|
sed -i 's/return caps/return []/g' /usr/lib/python3/dist-packages/ufw/util.py
|
||||||
sed -i -e s/MANAGE_BUILTINS=no/MANAGE_BUILTINS=yes/ /etc/default/ufw
|
|
||||||
# force a rewrite on the enable below
|
# force a rewrite on the enable below
|
||||||
echo "Disable and blank firewall"
|
echo "Disable and blank firewall"
|
||||||
ufw disable
|
ufw disable
|
||||||
|
Reference in New Issue
Block a user