Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Monitoring certain Hosts
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
smileycap
n00b
n00b


Joined: 29 Jul 2004
Posts: 2

PostPosted: Thu Jul 29, 2004 7:36 pm    Post subject: Monitoring certain Hosts Reply with quote

What I want to be able to do is monitor any and all types of incoming and outgoing connections of a host/IP. What programs will allow me to do this? Any help is greatly appreciated.
Back to top
View user's profile Send private message
db_404
Guru
Guru


Joined: 05 Dec 2002
Posts: 336

PostPosted: Thu Jul 29, 2004 7:56 pm    Post subject: Reply with quote

If it's a host on your subnet then ettercap and a packet analysis/dump tool (e.g ethereal, tcpdump, netcat etc..etc.).

If it's not a host on your subnet then, erm, no you can't.
Back to top
View user's profile Send private message
smileycap
n00b
n00b


Joined: 29 Jul 2004
Posts: 2

PostPosted: Thu Jul 29, 2004 8:07 pm    Post subject: Reply with quote

Ahh, I didn't ask my question correctly. What i want to do is log incoming/outgoing data coming from/going to certain hosts. How can i do this?
Back to top
View user's profile Send private message
Jeremy_Z
l33t
l33t


Joined: 05 Apr 2004
Posts: 671
Location: Shanghai

PostPosted: Thu Jul 29, 2004 8:14 pm    Post subject: Reply with quote

You can log via iptables, just have a rule for that host.
_________________
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
Back to top
View user's profile Send private message
intgr
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 225
Location: Earth, Sol, Milky Way

PostPosted: Thu Jul 29, 2004 8:28 pm    Post subject: Reply with quote

You might want to try ngrep, it's quite useful if you want to capture only some substrings from the TCP traffic.
Also, ettercap has a nice ncurses UI, and it can perform man-in-the-middle for SSL, but be careful -- you can blow up your LAN if you enable some of its malicious features.
Back to top
View user's profile Send private message
db_404
Guru
Guru


Joined: 05 Dec 2002
Posts: 336

PostPosted: Thu Jul 29, 2004 8:32 pm    Post subject: Reply with quote

To log the connections you could use IP tables. If you are after the actual data you'll have to use something like ethereal or tcpdump (or even snort). You can set these up to only capture packets to/from the sources you specify.

Ethereal is probably the easiest to use, have a look at http://www.ethereal.com.
Back to top
View user's profile Send private message
Jeremy_Z
l33t
l33t


Joined: 05 Apr 2004
Posts: 671
Location: Shanghai

PostPosted: Thu Jul 29, 2004 9:29 pm    Post subject: Reply with quote

If you want to log the data ethereal could do the trick, but if you want to analyze the data and/or do things according to the data you may have to hack your own perl script.

For example it is very easy to detect kazaa user by looking into the packets for obvious
Code:

X-Kazaa-Username: xxxx
X-Kazaa-Network: KaZaA
X-Kazaa-IP: ip:port
X-Kazaa-SupernodeIP: ip:port


Then it is not difficult to have your script do some nasty things like modify iptables rules, log, ect ..
_________________
"Because two groups of consumers drive the absolute high end of home computing: the gamers and the porn surfers." /.
My gentoo projects, Kelogviewer and a QT4 gui for etc-proposals
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