Linux Netfilter discussions
 help / color / mirror / Atom feed
* log all dropped packets
@ 2002-10-02  1:18 SB CH
  2002-10-02  3:38 ` Darrell A. Escola
  2002-10-02  4:59 ` Stewart Thompson
  0 siblings, 2 replies; 5+ messages in thread
From: SB CH @ 2002-10-02  1:18 UTC (permalink / raw)
  To: netfilter

Hello, all.

my two questions are similar.

Question1. 
I would like to log all Dropped packet.
How can I write a log about all dropped packet?


Question2.
Surely, my default policy is DROP.
and one can't log about related default Policy.
How can I log packet information about default policy related? 


Thanks in advance.



_________________________________________________________________
보다 빠르고 보기 편한 뉴스. 오늘의 화제는 MSN 뉴스에서 확인하세요. 
http://www.msn.co.kr/news/



^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: log all dropped packets
@ 2002-10-02 21:53 Yogini Parkhi
  0 siblings, 0 replies; 5+ messages in thread
From: Yogini Parkhi @ 2002-10-02 21:53 UTC (permalink / raw)
  To: SB CH, netfilter

For Q1. You can do a little trick and create a user chain called LOGDROP and then use that.
e.g.
iptables -N LOGDROP
iptables -j LOG -log-preifx "LOGDROP: "

now, where ever you were using target DROP, use LOGDROP instead. This way you can make sure you log things before dropping.

For logging traffic handled by default policy you will have to have a last rule in all default chains - INPUT, OUTPUT, FORWARD that logs traffic with the right prefix.

Iptables -A INPUT -j LOG -log-prefix "INPUTDEFAULT: "
Iptables -A INPUT -j LOG -log-prefix "FORWARDDEFAULT: "
Iptables -A INPUT -j LOG -log-prefix "OUTPUTDEFAULT: "

Hope this helps you.
-Y



-----Original Message-----
From: SB CH [mailto:chulmin2@hotmail.com]
Sent: Tuesday, October 01, 2002 6:19 PM
To: netfilter@lists.netfilter.org
Subject: log all dropped packets

Hello, all.

my two questions are similar.

Question1.
I would like to log all Dropped packet.
How can I write a log about all dropped packet?


Question2.
Surely, my default policy is DROP.
and one can't log about related default Policy.
How can I log packet information about default policy related?


Thanks in advance.



_________________________________________________________________
보다 빠르고 보기 편한 뉴스. 오늘의 화제는 MSN 뉴스에서 확인하세요.
http://www.msn.co.kr/news/



^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: log all dropped packets
@ 2002-10-03 22:20 Yogini Parkhi
  0 siblings, 0 replies; 5+ messages in thread
From: Yogini Parkhi @ 2002-10-03 22:20 UTC (permalink / raw)
  To: SB CH, netfilter

For Q1. You can do a little trick and create a user chain called LOGDROP and then use that.
e.g.
iptables -N LOGDROP
iptables -j LOG -log-preifx "LOGDROP: "

now, where ever you were using target DROP, use LOGDROP instead. This way you can make sure you log things before dropping.

For logging traffic handled by default policy you will have to have a last rule in all default chains - INPUT, OUTPUT, FORWARD that logs traffic with the right prefix.

Iptables -A INPUT -j LOG -log-prefix "INPUTDEFAULT: "
Iptables -A INPUT -j LOG -log-prefix "FORWARDDEFAULT: "
Iptables -A INPUT -j LOG -log-prefix "OUTPUTDEFAULT: "

Hope this helps you.
-Y



-----Original Message-----
From: SB CH [mailto:chulmin2@hotmail.com]
Sent: Tuesday, October 01, 2002 6:19 PM
To: netfilter@lists.netfilter.org
Subject: log all dropped packets

Hello, all.

my two questions are similar.

Question1.
I would like to log all Dropped packet.
How can I write a log about all dropped packet?


Question2.
Surely, my default policy is DROP.
and one can't log about related default Policy.
How can I log packet information about default policy related?


Thanks in advance.



_________________________________________________________________
보다 빠르고 보기 편한 뉴스. 오늘의 화제는 MSN 뉴스에서 확인하세요.
http://www.msn.co.kr/news/


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

end of thread, other threads:[~2002-10-03 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-02  1:18 log all dropped packets SB CH
2002-10-02  3:38 ` Darrell A. Escola
2002-10-02  4:59 ` Stewart Thompson
  -- strict thread matches above, loose matches on Subject: below --
2002-10-02 21:53 Yogini Parkhi
2002-10-03 22:20 Yogini Parkhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox