Due to stupid Danish regulations I have to log all sites with more than 100 users - Please don’t ask me why, it just is so!
I need to log the following information about all connections:
Sender IP
Destination IP
Sender Port number
Destination Port number
Protocol used
All this seem rather possible, but I also need to log the time for the connections establishment (not a problem) AND the time the connection was destroyed. (First and last package in an internet session).
The first part is easy (SYN/ACK) with a mark on new connection, but how do i register the latter: Sessions last package (FIN)?
The solution I am seeking is based on the European law (EU) against Terrorism. It is a law that requires ALL ISP’s to identify ALL sessions made on their net with certain specifications. The rest of Europe (EU) is still considering how to implement this law but here in Denmark our imbacile politicians passed the law to be implemented 17/9-2007 - without any regards to the flaws and holes in this suggestion made by EU.
The law is implemented so any commercial ISP with more than 100 customers is to follow it - except public facilities as Libraries, schools, univercities and so on. Also - to my great surprice - our non-commercial community wireless networks are considered as commercial because: “We provide a service that COULD be provided on commercial basis”. Please do not ask further, we feel that the good old East German “Stasi” has invaded our lives, but law is law and …
BTW: Services like “Hotmail” - “Yahoo mail” and similar are exempt from this law - just to make the joke complete.
Thus, I need to be able to identify (by logging) the above mentioned data together with 2 timestamps:
Session start
Session finish
Regardless of protocols used!
Maybe the only solution is to set up a proxy but if I could use the MT’s that is there anyway I could make a nifty solution.
Therefore I need to be able to identify when a session (conn_track) ends and log this…
another alternative, and I’m not sure if it’s withen your buget, but Microsoft ISA server does this type of logging, and stores it in a native MSDE database, or optionally in a full SQL Server database.