wazuh / wazuh-docker

Wazuh - Docker containers
https://wazuh.com
Other
718 stars 406 forks source link

Wazuh is not ready for IPv6 out of the box and there is no documentation #1120

Open kkovaletp opened 1 year ago

kkovaletp commented 1 year ago

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:

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.

Hannsre commented 3 months 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!