learning_curve
Golden Pleskian
IPv6 banning within Fail2Ban has been supported in Obsidian since way back HERE but like many people, we didn't upgrade from Onyx, until Obsidian attained General Release status, so we're a little slow posting this question.
Now, with an up to date Obsidian install, we have Fail2Ban 10.3.1 provided by Plesk which supports IPv6 banning (/etc/fail2ban/action.d/iptables-common.conf) but... we still can't see that the IPV6 banning is operational (or not by default after its installation anyway) and indeed, find any, already listed, Plesk compatible method of enabling this functionality.
Both these Obsidian Reference Doc Pages (One & Two) completely ignore IPv6 with the exception of this one unhelpful line:
Ouside of Plesk, there are many guides / instructions / methods for enabling IPv6 banning with Fail2Ban but just as with the very handy PHP complilations that are also provided by Plesk, you can't just modify whatever you want, without checking for potential collateral damage first... Hence this request for the correct Plesk compatible method
We're assuming that the configuration will be made within /etc/fail2ban/jail.local and/or an additional file created e.g. /etc/fail2ban/jail.d/customisation.local and/or, modifications made to existing files within here: /etc/fail2ban/filter.d because both /etc/fail2ban/jail.conf and /etc/fail2ban/jail.d/plesk.conf are system generated / overwritten files, thus it's pointless applying changes to them.
In theory if Plesk is using iptables with ipset actions, then adding something simple (which covers IPv4 & IPv6) like:
into /etc/fail2ban/jail.local might be sufficient to enable this functionality, which, should then present both of the banned IP address sets (IPv4 and IPv6) on the Plesk GUI Fail2ban page. However, it's the provided by Plesk / potential collateral damage risk, which stops us from exploring this any further currently, without any advance Plesk direct input.
Now, with an up to date Obsidian install, we have Fail2Ban 10.3.1 provided by Plesk which supports IPv6 banning (/etc/fail2ban/action.d/iptables-common.conf) but... we still can't see that the IPV6 banning is operational (or not by default after its installation anyway) and indeed, find any, already listed, Plesk compatible method of enabling this functionality.
Both these Obsidian Reference Doc Pages (One & Two) completely ignore IPv6 with the exception of this one unhelpful line:
"Fail2Ban does not provide protection against attackers with an IPv6 address. Fail2ban in Plesk relies solely on IPs (without hostname lookups) unless reconfigured"
Ouside of Plesk, there are many guides / instructions / methods for enabling IPv6 banning with Fail2Ban but just as with the very handy PHP complilations that are also provided by Plesk, you can't just modify whatever you want, without checking for potential collateral damage first... Hence this request for the correct Plesk compatible method
We're assuming that the configuration will be made within /etc/fail2ban/jail.local and/or an additional file created e.g. /etc/fail2ban/jail.d/customisation.local and/or, modifications made to existing files within here: /etc/fail2ban/filter.d because both /etc/fail2ban/jail.conf and /etc/fail2ban/jail.d/plesk.conf are system generated / overwritten files, thus it's pointless applying changes to them.
In theory if Plesk is using iptables with ipset actions, then adding something simple (which covers IPv4 & IPv6) like:
Code:
[DEFAULT]
banaction = iptables-ipset-proto6
banaction_allports = iptables-ipset-proto6-allports