View Single Post
  #6  
Old 29th July 2011, 22:16
baicunko baicunko is offline
Member
 
Join Date: Jun 2011
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
[root@server ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 localhost.localdomain:2208  *:*                         LISTEN      2903/hpiod
tcp        0      0 *:imaps                     *:*                         LISTEN      4162/imap-login
tcp        0      0 *:pop3s                     *:*                         LISTEN      5236/dovecot
tcp        0      0 localhost.localdomain:10024 *:*                         LISTEN      3071/amavisd (maste
tcp        0      0 *:mysql                     *:*                         LISTEN      3041/mysqld
tcp        0      0 *:714                       *:*                         LISTEN      2652/rpc.statd
tcp        0      0 *:pop3                      *:*                         LISTEN      5236/dovecot
tcp        0      0 localhost.local:dyna-access *:*                         LISTEN      2957/clamd
tcp        0      0 *:imap                      *:*                         LISTEN      4162/imap-login
tcp        0      0 *:sunrpc                    *:*                         LISTEN      2617/portmap
tcp        0      0 *:ndmp                      *:*                         LISTEN      3404/perl
tcp        0      0 *:http                      *:*                         LISTEN      3152/httpd
tcp        0      0 server.ganganadores.co:http pc-44-4-164-190.cm:pciarray SYN_RECV    -
tcp        0      0 server.ganganadores.co:http pc-44-4-164-190.cm.v:sna-cs SYN_RECV    -
tcp        0      0 server.ganganadores.co:http pc-44-4-164-190.c:hecmtl-db SYN_RECV    -
tcp        0      0 *:ftp                       *:*                         LISTEN      3162/pure-ftpd (SER
tcp        0      0 server.ganganadores.:domain *:*                         LISTEN      2597/named
tcp        0      0 localhost.localdomai:domain *:*                         LISTEN      2597/named
tcp        0      0 *:ssh                       *:*                         LISTEN      2923/sshd
tcp        0      0 localhost.localdomain:ipp   *:*                         LISTEN      2934/cupsd
tcp        0      0 localhost.localdomain:smtp  *:*                         LISTEN      3128/master
tcp        0      0 localhost.localdomain:rndc  *:*                         LISTEN      2597/named
tcp        0      0 *:https                     *:*                         LISTEN      3152/httpd
tcp        0      0 localhost.localdomain:2207  *:*                         LISTEN      2908/python
tcp        1      0 localhost.localdomain:smtp  localhost.localdomain:34596 CLOSE_WAIT  -
tcp        0      0 server.ganganadores.c:imaps bda-178-239-86-161.bi:34335 ESTABLISHED 5259/imap-login
tcp        1      0 localhost.localdomain:smtp  localhost.localdomain:40341 CLOSE_WAIT  -
tcp        0      0 server.ganganadores.co:http pc-44-4-164-190:3m-image-lm TIME_WAIT   -
tcp        0    148 server.ganganadores.com:ssh pc-44-4-164-190.c:iclpv-sas ESTABLISHED 4701/1
tcp        1      0 localhost.localdomain:smtp  localhost.localdomain:44230 CLOSE_WAIT  -
And iptables
Code:
[root@server ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Reply With Quote