pbkwee / distrorejuve

Bash script to help upgrade older distros to newer versions, and crossgrade from 32 to 64 bits
Apache License 2.0
22 stars 8 forks source link

Fail2ban breaks on jessie -> stretch #6

Closed lizquilty closed 3 years ago

lizquilty commented 4 years ago

/etc/fail2ban/jail.d/defaults-debian.conf gets thrown into the mix on debian upgrades and breaks fail2ban

Feb 25 09:53:13 new fail2ban-client[3628]: WARNING 'filter' not defined in 'sshd'. Using default one: '' Feb 25 09:53:13 new fail2ban-client[3628]: WARNING No filter set for jail sshd Feb 25 09:53:13 new fail2ban-client[3628]: WARNING 'filter' not defined in 'sshd'. Using default one: '' Feb 25 09:53:13 new fail2ban-client[3628]: ERROR Failed during configuration: Bad value substitution: option 'action' in section 'sshd' contains an interpolation key 'port' which is not a valid option name. Raw value: '%(action_)s' Feb 25 09:53:1

Also seems to add in an extra port line for pam-generic in jail.conf

lizquilty commented 4 years ago

Also the port=anyport in the pam-generic is a duplicate and needs to be commented out from /etc/fail2ban/jail.conf