Connection Tracking: What are they doing?
Posted: 04 Jan 2007, 17:22
Is it possible to add a new feature to CSF so that if an IP address is blocked due to exceeding the CT_LIMIT (Connection Tracking Limit) the email produced actually contains details of the connections in progress.
For example, instead of just:
For example, instead of just:
we get something like:From: root
To: root
Subject: lfd: 12.34.56.78 blocked with too many connections
Time: 04/Jan/2007 13:24
IP: 12.34.56.78
Connections: 400
Blocked: 3800
This is so that we'll have a better idea of exactly why a user was blocked. Should be quite simple to modify the code IMHO.From: root
To: root
Subject: lfd: 12.34.56.78 blocked with too many connections
Time: 04/Jan/2007 13:24
IP: 12.34.56.78
Connections: 400
Blocked: 3800
tcp 0 0 127.0.0.1:80 12.34.56.78:2780 TIME_WAIT
tcp 0 0 127.0.0.1:80 12.34.56.78:20078 TIME_WAIT
tcp 0 0 127.0.0.1:80 12.34.56.78:19310 TIME_WAIT
tcp 0 0 127.0.0.1:80 12.34.56.78:2782 TIME_WAIT