Hi, We have installed wazuh cluster service in our system with load balancer without agent authentication password and agent server communication with TCP port 1515 which is working fine. But our new requirements are agent authentication with password and agent server communication with TCP port 443.
Configurations below :
<!-- Configuration for wazuh-authd -->
<auth>
<disabled>no</disabled>
<remote_enrollment>yes</remote_enrollment>
<port>443</port>
<use_source_ip>no</use_source_ip>
<purge>yes</purge>
<use_password>yes</use_password>
<ciphers>HIGH:!ADH:!EXP:!MD5:!RC4:!3DES:!CAMELLIA:@STRENGTH</ciphers>
<!-- <ssl_agent_ca></ssl_agent_ca> -->
<ssl_verify_host>no</ssl_verify_host>
<ssl_manager_cert>etc/sslmanager.cert</ssl_manager_cert>
<ssl_manager_key>etc/sslmanager.key</ssl_manager_key>
<ssl_auto_negotiate>no</ssl_auto_negotiate>
<force>
<enabled>yes</enabled>
<disconnected_time enabled="yes">1h</disconnected_time>
<after_registration_time>1h</after_registration_time>
<key_mismatch>yes</key_mismatch>
</force>
</auth>
We have received the warning from the manager side below:-
INFO New connection from 10.10.10.71
Jan 20, 2023 @ 12:55:30.000 wazuh-authd INFO Received request for a new agent (wazuh-agent-node-3) from: 10.10.10.71
Jan 20, 2023 @ 12:55:30.000 wazuh-authd WARNING Duplicate name 'wazuh-agent-node-3', rejecting enrollment. Agent '008' key already exists on the manager.
Jan 20, 2023 @ 12:56:04.000 wazuh-authd INFO New connection from 10.10.10.73
Jan 20, 2023 @ 12:56:04.000 wazuh-authd INFO Received request for a new agent (wazuh-agent-node-2) from: 10.10.10.73
Jan 20, 2023 @ 12:56:04.000 wazuh-authd WARNING Duplicate name 'wazuh-agent-node-2', rejecting enrollment. Agent '007' key already exists on the manager.
Logs from the agent side:
2023/01/20 08:13:35 wazuh-agentd: INFO: Using agent name as: wazuh-agent-node-2
2023/01/20 08:13:35 wazuh-agentd: INFO: Waiting for server reply
2023/01/20 08:13:35 wazuh-agentd: ERROR: Duplicate agent name: wazuh-agent-node-2 (from manager)
2023/01/20 08:13:35 wazuh-agentd: ERROR: Unable to add agent (from manager)
So we have removed the agent from the manager by command line. But the agent was not registered successfully.
Always agent status with Never connected.
Would you please help us on this issue and await your prompt reply.
Thanks,
Parvaj Alam