Re: How to log all the packets through netfilter?

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

 



Le mer 12/03/2003 a 11:34, Bobo a ecrit :
>         While using IPtables,I am now trying to log all the packets
> the firewall receives.
>      Now,I could log such packets that match the set rules.If receive
> some packet which does 
> not meet any rules in a chain,how to log it?

End you chain with a LOG target alone, e.g. for INPUT chain :

	iptables -A INPUT -j LOG

At the end of script.

-- 
Cédric Blancher  <blancher@xxxxxxxxxxxxxxxxxx>
IT systems and networks security expert  - Cartel Sécurité
Phone : +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
PGP KeyID:157E98EE  FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux