Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue when enabling mysqld-iptables in Fail2Ban #3025

Merged
merged 3 commits into from
Nov 6, 2022

Conversation

neto737
Copy link
Contributor

@neto737 neto737 commented Nov 6, 2022

As reported in Discord Fail2Ban doesn't start after setting "enabled" to true in [mysqld-iptables] section

P.S.: All credits to "Krzysiek86" from HestiaCP Discord server, who discovered the issue and the fix.

@jaapmarcus
Copy link
Member

jaapmarcus commented Nov 6, 2022

We should also update /etc/fail2ban/jail.d

sed -I 's|/var/log/mysql.log|var/log/mysql/mysql.log|g' /etc/fail2ban/jail.d

Should work

(Create a 1.6.12.sh in /install/upgrades/version/)

@jaapmarcus jaapmarcus merged commit a84d8ce into hestiacp:main Nov 6, 2022
@neto737 neto737 deleted the fix/mysql-fail2ban branch November 7, 2022 13:44
jaapmarcus added a commit that referenced this pull request Dec 6, 2022
* Fix issue when enabling mysqld-iptables

* Added script to update current installations

* Add default settings

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
jaapmarcus added a commit that referenced this pull request Dec 8, 2022
* Add gitignore 
* Fix #3051 Unable to change database user
* PHP 8.2 support (#2969)
* Delete rrd database on deleting database host
* [Bug] Firewall loading failed after reboot (#3110)
* Fixed firewall loading failed after reboot
* Apply update to hestia-iptables Systemd unit
* Check if antivirus / antispam is installed (#3099)
* Fixing the template for WordPress to avoid caching of WordPress REST API (#3069)
* Strip some extra dots from user input (#3048)
* Also restart / reload proxy (#3060)
* Delete only subfolders and files
* Add ip to v-add-web-domain admin hostname ip (#3068)
* Add alias for composer (#3070)
* Fix issue when enabling mysqld-iptables in Fail2Ban (#3025)
* Fix issue when enabling mysqld-iptables
* Added script to update current installations
* 2971 [Bug] Time zone change bug (#3031)
* Fix 2971 | Use server time zone names
* Update shell list
* Fix #1750  No www alias for domain.co.uk (#3030)
* Fix error  in v-add-user-2fa
* Update WordpressSetup.php (#2990)
* #1236  Improve restart behavoir v-add-domain.com (#3020)
* Fix restart issues
* Set v-add-mail-domain to no
* 2923 [Bug]  Unable to create tmp directory (#3019)
* Delete task when backup fails
* Improve error message+ add link to docs
* Add node_modules to the .gitignore
* Fix #3011 (#3046) Fix Unsuspend database user permissions
* Fix: v-add-domain fails with package limit if limits are reached
* Update phpmailer
* Update versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants