perfsonar / perfsonar/toolkit

Security package closes open SSHD ports

Open
#501 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
37
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I have some VMs that, out of necessity, has SSHD set up to listen on a port other than 22. When installing the security package, the firewall opens 22 and blocks anything else, which breaks the Ansible playbook being used to configure the system.

As a workaround, I wrote a script that pulls the running SSHD's listening ports and opens them, which should be considered as an addition to the security package:

https://github.com/perfsonar/testbed-pve/blob/main/ansible/assets/perfsonar/firewalld-open-ssh-ports

I may also add this as an option to the auto-installer.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked firewalld-open-ssh-ports script and trace how the security package configures the firewall during installation. Confirm how the running SSHD ports are discovered and where the package's firewall rules are applied. Done means non-standard SSHD ports remain reachable and the Ansible playbook can configure the system successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible
Domain
devops, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.