All of lore.kernel.org
 help / color / mirror / Atom feed
* How to log everything with iptables
@ 2005-06-15 17:48 Sebastião Antônio Campos (GWA)
  2005-06-15 18:18 ` /dev/rob0
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastião Antônio Campos (GWA) @ 2005-06-15 17:48 UTC (permalink / raw)
  To: netfilter

Hi people!

How can I do to log everything is passing thru my firewall on eth0 and eth1
and lo?? Using iptables??

Thanks

Tião 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to log everything with iptables
  2005-06-15 17:48 How to log everything with iptables Sebastião Antônio Campos (GWA)
@ 2005-06-15 18:18 ` /dev/rob0
  0 siblings, 0 replies; 2+ messages in thread
From: /dev/rob0 @ 2005-06-15 18:18 UTC (permalink / raw)
  To: netfilter

On Wednesday 15 June 2005 12:48, Sebastião Antônio Campos (GWA) wrote:
> How can I do to log everything is passing thru my firewall on eth0
> and eth1 and lo?? Using iptables??

What did you try? Are you serious? What do you expect to do with all 
those logs?

Anyway, it's quite simple. Put a -j LOG rule before any ACCEPT rules 
which you may have in INPUT and FORWARD chains. If either default 
policy is ACCEPT, put a -j LOG rule at the end of that chain too. See 
"LOG" in the "TARGET EXTENSIONS" section of iptables(8) for options.

You might also find the ULOG target of interest as well as the "limit" 
match extension.
-- 
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-15 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-15 17:48 How to log everything with iptables Sebastião Antônio Campos (GWA)
2005-06-15 18:18 ` /dev/rob0

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.