Linux Netfilter discussions
 help / color / mirror / Atom feed
* snooping port 25 packets
@ 2004-10-04 22:07 Doug Yeager
  2004-10-04 22:20 ` Frank Gruellich
  2004-10-05  1:21 ` Jason Opperisano
  0 siblings, 2 replies; 3+ messages in thread
From: Doug Yeager @ 2004-10-04 22:07 UTC (permalink / raw)
  To: netfilter

i would like to use netfilter to snoop SMTP packets on my firewall.
has anybody done this?  is it possible?
i was leaning in the direction of trying to use the QUEUE target for 
user space processing.....but i'm not sure if that is the way to go.
once i send the packet to the QUEUE target, how do i put it back on the 
wire?
what i really want is a copy of each packet to port 25 sent to a user 
space program.

thx,
doug



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

* Re: snooping port 25 packets
  2004-10-04 22:07 snooping port 25 packets Doug Yeager
@ 2004-10-04 22:20 ` Frank Gruellich
  2004-10-05  1:21 ` Jason Opperisano
  1 sibling, 0 replies; 3+ messages in thread
From: Frank Gruellich @ 2004-10-04 22:20 UTC (permalink / raw)
  To: netfilter

* Doug Yeager <doug@mortonfarms.com>  4. Oct 04:
> what i really want is a copy of each packet to port 25 sent to a user 
> space program.

# tcpdump -ni $if -w funny_mails.dat -s 2048 port smtp

HTH,
 regards, Frank.
-- 
Sigmentation fault


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

* Re: snooping port 25 packets
  2004-10-04 22:07 snooping port 25 packets Doug Yeager
  2004-10-04 22:20 ` Frank Gruellich
@ 2004-10-05  1:21 ` Jason Opperisano
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Opperisano @ 2004-10-05  1:21 UTC (permalink / raw)
  To: netfilter

On Mon, 2004-10-04 at 18:07, Doug Yeager wrote:
> i would like to use netfilter to snoop SMTP packets on my firewall.
> has anybody done this?  is it possible?
> i was leaning in the direction of trying to use the QUEUE target for 
> user space processing.....but i'm not sure if that is the way to go.

the QUEUE target is the way to go if you need to do custom processing to
make the accept/drop decision; or if you want to modify & reinsert the
packet into the stream.

> once i send the packet to the QUEUE target, how do i put it back on the 
> wire?
> what i really want is a copy of each packet to port 25 sent to a user 
> space program.

if you just need to capture packets, you can use any bpf reader to do it
(tcpdump, snort, ethereal).

not 100% sure what you looking to do, but snort inline
(http://snort-inline.sourceforge.net/) may be of some use to you as
well.

-j

-- 
Jason Opperisano <opie@817west.com>



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

end of thread, other threads:[~2004-10-05  1:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 22:07 snooping port 25 packets Doug Yeager
2004-10-04 22:20 ` Frank Gruellich
2004-10-05  1:21 ` Jason Opperisano

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