LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   View Server Connections? (https://www.linuxquestions.org/questions/linux-networking-3/view-server-connections-416677/)

carlosinfl 02-17-2006 05:59 PM

View Server Connections?
 
I have a Debian server running vsFTPd but from time to time I do take the machine down for dusting and maitenance and was wondering if there is a simple solution to be able to make sure nobody is connected to machine via ssh, ftp, web, and or any other connections. Is there a way to verify this before I shut down?

Thanks for any info.

perfect_circle 02-17-2006 06:31 PM

try
Code:

netstat

carlosinfl 02-17-2006 06:35 PM

What am I looking at?

Code:

stricom:/# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address          Foreign Address        State
tcp6      0    208 ::ffff:192.168.1.10:ssh ::ffff:192.168.1.:58988 ESTABLISHED
tcp6      0      0 ::ffff:192.168.1.10:www ::ffff:192.168.1.:48269 TIME_WAIT
tcp6      0      0 ::ffff:192.168.1.10:www ::ffff:192.168.1.:48270 TIME_WAIT
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags      Type      State        I-Node Path
unix  5      [ ]        DGRAM                    3634    /dev/log
unix  2      [ ]        DGRAM                    4083
unix  3      [ ]        STREAM    CONNECTED    4080
unix  3      [ ]        STREAM    CONNECTED    4079
unix  2      [ ]        DGRAM                    3711
unix  2      [ ]        DGRAM                    3651

It is not very clear to me...

perfect_circle 02-17-2006 06:57 PM

I guess the ESTABLISHED tcp connections that have a foreign IP outside your network...


All times are GMT -5. The time now is 07:02 AM.