* ULOG/NFLOG on a non-forwarding machine
@ 2008-09-23 9:50 Benny Amorsen
2008-09-24 2:57 ` Grant Taylor
2008-09-26 0:43 ` Philip Craig
0 siblings, 2 replies; 7+ messages in thread
From: Benny Amorsen @ 2008-09-23 9:50 UTC (permalink / raw)
To: netfilter
We have a monitor server in place which we use to get flow
information. Currently libpcap-based is in use, but it would be nice
to be able to use ULOG or NFLOG for this.
The challenge is that the monitor-server does not actually forward any
packets. It is connected to a mirror-port on a switch, so that it is
able to see all traffic. However, the traffic does not show up in any
netfilter chains, because no routing or bridging is in place on the
monitor server.
Is there a way to catch incoming traffic which is neither INPUT nor
FORWARD with netfilter?
/Benny
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ULOG/NFLOG on a non-forwarding machine
2008-09-23 9:50 ULOG/NFLOG on a non-forwarding machine Benny Amorsen
@ 2008-09-24 2:57 ` Grant Taylor
2008-09-25 9:07 ` Benny Amorsen
2008-09-26 0:43 ` Philip Craig
1 sibling, 1 reply; 7+ messages in thread
From: Grant Taylor @ 2008-09-24 2:57 UTC (permalink / raw)
To: Mail List - Netfilter
On 9/23/2008 4:50 AM, Benny Amorsen wrote:
> Is there a way to catch incoming traffic which is neither INPUT nor
> FORWARD with netfilter?
You /might/ be able to catch some traffic *if* the Linux TCP/IP stack
thought that it was appropriately addressed to the system.
I think you will have better luck doing this with bridging as bridging
is (more) accustom to dealing with traffic that may or may not be
addressed to the local system.
It may be possible to get IPTables to log some information about packets
that it thinks are completely erroneous, but I'm thinking that if it is
possible, it will be severely limited.
Grant. . . .
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ULOG/NFLOG on a non-forwarding machine
2008-09-24 2:57 ` Grant Taylor
@ 2008-09-25 9:07 ` Benny Amorsen
2008-09-25 14:05 ` Grant Taylor
0 siblings, 1 reply; 7+ messages in thread
From: Benny Amorsen @ 2008-09-25 9:07 UTC (permalink / raw)
To: Grant Taylor; +Cc: Mail List - Netfilter
Grant Taylor <gtaylor@riverviewtech.net> writes:
> You /might/ be able to catch some traffic *if* the Linux TCP/IP stack
> thought that it was appropriately addressed to the system.
That is exactly the problem. The network stack doesn't think it needs
to do anything with the packets.
> I think you will have better luck doing this with bridging as bridging
> is (more) accustom to dealing with traffic that may or may not be
> addressed to the local system.
If the kernel has to forward the packet, the performance advantages of
using NFLOG probably disappear.
I guess I'm sticking to libpcap then.
/Benny
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ULOG/NFLOG on a non-forwarding machine
2008-09-25 9:07 ` Benny Amorsen
@ 2008-09-25 14:05 ` Grant Taylor
0 siblings, 0 replies; 7+ messages in thread
From: Grant Taylor @ 2008-09-25 14:05 UTC (permalink / raw)
To: Mail List - Netfilter
On 09/25/08 04:07, Benny Amorsen wrote:
> That is exactly the problem. The network stack doesn't think it needs
> to do anything with the packets.
*nod*
> If the kernel has to forward the packet, the performance advantages
> of using NFLOG probably disappear.
Eh...
> I guess I'm sticking to libpcap then.
Consider looking at bridging and allowing IPTables to see bridged
traffic. The traffic will end up being dropped or not forwarded because
there is no destination on the other side. However in the process I
think the traffic will pass through IPTables thus allowing you to do
what you are wanting to do.
Grant. . . .
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ULOG/NFLOG on a non-forwarding machine
2008-09-23 9:50 ULOG/NFLOG on a non-forwarding machine Benny Amorsen
2008-09-24 2:57 ` Grant Taylor
@ 2008-09-26 0:43 ` Philip Craig
2008-09-27 13:42 ` Benny Amorsen
2008-10-02 8:44 ` Покотиленко Костик
1 sibling, 2 replies; 7+ messages in thread
From: Philip Craig @ 2008-09-26 0:43 UTC (permalink / raw)
To: Benny Amorsen; +Cc: netfilter
Benny Amorsen wrote:
> Is there a way to catch incoming traffic which is neither INPUT nor
> FORWARD with netfilter?
Have you tried PREROUTING?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ULOG/NFLOG on a non-forwarding machine
2008-09-26 0:43 ` Philip Craig
@ 2008-09-27 13:42 ` Benny Amorsen
2008-10-02 8:44 ` Покотиленко Костик
1 sibling, 0 replies; 7+ messages in thread
From: Benny Amorsen @ 2008-09-27 13:42 UTC (permalink / raw)
To: Philip Craig; +Cc: netfilter
Philip Craig <philipc@snapgear.com> writes:
> Benny Amorsen wrote:
>> Is there a way to catch incoming traffic which is neither INPUT nor
>> FORWARD with netfilter?
>
> Have you tried PREROUTING?
Yes, I have tried PREROUTING and I've tried the nat and mangle tables.
No luck.
/Benny
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ULOG/NFLOG on a non-forwarding machine
2008-09-26 0:43 ` Philip Craig
2008-09-27 13:42 ` Benny Amorsen
@ 2008-10-02 8:44 ` Покотиленко Костик
1 sibling, 0 replies; 7+ messages in thread
From: Покотиленко Костик @ 2008-10-02 8:44 UTC (permalink / raw)
To: Philip Craig; +Cc: Benny Amorsen, netfilter
В Птн, 26/09/2008 в 10:43 +1000, Philip Craig пишет:
> Benny Amorsen wrote:
> > Is there a way to catch incoming traffic which is neither INPUT nor
> > FORWARD with netfilter?
>
> Have you tried PREROUTING?
Also, have you tried putting interface in "promiscous mode". This way it
will receive all packets including those not addessed to the host
itself. They would be dropped later, but you still can grab them.
--
Покотиленко Костик <casper@meteor.dp.ua>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-10-02 8:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23 9:50 ULOG/NFLOG on a non-forwarding machine Benny Amorsen
2008-09-24 2:57 ` Grant Taylor
2008-09-25 9:07 ` Benny Amorsen
2008-09-25 14:05 ` Grant Taylor
2008-09-26 0:43 ` Philip Craig
2008-09-27 13:42 ` Benny Amorsen
2008-10-02 8:44 ` Покотиленко Костик
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox