Hello John,
The communication between the manager and the agents involves 2 ports:
* authd listening port (1515 as the default value). This port is used by agents for enrollment purposes.
* remoted listening port (1514 as the default value). This port is used by agents to send events to the manager after the enrollment process is complete.
These 2 ports are the ones you need to forward and the ones that agents must reach. To operate successfully both manager and agents must have the same port numbers configured.
To set in manager configuration the listening "authd" port number, use this setting:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/auth.html#portTo set in agent configuration the manager server "authd" port number, use this setting:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/client.html#enrollment-manager-portTo set in manager configuration the listening "remoted" port number, use this setting:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/remote.html#portTo set in agent configuration the manager server "remoted" port number, use this setting:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/client.html?#portAs the ports are going to be public, then some additional security options are recommended.
- If agent enrollment is automatic (via authd port), then additional security options are recommended:
https://documentation.wazuh.com/current/user-manual/agent-enrollment/security-options/index.html- Also agent enrollment could be manual (via manager API). This option requires more configuration work on agents, but this way, you don't need to expose authd port (default 1515).
https://documentation.wazuh.com/current/user-manual/agent-enrollment/via-manager-API/index.htmlHope this gives you more information to make a better design decision,
Regards