Skip to content

Conversation

roll-w
Copy link
Owner

@roll-w roll-w commented Sep 8, 2025

This pull request introduces a new SSHD firewall integration for session-level access control, along with minor improvements to existing code. The most significant changes include adding a session listener for SSHD sessions to enforce firewall rules, implementing a request object for firewall checks, introducing an in-application shell command to dynamically manage the SSHD filter table, and updating configuration to support these features.

Highlights

  • Added SshdFirewallSessionListener, a new SessionListener service that intercepts SSHD session creation and validates incoming connections against registered firewall rules, enforcing allow/deny decisions in real time.
  • Implemented SshdFirewallAccessRequest, a dedicated request object encapsulating user identity and source IP address, providing structured context for firewall policy evaluation during SSHD authentication and session establishment.
  • Introduced FilterTableCommand, a new shell command that enables administrators to dynamically inspect, add, remove, or flush firewall filter rules at runtime.
  • Other code improvements.

…stener

Add SSHD firewall access request handling and session listener to manage
firewall rules for SSH connections. This includes the ability to allow or
deny access based on user credentials and IP addresses.

Introduce a command for managing filter entries in the system's filter table,
allowing users to add, remove, list, and show details of specific identifiers
like IP addresses and user IDs.

Also, update the SSHD configuration to support session listeners for enhanced
security management.
@roll-w roll-w self-assigned this Sep 8, 2025
@roll-w roll-w merged commit 10921c9 into master Sep 13, 2025
1 check passed
@roll-w roll-w deleted the feat/filter-ssh branch September 13, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant