Linux Netfilter discussions
 help / color / mirror / Atom feed
* Packet Sniffing
@ 2003-04-14 19:30 Patrick Ahler
  2003-04-14 21:52 ` Marcelo Moreira
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick Ahler @ 2003-04-14 19:30 UTC (permalink / raw)
  To: netfilter EMAIL

Using iptables as a firewall/gateway/router machine for my stub network.
Using snat and dnat to translate internal ip's to public and vice versa.

Want to setup a machine inside the network to packet sniff. I was hoping
iptables could do this. What I'd like is if iptables would route each
incoming packet to the correct machine, but also direct it to the packet
sniffer (in other words duplicate the packet and send to 2 destinations).

Just wondering if this is possible and if it is how can I set this up? I've
also tried doing all my packet sniffing off the firewall, but I've been
unsuccessful, can't seem to get ethereal to look at the forwarded packets.
If someone knows a way to successfully do setup either solutions please let
me know.

Thanks,
Patrick




^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Packet Sniffing
@ 2003-04-15  8:14 dhiraj.2.bhuyan
  0 siblings, 0 replies; 8+ messages in thread
From: dhiraj.2.bhuyan @ 2003-04-15  8:14 UTC (permalink / raw)
  To: patrick, netfilter



I think using a sniffer on the firewall may not be a good idea (other than
for troubleshooting purpose) 
- as it will leave the box in promiscous mode

Use something like this -



		 -----------		    --------
 public    	|		|   	private  |		|----[Other
private machines/Hubs]
	------| firewall	|--------------|  HUB	|
 interface	|		|	network  |
|----[Machine with sniffer]
	 	 -----------		    --------		



Now all traffic flowing in and out of the private network can be sniffed by
using ethereal/tcpdump 
on the "Machine with sniffer".

Note that many of these so-called-HUB do switching between the 10 and 100
Mbps link. So you will
have to configure all the machines to use the same connectivity speed to be
able to see all traffic.


dhiraj


-----Original Message-----
From: Patrick Ahler [mailto:patrick@vikus.com]
Sent: 14 April 2003 19:30
To: netfilter EMAIL
Subject: Packet Sniffing


Using iptables as a firewall/gateway/router machine for my stub network.
Using snat and dnat to translate internal ip's to public and vice versa.

Want to setup a machine inside the network to packet sniff. I was hoping
iptables could do this. What I'd like is if iptables would route each
incoming packet to the correct machine, but also direct it to the packet
sniffer (in other words duplicate the packet and send to 2 destinations).

Just wondering if this is possible and if it is how can I set this up? I've
also tried doing all my packet sniffing off the firewall, but I've been
unsuccessful, can't seem to get ethereal to look at the forwarded packets.
If someone knows a way to successfully do setup either solutions please let
me know.

Thanks,
Patrick





^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Packet Sniffing
@ 2003-04-15 17:04 Patrick Ahler
  2003-04-15 17:22 ` Aldo Lagana
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick Ahler @ 2003-04-15 17:04 UTC (permalink / raw)
  To: netfilter EMAIL

Know of any good packet sniffer's? tcp dump with Ethereal is great, but is
it possible to set up reports from that? I need software that will be able
to print a report of who was looking at what web pages... and then be able
to print out weekly reports for each employee or "IP waster" as I call them
=). The boss is tired of employees lookin at porn during work =).

Thanks,
Patrick




^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Packet Sniffing
@ 2003-04-15 17:20 Doug Johnson
  2003-04-15 18:24 ` Patrick Ahler
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Johnson @ 2003-04-15 17:20 UTC (permalink / raw)
  To: 'Patrick Ahler', netfilter EMAIL

In that scenario it is best use use a proxy server (such as Squid) and find
one of many analysis tools http://www.squid-cache.org/Scripts/ to do the
reporting for you. You can even use a redirector to block porn from
precompiled db's. Such redirectors can be found at
http://www.squid-cache.org/related-software.html . And the neat thing is
that some of the analysys tools are setup with the redirectors listed such
as squidGuard and Sarg. They are fairly east to setup.

Good Luck Patrick.
Doug

-----Original Message-----
From: Patrick Ahler [mailto:patrick@vikus.com]
Sent: Tuesday, April 15, 2003 1:05 PM
To: netfilter EMAIL
Subject: RE: Packet Sniffing


Know of any good packet sniffer's? tcp dump with Ethereal is great, but is
it possible to set up reports from that? I need software that will be able
to print a report of who was looking at what web pages... and then be able
to print out weekly reports for each employee or "IP waster" as I call them
=). The boss is tired of employees lookin at porn during work =).

Thanks,
Patrick




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

end of thread, other threads:[~2003-04-16 12:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-14 19:30 Packet Sniffing Patrick Ahler
2003-04-14 21:52 ` Marcelo Moreira
2003-04-16 12:06   ` iptables 1.2.8, mangle-recomputes, userspace? Scott MacKay
  -- strict thread matches above, loose matches on Subject: below --
2003-04-15  8:14 Packet Sniffing dhiraj.2.bhuyan
2003-04-15 17:04 Patrick Ahler
2003-04-15 17:22 ` Aldo Lagana
2003-04-15 17:20 Doug Johnson
2003-04-15 18:24 ` Patrick Ahler

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