-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
I was trying to implement fail2ban on my host box, and when browsing through the journalctl logs, I noticed that all connections to the bastion containers as logged by sshd appear to come from 'UNKNOWN' IPs:
sshd[32094]: Failed password for root from UNKNOWN port 65535 ssh2
sshd[41614]: Accepted publickey for cbell from UNKNOWN port 65535 ssh2: RSA SHA256:NAQ3eyAsG/Ixv8kAVVmvdStQQTr+6BfM7p/swY8G3UQ
Connections to the host show the IP as expected.
The socket appears to correctly name itself with the IP, so I could parse that with a custom fail2ban filter (but obviously this is a bit difficult as it doesn't differentiate between successful and failed logins):
[email protected]:22-88.xxx.xxx.66:12437.service: Main process exited, code=exited, status=255/EXCEPTION
But your example in the readme shows the IP address as expected from the sshd logs. Any ideas why this differs?
Metadata
Metadata
Assignees
Labels
No labels