The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
All exisiting connections from AIX 5.3 ajeeb AIX 5 02-05-2009 09:22 PM
max connections aix invinzin21 Shell Programming and Scripting 0 02-12-2008 04:46 AM
active network connections youmna Linux 1 10-29-2005 08:38 AM
HP-UX: X connections...? abhayh HP-UX 0 04-25-2005 06:22 AM
Establishing connections BigTool4u2 UNIX for Dummies Questions & Answers 1 04-18-2004 10:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-02-2009
abstrcrndm abstrcrndm is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
Question Logging network connections

Hello,

I have a centralized syslog server, and am wondering if there is a way to log all network connections to it (Primarily incoming, such as FTP, httpd, SSH, etc). Essentially what I would like is to get the information seen in netstat or lsof logged line by line, realtime. Is there a program to do this? I would think this is relatively common, but I have had no luck searching for it. Thanks for your time!
  #2 (permalink)  
Old 04-03-2009
humbletech99 humbletech99 is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 18
Are you asking how to log to a logserver in general?

Daemons log their own connections. You just need to make sure they are well configured, and that they are logging to syslog. As long as your system logger is sending to the logserver, there will be an auditable log on the server of all the connections.

Otherwise you need to find some general purpose connection logger, you may try something like grsec which can log all sorts of things (but beware it can log a lot) or some program (can't think of one off the top of my head that doesn't also record packets...)
  #3 (permalink)  
Old 04-05-2009
abstrcrndm abstrcrndm is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
Thanks for the reply. I have setup lots of different things to log, just wondering how to log information about connections to the network. Essentially how do I log information such as this as it happens:

sshd 5571 root 4u IPv4 115178105 TCP 1.2.3.4:ssh->5.6.7.8:51185 (ESTABLISHED)

Obviously I am getting information logged from Apache as far as who connects to the webserver, and mail servers are logging IP's of people that connect to that service, but I am looking for a daemon I can run that will essentially give me the info that netstat or lsof will give, which I can then have logged. Basically I what I would like is for something like netstat to run and all new entries that would show up when someone connects to any port on the system would generate a log entry. Thanks again!
  #4 (permalink)  
Old 04-24-2009
vadi01 vadi01 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 3
this might help

you can try using traffpro (http://en.traffpro.ru).

It has a good logging system and you can easily control whoi logs in and who logs out of your network using a graphical monitoring system.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0