Send log (tls transport) via syslog-ng to a remote rsyslog server.
Hi !
I'm a bit confused about how syslog-ng works. I want to complete a quite simple task.
Sending all logs from my pfsense 21.05 to a remote *nix server via syslog-ng with tls transport.
I understand syslog and syslog-ng are not the same and works differently. Because syslog cannot do tls i choose syslog-ng.
Obviously i want to use it as a client not a server. So do i need to tell syslog to send everything to syslog-ng on 127.0.0.1 and syslog-ng to send all with tls to the remote server ?
The g.u.i of syslog-ng is a bit confusing cause i can't find how to send logs to a specific ip:port. ( i don't want to do the regular 514 udp )
I consulted official documentation :
https://docs.netgate.com/pfsense/en/latest/monitoring/logs/remote.html
I'm pretty sure i miss some basic information. If anyone can enlight me.
Thanks.
( sorry english's not my native language )
Posted Jul 13, 2021, 12:19 PM UTC
Is this remote syslog server in the cloud or in the same location as your pfsense box?
Any particular reason for encrypting your syslog?
On the L.A.N for the moment but because of misconfigured vlan, bad guest network design and to encourage good practices i wanted to encrypt the transport.
I can do it with stunnel or a simple tinc configuration but i wanted to know if someone managed to use syslog-ng this way.
Hi. Sorry I just realized that the reply i had written for this hadnt posted. Thank You reddit mobile.
Anyways. 99% of network devices will send logs using standard syslog. The only configuration possible would be the format and whether to use tcp or udp. Due to the massive amount of logs and the speed at which the logs are being generated especially on the firewalls, people tend to use UDP, which has less load on the network.
Pfsense can only send logs in standard syslog (no encryption). Since the syslog server is local to your network, I dont think you should be worried about encrypting your syslog.
But if your did want to, you would have to send it to a syslog server and then resend it to another syslog server with encryption, which kinda defeats the purpose since both the servers are internal.
I generally do it the other way round. Some devices I have send through syslog tls. I use logstash to receive in TLS and then forward it to my final rsyslog server in normal syslog. This only because for the love of all thats holy I can't get rsyslog to receive TLS syslog.