Does anyone know how to set an alternate logging file for iptables with syslog-ng on Ubuntu Server?


Basically, you have to use some log prefix in iptables with the --log-prefix option and match against that prefix in syslog-ng.

Here's a link with more information and examples: http://www.masquerade.cz/en/logovani-iptables-trizeni-logu/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.