On Wed, 29 May 2024 17:19:32 +0100,
Joel Carnat <[email protected]> wrote:
>
> Thank you! I went for solution 2 but it seems the string is not send
> properly by relayd.
>
It sends as is, so the rigth approach, let me quote the man is:
check binary send data expect data [tls]
For each host in the table, a TCP connection is established on
the port specified, then the send data is converted into binary
and sent. Incoming (binary) data is then read and is expected to
match against a binary conversion of the expect data using
memcmp(3). data must be populated with a string containing an
even number of hexadecimal single-byte characters and must not be
empty. This can be useful with binary protocols such as LDAP and
SNMP. If the tls keyword is present, the transaction will occur
in a TLS tunnel.
--
wbr, Kirill