We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eaa1b7 commit b6c152aCopy full SHA for b6c152a
bin/v-stop-firewall
@@ -40,6 +40,15 @@ echo "$iptables -F INPUT" >> $tmp
40
# Deleting vesta chain
41
echo "$iptables -X vesta" >> $tmp
42
43
+# Deleting custom chains
44
+chains=$(cat $VESTA/data/firewall/chains.conf 2>/dev/null)
45
+IFS=$'\n'
46
+for chain in $chains; do
47
+ eval $chain
48
+ echo "$iptables -F fail2ban-$CHAIN" >> $tmp
49
+ echo "$iptables -X fail2ban-$CHAIN" >> $tmp
50
+done
51
+
52
# Applying rules
53
bash $tmp 2>/dev/null
54
0 commit comments