How to log dropped packet ?
Hi all.
I hope to know how to log dropped/accepted packets. For example,
iptables -A INPUT -i eth0 -p tcp -d 10.10.10.1 --dport 22 -j ACCEPT
How can I log it ?
I don't understand how '-j LOG' target operate.
Help.
Quoted 5 lines · Jerry Kim
Hi all.
I hope to know how to log dropped/accepted packets. For example,
Exactly the same except put -j LOG --log-prefix "Accept input eth0" instead of -j ACCEPT.
Oh, and the log rule must be before the accept/drop rule.
Quoted 7 lines
iptables -A INPUT -i eth0 -p tcp -d 10.10.10.1 --dport 22 -j ACCEPT
How can I log it ?
I don't understand how '-j LOG' target operate.Help.
Signature · 7 lines
-- Raymond Leach <[email protected]> Network Support Specialist http://www.knowledgefactory.co.za "lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import" Key fingerprint = 7209 A695 9EE0 E971 A9AD 00EE 8757 EE47 F06F FB28 --
Hi all,
I apologize for being a little OT, but has anybody tried to log to another file than /var/log/syslog when using -j log ? if so, thanks for sharing the experience ;o)
--
Open WebMail Project (http://openwebmail.org)
---------- Original Message -----------
From: Ray Leach <[email protected]>
To: Netfilter Mailing List <[email protected]>
Sent: 16 Jul 2003 14:49:47 +0200
Subject: Re: How to log dropped packet ?
Quoted 10 lines · Jerry Kim
Quoted 5 lines
Hi all.
I hope to know how to log dropped/accepted packets. For example,
Exactly the same except put -j LOG --log-prefix "Accept input eth0" instead of -j ACCEPT.
Oh, and the log rule must be before the accept/drop rule.
Quoted 15 lines
Quoted 7 lines
iptables -A INPUT -i eth0 -p tcp -d 10.10.10.1 --dport 22 -j ACCEPT
How can I log it ?
I don't understand how '-j LOG' target operate.Help.
Signature · 7 lines
-- Raymond Leach <[email protected]> Network Support Specialist http://www.knowledgefactory.co.za "lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import" Key fingerprint = 7209 A695 9EE0 E971 A9AD 00EE 8757 EE47 F06F FB28 --
------- End of Original Message -------
man syslog.conf
man syslogd
also -j LOG --log-level info/alert/debug...
Quoted 5 lines · Julien Didron
Hi all,
I apologize for being a little OT, but has anybody tried to log to another file than
/var/log/syslogwhen using -j log ? if so, thanks for sharing the experience ;o)
Hi,
you could take a look at the ULOG target. You'll need the additional ulogd-package from http://gnumonks.org/gnumonks/projects . With this you can log pakets to plain text files, databases, etc. More information is in the iptables man-Page and probably in the ulogd package itself, I haven't used it for some time.
Hope this helps
Sven
Quoted 9 lines · Julien Didron
Hi all,
I apologize for being a little OT, but has anybody tried to log to another file than
/var/log/syslogwhen using -j log ? if so, thanks for sharing the experience ;o)--
Open WebMail Project (http://openwebmail.org)