Skip to content

When to indicate the non-standard port? #3726

Closed Answered by sebres
DarkCorner-IT asked this question in Q&A
Discussion options

You must be logged in to vote

One needs to add port = ... to jail in the cases:

  • where the port of daemon got changed (e. g. in /etc/ssh/sshd_config), however the alias (e. g. ssh in /etc/services) remains unchanged as usually.
  • where the daemon becomes accessible over some additional port
  • but only if the banning action is multiport action (not allports action), as it regularly the case for sshd jail by default

In any case after the change the jail (or fail2ban) needs to be restarted (to affect the chain/rules in the net-filter subsystem).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sebres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants