* libpcap (tcpdump) and netfilter (iptables)
@ 2008-10-29 13:20 Pierre LEBRECH
2008-10-29 13:56 ` Gáspár Lajos
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Pierre LEBRECH @ 2008-10-29 13:20 UTC (permalink / raw)
To: netfilter
Hi,
It seems that even if I drop some INPUT packets with iptables, tcpdump
still sees these packets arriving on the ethernet interface.
Could anybody explain me a bit about this?
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: libpcap (tcpdump) and netfilter (iptables) 2008-10-29 13:20 libpcap (tcpdump) and netfilter (iptables) Pierre LEBRECH @ 2008-10-29 13:56 ` Gáspár Lajos 2008-10-29 13:56 ` Gáspár Lajos 2008-10-29 14:00 ` Julien Vehent 2 siblings, 0 replies; 6+ messages in thread From: Gáspár Lajos @ 2008-10-29 13:56 UTC (permalink / raw) To: Pierre LEBRECH; +Cc: netfilter Hi! Short answer: Yes. tcpdump sees every packet. Long answer: http://www.google.hu/search?q=iptables+tcpdump http://mydebian.blogdns.org/?p=85 Swifty Pierre LEBRECH írta: > Hi, > > It seems that even if I drop some INPUT packets with iptables, tcpdump > still sees these packets arriving on the ethernet interface. > > Could anybody explain me a bit about this? > > Thanks > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libpcap (tcpdump) and netfilter (iptables) 2008-10-29 13:20 libpcap (tcpdump) and netfilter (iptables) Pierre LEBRECH 2008-10-29 13:56 ` Gáspár Lajos @ 2008-10-29 13:56 ` Gáspár Lajos 2008-10-29 14:00 ` Julien Vehent 2 siblings, 0 replies; 6+ messages in thread From: Gáspár Lajos @ 2008-10-29 13:56 UTC (permalink / raw) To: Pierre LEBRECH; +Cc: netfilter Hi! Short answer: Yes. tcpdump sees every packet. Long answer: http://www.google.hu/search?q=iptables+tcpdump http://mydebian.blogdns.org/?p=85 Swifty Pierre LEBRECH írta: > Hi, > > It seems that even if I drop some INPUT packets with iptables, tcpdump > still sees these packets arriving on the ethernet interface. > > Could anybody explain me a bit about this? > > Thanks > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libpcap (tcpdump) and netfilter (iptables) 2008-10-29 13:20 libpcap (tcpdump) and netfilter (iptables) Pierre LEBRECH 2008-10-29 13:56 ` Gáspár Lajos 2008-10-29 13:56 ` Gáspár Lajos @ 2008-10-29 14:00 ` Julien Vehent 2008-10-29 15:11 ` Thomas Jacob 2 siblings, 1 reply; 6+ messages in thread From: Julien Vehent @ 2008-10-29 14:00 UTC (permalink / raw) To: Pierre LEBRECH; +Cc: netfilter Hi, On Wed, 29 Oct 2008 14:20:36 +0100, Pierre LEBRECH <pierre.lebrech@laposte.net> wrote: > Hi, > > It seems that even if I drop some INPUT packets with iptables, tcpdump > still sees these packets arriving on the ethernet interface. > > Could anybody explain me a bit about this? The pcap driver catch the packet before it's processed by netfilter. This is a known issue that has even been used in a rootkit PoC to communicate with the rootkit before the firewall drops the packet. > > Thanks > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Regards, Julien -- www.linuxwall.info ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libpcap (tcpdump) and netfilter (iptables) 2008-10-29 14:00 ` Julien Vehent @ 2008-10-29 15:11 ` Thomas Jacob 2008-10-29 16:02 ` Julien Vehent 0 siblings, 1 reply; 6+ messages in thread From: Thomas Jacob @ 2008-10-29 15:11 UTC (permalink / raw) To: netfilter On Wed, 2008-10-29 at 15:00 +0100, Julien Vehent wrote: > Hi, > > On Wed, 29 Oct 2008 14:20:36 +0100, Pierre LEBRECH > <pierre.lebrech@laposte.net> wrote: > > Hi, > > > > It seems that even if I drop some INPUT packets with iptables, tcpdump > > still sees these packets arriving on the ethernet interface. > > > > Could anybody explain me a bit about this? > > The pcap driver catch the packet before it's processed by netfilter. > This is a known issue that has even been used in a rootkit PoC to > communicate with the rootkit before the firewall drops the packet. You may call it a "known issue", I'd called a very useful and desirable feature for debugging network packet filters. If you want to protect your machine against this issue, you could simply disable packet sockets, couldn't you? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: libpcap (tcpdump) and netfilter (iptables) 2008-10-29 15:11 ` Thomas Jacob @ 2008-10-29 16:02 ` Julien Vehent 0 siblings, 0 replies; 6+ messages in thread From: Julien Vehent @ 2008-10-29 16:02 UTC (permalink / raw) To: Thomas Jacob; +Cc: netfilter On Wed, 29 Oct 2008 16:11:25 +0100, Thomas Jacob <jacob@internet24.de> wrote: > On Wed, 2008-10-29 at 15:00 +0100, Julien Vehent wrote: >> Hi, >> >> On Wed, 29 Oct 2008 14:20:36 +0100, Pierre LEBRECH >> <pierre.lebrech@laposte.net> wrote: >> > Hi, >> > >> > It seems that even if I drop some INPUT packets with iptables, tcpdump >> > still sees these packets arriving on the ethernet interface. >> > >> > Could anybody explain me a bit about this? >> >> The pcap driver catch the packet before it's processed by netfilter. >> This is a known issue that has even been used in a rootkit PoC to >> communicate with the rootkit before the firewall drops the packet. > > You may call it a "known issue", I'd called a very useful > and desirable feature for debugging network packet filters. > > If you want to protect your machine against this issue, you > could simply disable packet sockets, couldn't you? This is right, "issue" may not be the right term to use here... Let's call it a "poorly documented feature". And in the case an attacker has access to the root, the pcap lib should be the least of your preoccupations... Considering pcap is never install on production machines (at least, where I work), I never had to worry about this. :) > > -- > To unsubscribe from this list: send the line "unsubscribe netfilter" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- www.linuxwall.info ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-10-29 16:02 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-10-29 13:20 libpcap (tcpdump) and netfilter (iptables) Pierre LEBRECH 2008-10-29 13:56 ` Gáspár Lajos 2008-10-29 13:56 ` Gáspár Lajos 2008-10-29 14:00 ` Julien Vehent 2008-10-29 15:11 ` Thomas Jacob 2008-10-29 16:02 ` Julien Vehent
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox