[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Creating a logfile for Netfilter



Stefan Srdic <linuxbox@telusplanet.net> writes:

> Anyway, as you can guess I am using netfilter for firewalling.
> 
> How can I pipe all logs from Netfilter into a single logfile?
> 
> Lets say I wanted all log messages from netfilter to be loged into
> /var/log/netfilter. How could I accomplish that?

FWIW, my approach: assert a log-prefix in your logging iptables rules, and
install syslog-ng with a regexp match to pick up your prefix (make it
distinctive, eg 'Catch-all: .*IN=.*OUT=' would probably be precise enough).

HTH,

~Tim
-- 
The blade cuts clean through                |piglet@stirfried.vegetable.org.uk
              the island soil,              |http://spodzone.org.uk/
The years roll back and                     |
        the world grows small               |



Reply to: