From: "David A. Parker" <dparker@utica.edu> To: debian-firewall@lists.debian.org Subject: Re: how to log iptables Date: Tue, 28 Mar 2006 11:02:10 -0500 Hello, # Log all incoming TCP packets iptables -A INPUT -p tcp -j LOG --log-prefix "---[LOGGED (INPUT)]:--- " # Log all incoming UDP packets iptables -A INPUT -p udp -j LOG --log-prefix "---[LOGGED (INPUT)]:--- "Note that these rules will log EVERY INCOMING PACKET and your syslog logs will get pretty big.
is it possible to save the log in different files?!? an example: iptables -A INPUT -p tcp -j LOG --log-prefix "---[LOGGED (INPUT)]:--- " save log to /var/log/iptables_input_tcp and iptables -A INPUT -p udp -j LOG --log-prefix "---[LOGGED (INPUT)]:--- " save log to /var/log/iptables_input_udp Thanks! _________________________________________________________________ Scarica gratuitamente MSN Toolbar! http://toolbar.msn.it/