Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables connection analyzer tool?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
daemonflower
Apprentice
Apprentice


Joined: 17 Jul 2004
Posts: 290

PostPosted: Tue Oct 19, 2004 10:23 pm    Post subject: iptables connection analyzer tool? Reply with quote

I have the following problem.
I manage a dialin server for my home network. The server serves as web proxy with squid, as well as doing NAT. Up to now, NAT was only used extensively by one person (me). This is about to change.
I need to analyze the connection for the last month, to find out who has to pay which share of the phone bill. This is no problem, as long as all net access uses squid, as I can analyze squid's access.log (there is a tool called squeezer2 I use for this). This breaks down when I use iptables; at least I have not found any tool which can take /var/log/messages (I understand this is the location where netfilter logs its messages) and produce a list of which computer in the internal network has been online for how long.
Now I am not an expert on iptables at all, that much is clear. That being as it is, I would appreciate it if anybody could just tell me a tool which generates this human-readable log from the iptables output. I haven't found anything like that on the net though, so I expect I'll have to roll one on my own. Some issues I have found before I even started to do that:
The internal IP is not recorded, when an connection is forwarded in the router. I don't know how to write a rule to do this.
Not all packets are logged by default. I think to make a reliable accounting tool you have to log every single package, not only the critical or dropped ones, even if that generates a huge log file.
There are other issues, but I'm in an early stage of understanding the problem at all yet. You could obviously tell me to RTFM, and I'd appreciate any hints at good tutorials for what I have in mind as much as ready-made solutions. I can't believe I am the first person to have this problem. Maybe I just used the wrong search terms...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum