Determining number of connections passing a gw

Hello!

I'd like to determine the number of connections (by IP) passing the gateway. The gateway runs Debian, but no NAT is used. I've tried using conntrack, and parsing but only after a few hours, the table becomes full...

Is there any other way to derermine the number of connections by IP?

what I'd like to get:

(gateway: 1.2.3.254
hosts:1.2.3.1....1.2.3.253)

1.2.3.1: 45 connections
1.2.3.2: 34 connections
....
1.2.3.253: 123 connections

Can anyone help me?

Petya

0
Syndicate content