listen to ports... | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

listen to ports...

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-02-2006
tonlu tonlu is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 10 April 2007, 2:26 AM EDT
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Question listen to ports...

Hi all,

How can I log all requests on ports for programs like ftp, telnet, rsh, xdmcp etc...

I want to see if anyone uses these programs/protocols and how often.
Is it difficult to setup a log for these ports and listen on all requests?

/combat
Sponsored Links
    #2  
Old 11-02-2006
By_Jam By_Jam is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 1 February 2012, 11:04 AM EST
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Ports

Hi,

You can use teh command :

Netstat -a , to see the ports status.
Sponsored Links
    #3  
Old 11-02-2006
tonlu tonlu is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 10 April 2007, 2:26 AM EDT
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Ok..., but how can I log all requstes to a file from this?
I want to see everytime someone login to my machine and uses the telnet, ftp, or rsh commands.
Is it possible to do some edit in /etc/inet/inetd.conf file?

/combat
    #4  
Old 11-02-2006
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 
Join Date: Nov 2006
Last Activity: 20 November 2013, 8:29 AM EST
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
Most of those logs may be found in /var/log. You may also want to enable the "all.log" from /etc/syslog.conf - there are instructions within the file.
Sponsored Links
    #5  
Old 11-02-2006
reborg's Avatar
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 10 Times in 10 Posts
It won't give you information for everything, but tcp wrappers may be of some use to you.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Handle int listen(int sockfd, int backlog) in TCP sehang Programming 3 12-20-2010 08:37 PM
Program to listen a port sumitwa Shell Programming and Scripting 1 08-04-2010 05:13 AM
Let NTP listen only on one interface one71 UNIX for Advanced & Expert Users 0 04-01-2008 06:53 AM



All times are GMT -4. The time now is 02:57 PM.