LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-22-2007, 07:33 AM   #1
yiux
LQ Newbie
 
Registered: Jan 2007
Location: Mauritius
Distribution: Debian 4.0R0
Posts: 11

Rep: Reputation: 0
Monitoring conneting IP


I would like to know if it is possible to know which IP is connected or trying to connect to my computer and on which port.
 
Old 02-22-2007, 08:12 AM   #2
vangelis
Member
 
Registered: Nov 2004
Location: Hellas
Distribution: Zenwalk 6.4
Posts: 337
Blog Entries: 4

Rep: Reputation: 30
you can do this with the netstat command

check the manpage for the many options it has
 
Old 02-24-2007, 05:44 AM   #3
ljs662_removed
Member
 
Registered: Nov 2006
Posts: 51

Rep: Reputation: 15
Hi there yiux,
Netstat is good for seeing what is CURRENTLY connected to your computer, but for a history of connections, I think you will find your logs very useful. They are generally located in /var/log you should find all sorts of logs (try taking a look at "/var/log/auth.log". Also try using the "last" command.
Many 3rd party apps will also dump their logs here, for example if you are running a webserver with apache, you could try looking in /var/log/apache etc...
Hope that helps.
Luke
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems conneting to my samba shares. NuxIT Linux - Software 4 11-09-2006 09:07 PM
The problem of conneting to the Internet Gins Linux - General 7 07-29-2004 10:36 AM
Conneting to a computer thru a firewall clau_bolson Linux - Networking 7 01-01-2004 05:20 PM
monitoring IP changes aru_titi Linux - Software 4 08-23-2003 08:31 AM
Monitoring jISV Linux - General 6 06-05-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration