-
Notifications
You must be signed in to change notification settings - Fork 198
network_ipv6_enable: true not working #311
Comments
Hey @altf4arnold, I just tested it, works fine for me:
Can you please fill out the bug-template (https://github.com/dev-sec/ansible-ssh-hardening/issues/new?template=bug_report.md) so I can investigate further? |
Sorry for not complying on the bug-template. Here it is completed The problem is that even when IPv6 is enabled into the playbook, it's still forcing to listen to IPv4 Only with the ListenAddress Option in sshd_config. What should happen is that if IPv6 is put to true and ListenAddress is set to default, listening to [::] should also be put in the config That is what currently happen if IPv6 is set to true without the ListenAddress specified.
From there I get this into /etc/ssh/sshd_config :
My playbook is :
What I can do to make it work is :
I'm running Ansible from mac OS on Debian 10 servers on this version :
The ssh-hardening module is integrated in my playbook through a git submodule and those tests were made on commit : 2d876f6 |
I just tested with commit 7ea747a . Still getting the same result |
The indentation of your playbook is wrong, try this:
|
I have the same indentation on my side (I tought while copy pasting on github that the indentation broke so I rebuilt it on here. I'm changing the indentation back to original on the original post right now) |
Updated |
Sorry! I misunderstood your original issue. The problem as you said is Right now the logic is rather simple for this:
We could probably change this somehow so it works out-of-the-box for you. However I don't have an idea right now, how to make it simple enough. |
Small problem small solution... Not changing the code by any mean because it's quite logical to use. Just adding it to the documentation to make it a little bit more clear :-) |
Thanks for this good solution. Glad you found the issue. |
Hello,
I had a perfectly working config file and made a git pull today on master.
I have this in my config file :
Even with that option, the ssh hardening module is still putting this in my sshd_config file :
which is forcing open-ssh to only listen to IPv4.
The text was updated successfully, but these errors were encountered: