In jail I have:
port    = ssh

I define the ssh port in
/etc/ssh/sshd_config

And when I change the port in /etc/ssh/sshd_config fail2ban knows what port.

Wayne Sallee
wa...@waynesallee.com
http://www.WayneSallee.com

-------- Original Message --------
*Subject: *  [Fail2ban-users] Fwd: Re: Fwd: Change ssh port globally (only once)
*From: *     Mike <t...@rohms.com>
*To: *         Fail2ban-users <fail2ban-users@lists.sourceforge.net>
*CC: *
*Date: *      2020-1-22  12:32 PM


but it's often in
/etc/ssh/sshd_config
or somethere thereabouts

What you mean is that changing "/etc/sshd_config", fail2ban through parameter 
"ssh" automatically detects the port?

Assuming you haven't already configured sshd to run on an alternate port, 
you'll have to do that first.

And no, if you move ssh to an alternate port, fail2ban will NOT detect that port (unless you update /etc/services or some other facility and re-map "ssh" to the alternate port)

so in the jail.local under [sshd]

change

port = ssh

to

port = (port# of new ssh port)




_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users




_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to