LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-18-2007, 12:28 AM   #1
jrbush82
Member
 
Registered: Mar 2002
Location: Hampton, VA
Posts: 86

Rep: Reputation: 15
Tool to Monitor Network Traffic for Firewall Rule Set?


I'm looking for a tool that will monitor network traffic (wireshark/ethereal) and based on the traffic it sees, essentially create a firewall rule set, or show in layman's terms what traffic is on the network.

My problem now, is that with wireshark, I see every packet of every connection... which for what I want to do is too much information. My goal is to just see what each system is doing over a period of a month or so. Then, based on the data received, build a more strict firewall policy.

IE: TCP 443 Outbound, TCP 80 Outbound, TCP 22 Outbound

Anybody know of any tools that would help in doing this?
 
Old 07-18-2007, 08:23 AM   #2
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi,

logging is your best friend - before the firewall doing the action.

example :
INPUT -i eth0 -p tcp -dport 22 -j LOG <then> action :
INPUT -i eth0 -p tcp -dport 22 -j ACCEPT/DROP?

HTH.
 
Old 07-18-2007, 06:59 PM   #3
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by rossonieri#1
hi,

logging is your best friend - before the firewall doing the action.

example :
INPUT -i eth0 -p tcp -dport 22 -j LOG <then> action :
INPUT -i eth0 -p tcp -dport 22 -j ACCEPT/DROP?

HTH.

I suggest having TCPDUMP (or Snort) log to a flat file:

1. For each IP (if you're using static IPs within your LAN), run an instance of tcpdump, recording each IP's activity. When the month is up, replay the traffic and conduct an analysis of what traffic was captured and adjust your firewall policy accordingly.

2. Sniff your entire internal network range for a month, using tcpdump, then when the month is up, replay the traffic, filtering on each IP's traffic and adjust your firewall policy accordingly.

Sniffing traffic is better because you should be able to see all traffic. Unless you're logging before every firewall rule, you're not going to see everything...and I don't suggest logging all firewall traffic, unless you've a ton of hard disk space to burn. A firewall should used for perimeter security, IMO...a sniffer can be used as an audit tool to enhance a firewall policy.

Last edited by unixfool; 07-18-2007 at 07:09 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor indiviual users' network traffic from my firewall ? Dark Carnival Linux - Security 2 04-01-2016 01:59 PM
comman line tool analysing network traffic on an interface aeby Linux - Networking 3 06-27-2007 06:23 AM
network traffic monitoring tool suggestions noir911 Linux - General 2 01-13-2007 02:55 PM
LXer: Darkstat - Network Traffic Analyzer or Network Monitor LXer Syndicated Linux News 0 07-04-2006 08:33 AM
Network traffic monitor teeno Linux - Software 2 09-29-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration