Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables + port traffic

Reply
Thread Tools Display Modes

iptables + port traffic

 
 
Rufman
Guest
Posts: n/a

 
      09-22-2007, 10:24 AM
how can i make iptables dump the amount of traffic going through
specific ports into a file, so that a prog like iam (http://
www.intevation.de/iam/) can parse the contents and display the port
traffic.

or

does anyone know a better way to measure port traffic?

thx for the help

stephane

 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      09-22-2007, 04:51 PM
Rufman wrote:
> how can i make iptables dump the amount of traffic going through
> specific ports into a file, so that a prog like iam (http://
> www.intevation.de/iam/) can parse the contents and display the port
> traffic.
>
> or
>
> does anyone know a better way to measure port traffic?


I dump select netfilter traffic into a special syslog log file (for
participation in DShield) with the following syslog.conf line.

kern.debug;kern.!info /var/log/dshield

Then in iptables I define custom log targets like

-A logaccept -j LOG --log-level debug --log-prefix "iptables ACPT: "
-A logaccept -j ACCEPT

There are debug messages from the kernel other than netfilter/iptables,
so I still have to filter the log file before I send it through
DShield's parser. You'll probably have to do the same.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: forwarding traffic among all LAN networks H.S. Linux Networking 5 11-20-2007 02:30 PM
Iptables Forwarded traffic test Linux Networking 6 10-18-2007 01:36 PM
IPTABLES MASQUERADE - WAN is OK but no LAN traffic... wisptech@gmail.com Linux Networking 9 09-01-2006 06:03 PM
Route local traffic via Iptables Jacob Linux Networking 3 08-07-2006 10:20 PM
Traffic mirroring with iptables dsmith Linux Networking 0 02-25-2005 10:53 PM



1 2 3 4 5 6 7 8 9 10 11