Greetings,
I am experiencing some difficulties while trying to configure TLS communication between Zabbix server and agent 2 (linux and windows) with psk key. No proxy for the moment and Communication worked just fine with unencrypted communication.
#Problem:
TLS handshake does not complete and impossible to restart agent 2 (linux and windows) in order to reload new configuration. So I kill process on linux and end task in task manager in windows.
TCP handshake is ok, but not TLS (see picture below)Same error in server log, and on agents side C source code TLS functions seem to run again and again (=> connection timed out) and nothing happen after agent-side in the logs (agent freeze)
As you can see in the wireshark screenshot below, the TLS version seems to be 1.2 but not sure of it.
I forced TLS 1.2 on server side (verify with openssl cipher -v) but it did not change anything.
I verify firewall configurations and everything seems ok
I verify in windows registry and I enabled server and client TLS 1.2
I verify the time.
PSK and PSK identity is matching for each agent separetly and server
PSK is also configured correctly on the server frontend
Similar topic on this forum have network congestion or proxy misconfiguration. I have no network congestion, no proxy and I did not see that agents freeze in any simillar topic.
Any idea what I could do to solve this problem? New to Zabbix so any help would be great!
#Configurations:
Zabbix server : Debian 10 with zabbix 5.0 LTS, openssl 1.1.1n, libssl.so.1.1
Linux Zabbix agent: Debian 12, zabbix agent 2,
Windows Zabbix agent: windows server 2022
zabbix_agent2.conf (linux and windows agents)

I am experiencing some difficulties while trying to configure TLS communication between Zabbix server and agent 2 (linux and windows) with psk key. No proxy for the moment and Communication worked just fine with unencrypted communication.
#Problem:
TLS handshake does not complete and impossible to restart agent 2 (linux and windows) in order to reload new configuration. So I kill process on linux and end task in task manager in windows.
TCP handshake is ok, but not TLS (see picture below)Same error in server log, and on agents side C source code TLS functions seem to run again and again (=> connection timed out) and nothing happen after agent-side in the logs (agent freeze)
As you can see in the wireshark screenshot below, the TLS version seems to be 1.2 but not sure of it.
I forced TLS 1.2 on server side (verify with openssl cipher -v) but it did not change anything.
I verify firewall configurations and everything seems ok
I verify in windows registry and I enabled server and client TLS 1.2
I verify the time.
PSK and PSK identity is matching for each agent separetly and server
PSK is also configured correctly on the server frontend
Similar topic on this forum have network congestion or proxy misconfiguration. I have no network congestion, no proxy and I did not see that agents freeze in any simillar topic.
Any idea what I could do to solve this problem? New to Zabbix so any help would be great!
#Configurations:
Zabbix server : Debian 10 with zabbix 5.0 LTS, openssl 1.1.1n, libssl.so.1.1
Linux Zabbix agent: Debian 12, zabbix agent 2,
Windows Zabbix agent: windows server 2022
zabbix_agent2.conf (linux and windows agents)
Code:
TLSConnect=psk TLSAccept=psk TLSPSKIdentity=PSK_00X TLSPSKFile=C:\Program Files\Zabbix Agent 2\Zabbix_agent.psk # pour linux /etc/zabbix/agent.psk
Comment