Hello,
I am trying to forward TrueNAS logs to a central syslog server.
System > Advanced Settings > Syslog:
Syslog Level: Debug
Syslog Server: syslog.mydomain:6514
Syslog Transport: TLS
Syslog TLS Certificate: -
Syslog TLS Certificate Authority: internal_ca
internal_ca
is a private CA, and configured under Credentials > Certificate authorities. I confirmed it is valid by testing openssl
client on nas.mydomain
(TrueNAS SCALE):
openssl s_client \
-connect syslog.mydomain:6514 \
-CAfile /etc/certificates/CA/internal_ca.crt
Now when using tcpdump
on syslog.mydomain
:
tcpdump -vni eth0 port 6514
and triggering a log manually in nas.mydomain
via
logger -t test -p 3 'SOME TEST ERROR'
, I don’t get any connection attempt by TrueNAS machine at all. Doesn’t matter how long I wait. It seems, Syslog client is not active with TLS? Invoking openssl s_server
or netcat
for a “dummy” TLS syslog target lead to same results (no output). When using TCP transport instead of TLS, I see traffic again.
Did I missing something? Unsure what’s going on here.
Thanks for any clarification!
TrueNAS SCALE ElectricEel-24.10.2
Some more infos about my real case (mTLS)
My server syslog.mydomain
actually requires mTLS / client authentication.
Adding
-cert /etc/certificates/nas.mydomain.crt \
-key /etc/certificates/nas.mydomain.key
to openssl
connected successfully.
And it seems I can use “Syslog TLS Certificate” to hand over my client certificate to server for validation (but not sure about mTLS support with syslog).
Though underlying problem already seems to be a step earlier, by missing any TLS handshake and connection, hence not bothering for now.