Project

General

Profile

Actions

tickets #152707

open

Improve Pagure public SSH security

Added by crameleon 7 months ago. Updated about 1 month ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
Pagure
Target version:
-
Start date:
2023-12-16
Due date:
% Done:

50%

Estimated time:

Description

As the health checks from the proxy servers (which do not authenticate and merely check if the SSH server responds) caused the proxy IP addresses to be banned repeatedly, these addresses were whitelisted.
Since the machine sees all SSH connections from the internet to originate from the atlas1/atlas2 proxy IP addresses, this now means that every connection from the internet is whitelisted, which practically causes fail2ban to be not banning any failed connection attempts.
This should be remediated.
Investigation shows that since there is no support for the PROXY protocol in SSH, something like TPROXY will need to be implemented on the HAProxy level to pass the real source address for the TCP proxy used for SSH.

Actions

Also available in: Atom PDF