Open kkovaletp opened 1 year ago
Wow, thank you! I thought I'm going crazy over this. I was only trying to setup a playground for testing so I just gave it an ipv6 address as they are free to us. This should be in the defaults or at least be properly documented.
Also, for anyone ending up here looking for a solution on a non-docker setup, you'll have to edit /var/ossec/etc/ossec.conf
and add <ipv6>yes</ipv6>
in the <remote>
and <auth>
blocks. Simply restarting the wazuh services didn't work, but rebooting the server did.
Thanks again!
Hi Team,
I'm a new user of Wazuh and recently deployed a single-node setup on my Kubuntu 22.04 with both real IPv4 and IPv6. I followed the docker-compose installation guide, but later when I tried to connect 1 of my agents to the server, I discovered that the IPv6 is not used at all, so all the traffic to the opened server ports from IPv6 is just ignored.
I tried to find a solution in the Wazuh online documentation, but I couldn't do that, except for a couple of low-level config options documented. While I did my investigation, I found out that the application's default settings disable IPv6.
I had to ask the community and with help from Ebuka John Onyejegbu, I managed to configure it to use both IPv4 and IPv6 transparently. Please check the Slack conversation to get more details, I'll describe only the final solution here:
/etc/docker/daemon.json
:/etc/docker/daemon.json
docker-compose
changes proposed) should be added to allow the solution to utilize the IPv6 capabilities in the case it is working on the host:<ipv6>yes</ipv6>
line into theremote
andauth
sections of the./config/wazuh_cluster/wazuh_manager.conf
0.0.0.0
with the hostname of the corresponding container in the dashboard (./config/wazuh_dashboard/opensearch_dashboards.yml
) and indexer (./config/wazuh_indexer/wazuh.indexer.yml
) configs, as well as in the API config./volumes/wazuh_api_configuration/api.yaml
(see the #1106 to find out why is it there and what is the./volumes
folder). BTW, it would be great to remap thewazuh_api_configuration
to the./config
folder to be consistent.down
followed byup -d
Now both IPv4 and IPv6 protocols should work as expected. I think that the mentioned changes are mostly backward compatible with the IPv4-only environment, so they have to be set out-of-the-box and only some of them need to be commented out by default. The complete guide for the IPv6 use case has to be published on the documentation portal to provide clear instructions for users.