https://bugs.contribs.org/show_bug.cgi?id=10786
Bug ID: 10786
Summary: lockout without a full masq restart
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-fail2ban
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
without a full masq restart on initial install one will be locked out mostly
because the chains does not exist for a simple masq adjust
we could fix that with something similar to XT geoip in
/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustFail2Ban
# to allow reload without locking just after initial install
$OUT .=<<'EOF';
iptables -n --list Fail2Ban >/dev/null 2>&1
test=$?
if [[ $test -eq 1 ]] ; then
# A blacklist chain for xtables-addons Fail2Ban
/sbin/iptables --new-chain Fail2Ban
/sbin/iptables --new-chain Fail2Ban_1
/sbin/iptables --append Fail2Ban -j Fail2Ban_1
/sbin/iptables --insert INPUT 1 \
-j Fail2Ban
fi
EOF
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/