Blog


View CommentsView Comments

Logging Shorewall / IPTables on separate files on rsyslog

02.Aug.2011 Tags: iptables, linux, rsyslog, shorewall

I'd like to separate my logs to facilitate analyze and monitoring of what's going on.

So, it's easy. Shorewall by default log using "Shorewall:" prefix. Create the file:

  • /etc/rsyslog.d/10-shorewall.conf

    :msg, startswith, "Shorewall:" -/var/log/shorewall.log
    & ~
    

The second line discard the message ...

Read full entry


« Previous1Next »
reluctance