Il 2020-01-22 18:32 Mike ha scritto:
[...]

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.

Well!


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)


Well!

so in the jail.local under [sshd]

change

port = ssh

to

port = (port# of new ssh port)



What you mean is that, after changing the port to "/etc/sshd_config" I can just update the sshd port on /etc/services, to make sure that fail2ban associate the correct port number, and nothing else.

Is this right?


Many thanks Mike!




_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to