You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems impossible to get the ssh_hardening role to set the ssh daemon to listen on all IPv4 AND IPv6 addresses for Debian. The goal is to set ListenAddress to:
ListenAddress ::
or
don't set it at all
because for at least Debian 11+ sshd listens on all IPv4 AND IPv6 addresses by default.
TASK [ssh_hardening : Create sshd_config and set permissions to root/600] **************************************************************************************************
fatal: [bookwormhardened]: FAILED! => {"changed": false, "checksum": "43f6aefbac95d99fe02b9fe12d76b7bd7a461727", "exit_status": 255, "msg": "failed to validate", "stderr": "/root/.ansible/tmp/ansible-tmp-1700439006.707395-94286-125003981978082/source line 24: bad port number\r\n", "stderr_lines": ["/root/.ansible/tmp/ansible-tmp-1700439006.707395-94286-125003981978082/source line 24: bad port number"], "stdout": "", "stdout_lines": []}
the file: /root/.ansible/tmp/ansible-tmp-1700439006.707395-94286-125003981978082/source
seems to be deleted after the playbook runs so I can't see what the file says.
Reproduction option 5 results in ListenAddress being set to:
ListenAddress 0.0.0.0
Which results in sshd listening on only IPv4
Expected Behavior
Being able to set ListenAddress to
ListenAddress ::
Description
It seems impossible to get the ssh_hardening role to set the ssh daemon to listen on all IPv4 AND IPv6 addresses for Debian. The goal is to set ListenAddress to:
ListenAddress ::
or
don't set it at all
because for at least Debian 11+ sshd listens on all IPv4 AND IPv6 addresses by default.
Reproduction steps
Current Behavior
reproduction options 1-4 result in:
Reproduction option 5 results in ListenAddress being set to:
ListenAddress 0.0.0.0
Which results in sshd listening on only IPv4
Expected Behavior
Being able to set ListenAddress to
ListenAddress ::
OS / Environment
version 8.8.0 and 9.0.0
Debian 11 and 12
Ansible Version
Collection Version
Additional information
Not sure if this is a YAML problem because of IPv6 :: or if there is a problem with the role.
The text was updated successfully, but these errors were encountered: