Koozali.org: home of the SME Server

dovecot remote login ip address

Offline Jean-Philippe Pialasse

  • *
  • 2,844
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: dovecot remote login ip address
« Reply #15 on: May 16, 2024, 02:34:49 AM »
I've installed xt_geoip, so we'll see how it goes

like installed or like installed and configured following wiki closely.  be carefull not to lock any legitimate traffic like on port 80 443 and 25.

Offline robf355

  • *
  • 82
  • +0/-0
Re: dovecot remote login ip address
« Reply #16 on: May 16, 2024, 11:22:30 AM »
like installed or like installed and configured following wiki closely.  be carefull not to lock any legitimate traffic like on port 80 443 and 25.
installed and configured following wiki closely

Offline robf355

  • *
  • 82
  • +0/-0
Re: dovecot remote login ip address
« Reply #17 on: May 16, 2024, 11:51:46 AM »
It seems that fail2ban isn't running
/varlog/messages

May 16 11:38:27 hpserver fail2ban-server: 2024-05-16 11:38:27,495 fail2ban                [2088]: ERROR   Failed during configuration: Have not found any log file for smanager jail
May 16 11:38:27 hpserver fail2ban-server: 2024-05-16 11:38:27,503 fail2ban                [2088]: ERROR   Async configuration of server failed

/var/log/fail2ban/daemon.log exists - zero length, owned by root:root, permissions 0600

fail2ban-client start

2024-05-16 11:44:22,331 fail2ban                [2140]: ERROR   Failed during configuration: Have not found any log file for smanager jail

I found an issue on github:
https://github.com/fail2ban/fail2ban/issues/2756
which mentions changing backend to systemd from auto, this fixed the starting issue

I created a custom template in
/etc/e-smith/templates-custom/etc/fail2ban/jail.conf/99Backend
with backend=systemd
then
expand-template /etc/fail2ban/jail.conf
signal-event fail2ban-conf

Fail2ban is now running
fail2ban-client status:
[root@hpserver jail.conf]# fail2ban-client status
2024-05-16 12:21:43,881 fail2ban.configreader   [3146]: WARNING 'socket' not defined in 'Definition'. Using default one: '/var/run/fail2ban/fail2ban.sock'
2024-05-16 12:21:43,881 fail2ban.configreader   [3146]: WARNING 'pidfile' not defined in 'Definition'. Using default one: '/var/run/fail2ban/fail2ban.pid'
2024-05-16 12:21:43,882 fail2ban.configreader   [3146]: WARNING 'loglevel' not defined in 'Definition'. Using default one: 'INFO'
2024-05-16 12:21:43,882 fail2ban.configreader   [3146]: WARNING 'logtarget' not defined in 'Definition'. Using default one: '/var/log/fail2ban.log'
2024-05-16 12:21:43,882 fail2ban.configreader   [3146]: WARNING 'syslogsocket' not defined in 'Definition'. Using default one: 'auto'
Status
|- Number of jail:      14
`- Jail list:   http-auth, http-badbots, http-fakegooglebot, http-noscript, http-overflows, http-scan, http-shellshock, imap, pam-generic, qpsmtpd, recidive, smanager, ssh, ssh-ddos

are the warnings ok to ignore?
« Last Edit: May 16, 2024, 01:24:22 PM by robf355 »

Offline Jean-Philippe Pialasse

  • *
  • 2,844
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: dovecot remote login ip address
« Reply #18 on: May 16, 2024, 01:07:24 PM »
iptables/denylog.log


manager will fisplay a resumé after one night