No connection to port 2222

ximple

Verified User
Joined
Jul 3, 2010
Messages
12
Hi,

I installed DirectAdmin on Centos 5.5 (OpenVZ VPS) but after the install I had no connection to port 2222.
So after a couple of reinstalls of the VPS I changed the license to Debian 5 and I installed Debian 5.

But also on Debian there is still no connection possible to the control panel.
I choose venet0:0 with the installation and so far I can see is this the correct interface for the IP.

I restarted DirectAdmin, I rebooted the VPS but nothing seems to work.
I have also folowed the troubleshooting from http://help.directadmin.com/item.php?id=75.

There is nothing in the error logs and I had the message that Directadmin was running fine at port 2222 (when i did ./directadmin b200).
Finally I killed httpd and I set DirectAdmin on port 80 but this also doesn't work.

Someone has any sugestions?

Thanks in advance.
 
Hello,

Post here results for:

Code:
# ps uax
# netstat -an | grep LISTEN | grep -v ^unix
# iptables -L -v -n
 
ps uax:

Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   1984   688 ?        Ss   16:30   0:00 init [2]
root      3130  0.0  0.1   1696   596 ?        Ss   16:30   0:00 /sbin/syslogd
root      3147  0.0  0.2   5276  1028 ?        Ss   16:30   0:00 /usr/sbin/sshd
root      3160  0.0  0.1   3516   768 ?        Ss   16:30   0:00 /usr/sbin/dovecot
dovecot   3162  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
nobody    3165  0.0  0.0   7788   332 ?        S    19:41   0:00 /usr/local/directadmin/directadmin d
dovecot   3166  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
mail      3168  0.0  0.2   8224  1028 ?        Ss   16:30   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
dovecot   3170  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3171  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3172  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3174  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3175  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3178  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3183  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3184  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3186  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3187  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3189  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3190  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3198  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3205  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3206  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3209  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3210  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3211  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3212  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3214  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3217  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3218  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3219  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3220  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3222  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3223  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3225  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3227  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3228  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3230  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3232  0.0  0.2   3268   952 ?        S    16:30   0:00 dovecot/anvil [35 connections]
root      3233  0.0  0.2   3260   952 ?        S    16:30   0:00 dovecot/log
root      3237  0.0  0.5   4600  2192 ?        S    16:30   0:00 dovecot/config
root      3263  0.0  0.4   4036  1664 ?        S    16:30   0:00 dovecot/auth [0 wait, 0 passdb, 0 userdb]
root      3450  0.0  0.2   2356   868 ?        Ss   16:30   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      3690  0.0  0.2   2040   884 ?        Ss   16:30   0:00 /usr/sbin/cron
bind      5799  0.0  2.6  60212 10224 ?        Ssl  16:31   0:00 /usr/sbin/named -u bind
apache    6055  0.0  2.2  22724  8688 ?        S    17:42   0:00 /usr/sbin/httpd -k start -DSSL
apache    7305  0.0  2.2  22724  8680 ?        S    17:14   0:00 /usr/sbin/httpd -k start -DSSL
root      7729  0.0  0.0   1160   208 ?        Ss   17:24   0:00 /usr/local/directadmin/da-popb4smtp
nobody    9837  0.0  0.0   7788   332 ?        S    19:42   0:00 /usr/local/directadmin/directadmin d
nobody   11700  0.0  0.0   7788   332 ?        S    19:42   0:00 /usr/local/directadmin/directadmin d
root     12263  0.0  2.5  22724  9960 ?        Ss   17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13390  0.0  2.2  22724  8668 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13393  0.0  2.2  22724  8704 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13394  0.0  2.2  22724  8708 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13395  0.0  2.2  22724  8708 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13396  0.0  2.2  22724  8680 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
nobody   14175  0.0  0.0   7788   332 ?        S    19:39   0:00 /usr/local/directadmin/directadmin d
root     15905  0.0  0.2   2492  1156 ?        S    16:49   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/s6.pid
mysql    15986  0.0  3.8 128216 15240 ?        Sl   16:49   0:01 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --log-error=/usr/local/mysql/data/s6.er
nobody   18428  0.0  0.2   7788  1020 ?        Ss   19:33   0:00 /usr/local/directadmin/directadmin d
ftp      21546  0.0  0.2   2892  1104 ?        Ss   17:25   0:00 proftpd: (accepting connections)
root     24107  0.0  0.7   8152  2804 ?        Rs   19:40   0:00 sshd: root@pts/1
root     24486  0.0  0.3   2776  1508 pts/1    Ss   19:40   0:00 -bash
nobody   25737  0.0  0.0   7788   332 ?        S    19:43   0:00 /usr/local/directadmin/directadmin d
root     32630  0.0  0.2   2300   904 pts/1    R+   19:44   0:00 ps uax
s6:~# ps uax
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   1984   688 ?        Ss   16:30   0:00 init [2]
root      3130  0.0  0.1   1696   596 ?        Ss   16:30   0:00 /sbin/syslogd
root      3137  0.0  0.2   2300   892 pts/1    R+   19:44   0:00 ps uax
root      3147  0.0  0.2   5276  1028 ?        Ss   16:30   0:00 /usr/sbin/sshd
root      3160  0.0  0.1   3516   768 ?        Ss   16:30   0:00 /usr/sbin/dovecot
dovecot   3162  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
nobody    3165  0.0  0.0   7788   332 ?        S    19:41   0:00 /usr/local/directadmin/directadmin d
dovecot   3166  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
mail      3168  0.0  0.2   8224  1028 ?        Ss   16:30   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
dovecot   3170  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3171  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3172  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3174  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3175  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3178  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3183  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3184  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3186  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3187  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3189  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3190  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3198  0.0  0.5   5192  2020 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3205  0.0  0.5   5192  2024 ?        S    16:30   0:00 dovecot/pop3-login
dovecot   3206  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3209  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3210  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3211  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3212  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3214  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3217  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3218  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3219  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3220  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3222  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3223  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3225  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3227  0.0  0.5   5200  2024 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3228  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3230  0.0  0.5   5200  2020 ?        S    16:30   0:00 dovecot/imap-login
dovecot   3232  0.0  0.2   3268   952 ?        S    16:30   0:00 dovecot/anvil [35 connections]
root      3233  0.0  0.2   3260   952 ?        S    16:30   0:00 dovecot/log
root      3237  0.0  0.5   4600  2192 ?        S    16:30   0:00 dovecot/config
root      3263  0.0  0.4   4036  1664 ?        S    16:30   0:00 dovecot/auth [0 wait, 0 passdb, 0 userdb]
root      3450  0.0  0.2   2356   868 ?        Ss   16:30   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      3690  0.0  0.2   2040   884 ?        Ss   16:30   0:00 /usr/sbin/cron
bind      5799  0.0  2.6  60212 10224 ?        Ssl  16:31   0:00 /usr/sbin/named -u bind
apache    6055  0.0  2.2  22724  8688 ?        S    17:42   0:00 /usr/sbin/httpd -k start -DSSL
apache    7305  0.0  2.2  22724  8680 ?        S    17:14   0:00 /usr/sbin/httpd -k start -DSSL
root      7729  0.0  0.0   1160   208 ?        Ss   17:24   0:00 /usr/local/directadmin/da-popb4smtp
nobody    9837  0.0  0.0   7788   332 ?        S    19:42   0:00 /usr/local/directadmin/directadmin d
nobody   11700  0.0  0.0   7788   332 ?        S    19:42   0:00 /usr/local/directadmin/directadmin d
root     12263  0.0  2.5  22724  9960 ?        Ss   17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13390  0.0  2.2  22724  8668 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13393  0.0  2.2  22724  8704 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13394  0.0  2.2  22724  8708 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13395  0.0  2.2  22724  8708 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
apache   13396  0.0  2.2  22724  8680 ?        S    17:08   0:00 /usr/sbin/httpd -k start -DSSL
nobody   14175  0.0  0.0   7788   332 ?        S    19:39   0:00 /usr/local/directadmin/directadmin d
root     15905  0.0  0.2   2492  1156 ?        S    16:49   0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/s6.pid
mysql    15986  0.0  3.8 128216 15240 ?        Sl   16:49   0:01 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --log-error=/usr/local/mysql/data/s6.er
nobody   18428  0.0  0.2   7788  1020 ?        Ss   19:33   0:00 /usr/local/directadmin/directadmin d
ftp      21546  0.0  0.2   2892  1104 ?        Ss   17:25   0:00 proftpd: (accepting connections)
root     24107  0.0  0.7   8152  2804 ?        Ss   19:40   0:00 sshd: root@pts/1
root     24486  0.0  0.3   2776  1508 pts/1    Ss   19:40   0:00 -bash
nobody   25737  0.0  0.0   7788   332 ?        S    19:43   0:00 /usr/local/directadmin/directadmin d

netstat -an | grep LISTEN | grep -v ^unix

Code:
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
tcp        0      0 74.63.229.220:53        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN
tcp6       0      0 :::2222                 :::*                    LISTEN
tcp6       0      0 :::21                   :::*                    LISTEN
tcp6       0      0 :::53                   :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:953                 :::*                    LISTEN
Does this meen DirectAdmin only runs on ipv6 right now?

Code:
Chain INPUT (policy ACCEPT 106K packets, 145M bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 59394 packets, 4184K bytes)
 pkts bytes target     prot opt in     out     source               destination
 
Your directadmin is running but it binded to ipv6 only.

tcp6 0 0 :::2222 :::* LISTEN

Try to add

Code:
bind_address=0.0.0.0

into /usr/local/directadmin/conf/directadmin.conf and restart directadmin.

To check if your DA binary is compiled with IPv6 support, type:
[root@server]# cd /usr/local/directadmin
[root@server]# ./directadmin o
Compiled on 'Redhat CentOS 4.0'
Compile time: Feb 16 2011 at 15:49:34
Compiled with IPv6
[root@server]# netstat -lnp | grep 2222
tcp 0 0 :::2222 :::* LISTEN 10905/directadmin
[root@server]#

and look for the "Compiled with IPv6" text.
No text, means it's not setup.
You can also confirm with the netstat call.
If it's bound to :::2222, then it's IPv6.
If it's bound to 0.0.0.0:2222 then it's only IPv4.
Binding to IPv6 allows connections on both IPv4 and IPv6.


The bind_address should still work fine, however if you're going to use an IPv6 IP to bind to, be sure to use the full format, and not the shorthand format.

Note: You do not need to have ipv6=1 for DA to bind to IPv4 and IPv6. DA will do this regardless of the ipv6 setting.

http://www.directadmin.com/features.php?id=1168
 
Last edited:
Or do this:

-------------------------------------------------
*** EDIT for one reported case on Debian ***
This is not part of the update, but for this reported case, it was required to make DA work on IPv4:
/etc/sysctl.d/bindv6only.conf

change:
net.ipv6.bindv6only = 1

to
net.ipv6.bindv6only = 0

and type:
echo 0 > /proc/sys/net/ipv6/bindv6only
-------------------------------------------------

http://www.directadmin.com/features.php?id=1168
 
I mailed to DirectAdmin and John asked me to do: telnet localhost 2222.
After 30 sec I get a timeout message: http://www.urt.co/img/64bpzcvs7y.png

But after I put: bind_address=0.0.0.0 and ipv6=1 in my config, DirectAdmin works!

Thx zEitEr!
 
Last edited:
Good news. You're welcome.

p.s. Did you try to set

Code:
net.ipv6.bindv6only = 0

?
 
No my: /etc/sysctl.d/bindv6only.conf file is empty or does not exits..

./directadmin o gives me:
Compiled on 'Debian 5.0'
Compile time: Mar 23 2011 at 17:21:49
Compiled with IPv6
 
Yay! I added the bind_address to the config and it's accessible now! Thanks!
 
you can help me

Hello,

Post here results for:

Code:
# ps uax
# netstat -an | grep LISTEN | grep -v ^unix
# iptables -L -v -n

you can help me

i have a problem No connection to port 2222

# ps uax
Code:
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   2168   656 ?        Ss   11:07   0:00 init [3]
root         2  0.0  0.0      0     0 ?        S<   11:07   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   11:07   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S<   11:07   0:00 [watchdog/0]
root         5  0.0  0.0      0     0 ?        S<   11:07   0:00 [migration/1]
root         6  0.0  0.0      0     0 ?        SN   11:07   0:00 [ksoftirqd/1]
root         7  0.0  0.0      0     0 ?        S<   11:07   0:00 [watchdog/1]
root         8  0.0  0.0      0     0 ?        S<   11:07   0:00 [events/0]
root         9  0.0  0.0      0     0 ?        S<   11:07   0:00 [events/1]
root        10  0.0  0.0      0     0 ?        S<   11:07   0:00 [khelper]
root        11  0.0  0.0      0     0 ?        S<   11:07   0:00 [kthread]
root        15  0.0  0.0      0     0 ?        S<   11:07   0:00 [kblockd/0]
root        16  0.0  0.0      0     0 ?        S<   11:07   0:00 [kblockd/1]
root        17  0.0  0.0      0     0 ?        S<   11:07   0:00 [kacpid]
root       109  0.0  0.0      0     0 ?        S<   11:07   0:00 [cqueue/0]
root       110  0.0  0.0      0     0 ?        S<   11:07   0:00 [cqueue/1]
root       113  0.0  0.0      0     0 ?        S<   11:07   0:00 [khubd]
root       115  0.0  0.0      0     0 ?        S<   11:07   0:00 [kseriod]
root       178  0.0  0.0      0     0 ?        S    11:07   0:00 [khungtaskd]
root       179  0.0  0.0      0     0 ?        S    11:07   0:00 [pdflush]
root       180  0.0  0.0      0     0 ?        S    11:07   0:00 [pdflush]
root       181  0.0  0.0      0     0 ?        S<   11:07   0:00 [kswapd0]
root       182  0.0  0.0      0     0 ?        S<   11:07   0:00 [aio/0]
root       183  0.0  0.0      0     0 ?        S<   11:07   0:00 [aio/1]
root       335  0.0  0.0      0     0 ?        S<   11:07   0:00 [kpsmoused]
root       369  0.0  0.0      0     0 ?        S<   11:07   0:00 [scsi_eh_0]
root       370  0.0  0.0      0     0 ?        S<   11:08   0:00 [scsi_eh_1]
root       374  0.0  0.0      0     0 ?        S<   11:08   0:00 [ata/0]
root       375  0.0  0.0      0     0 ?        S<   11:08   0:00 [ata/1]
root       376  0.0  0.0      0     0 ?        S<   11:08   0:00 [ata_aux]
root       383  0.0  0.0      0     0 ?        S<   11:08   0:00 [scsi_eh_2]
root       384  0.0  0.0      0     0 ?        S<   11:08   0:00 [usb-storage]
root       386  0.0  0.0      0     0 ?        S<   11:08   0:00 [scsi_eh_3]
root       387  0.0  0.0      0     0 ?        S<   11:08   0:00 [usb-storage]
root       392  0.0  0.0      0     0 ?        S<   11:08   0:00 [kstriped]
root       405  0.0  0.0      0     0 ?        S<   11:08   0:00 [ksnapd]
root       420  0.0  0.0      0     0 ?        S<   11:09   0:00 [kjournald]
root       445  0.0  0.0      0     0 ?        S<   11:09   0:00 [kauditd]
root       478  0.0  0.0   2400   664 ?        S<s  11:09   0:00 /sbin/udevd -d
root      1021  0.0  0.0      0     0 ?        S<   11:09   0:00 [kedac]
root      1459  0.0  0.0      0     0 ?        S<   11:09   0:00 [kmpathd/0]
root      1460  0.0  0.0      0     0 ?        S<   11:09   0:00 [kmpathd/1]
root      1461  0.0  0.0      0     0 ?        S<   11:09   0:00 [kmpath_handlerd]
root      1482  0.0  0.0      0     0 ?        S<   11:09   0:00 [kjournald]
root      1637  0.0  0.0      0     0 ?        S<   11:09   0:00 [iscsi_eh]
root      1677  0.0  0.0      0     0 ?        S<   11:09   0:00 [cnic_wq]
root      1681  0.0  0.0      0     0 ?        S<   11:09   0:00 [bnx2i_thread/0]
root      1682  0.0  0.0      0     0 ?        S<   11:09   0:00 [bnx2i_thread/1]
root      1697  0.0  0.0      0     0 ?        S<   11:09   0:00 [ib_addr]
root      1707  0.0  0.0      0     0 ?        S<   11:09   0:00 [ib_mcast]
root      1708  0.0  0.0      0     0 ?        S<   11:09   0:00 [ib_inform]
root      1709  0.0  0.0      0     0 ?        S<   11:09   0:00 [local_sa]
root      1712  0.0  0.0      0     0 ?        S<   11:09   0:00 [iw_cm_wq]
root      1717  0.0  0.0      0     0 ?        S<   11:09   0:00 [ib_cm/0]
root      1718  0.0  0.0      0     0 ?        S<   11:09   0:00 [ib_cm/1]
root      1722  0.0  0.0      0     0 ?        S<   11:09   0:00 [rdma_cm]
root      1738  0.0  3.1  32760 32744 ?        S<Lsl 11:09   0:00 iscsiuio
root      1745  0.0  0.0   2368   408 ?        Ss   11:09   0:00 iscsid
root      1746  0.0  0.2   2832  2824 ?        S<Ls 11:09   0:00 iscsid
root      2155  0.0  0.0  12644   752 ?        S<sl 11:09   0:00 auditd
root      2157  0.0  0.0  13200   688 ?        S<sl 11:09   0:00 /sbin/audispd
root      2210  0.0  0.0   1824   556 ?        Ss   11:09   0:00 syslogd -m 0
root      2213  0.0  0.0   1772   400 ?        Ss   11:09   0:00 klogd -x
root      2275  0.0  0.0   2572   368 ?        Ss   11:09   0:00 irqbalance
rpc       2306  0.0  0.0   1920   540 ?        Ss   11:09   0:00 portmap
root      2340  0.0  0.0      0     0 ?        S<   11:09   0:00 [rpciod/0]
root      2341  0.0  0.0      0     0 ?        S<   11:09   0:00 [rpciod/1]
rpcuser   2349  0.0  0.0   1972   712 ?        Ss   11:09   0:00 rpc.statd
root      2385  0.0  0.0   5960   640 ?        Ss   11:09   0:00 rpc.idmapd
dbus      2415  0.0  0.0   2860   928 ?        Ss   11:09   0:00 dbus-daemon --system
root      2428  0.0  0.0   2264   752 ?        Ss   11:09   0:00 /usr/sbin/hcid
root      2432  0.0  0.0   1840   492 ?        Ss   11:09   0:00 /usr/sbin/sdpd
root      2456  0.0  0.0      0     0 ?        S<   11:09   0:00 [krfcommd]
root      2501  0.0  0.1  12840  1264 ?        Ssl  11:09   0:00 pcscd
root      2515  0.0  0.0   1768   520 ?        Ss   11:09   0:00 /usr/sbin/acpid
68        2531  0.0  0.3   6060  4052 ?        Ss   11:09   0:01 hald
root      2532  0.0  0.0   3276  1004 ?        S    11:09   0:00 hald-runner
68        2540  0.0  0.0   2116   816 ?        S    11:09   0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
68        2542  0.0  0.0   2116   820 ?        S    11:09   0:00 hald-addon-keyboard: listening on /dev/input/event1
68        2546  0.0  0.0   2116   804 ?        S    11:09   0:00 hald-addon-keyboard: listening on /dev/input/event0
root      2555  0.0  0.0   2068   652 ?        S    11:09   0:00 hald-addon-storage: polling /dev/sr0
root      2557  0.0  0.0   2068   648 ?        S    11:09   0:00 hald-addon-storage: polling /dev/hda
root      2560  0.0  0.0   2068   648 ?        S    11:09   0:00 hald-addon-storage: polling /dev/sdc
root      2583  0.0  0.0   2016   440 ?        Ss   11:09   0:00 /usr/bin/hidd --server
root      2621  0.0  0.1  28316  1380 ?        Ssl  11:09   0:00 automount
root      2642  0.0  0.0   3536   960 ?        Ss   11:09   0:00 /usr/sbin/dovecot
dovecot   2660  0.0  0.2   6768  2252 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2661  0.0  0.2   6768  2252 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2662  0.0  0.2   6768  2252 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2663  0.0  0.2   6768  2248 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2664  0.0  0.2   6768  2252 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2665  0.0  0.2   6768  2248 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2666  0.0  0.2   6768  2244 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2667  0.0  0.2   6768  2248 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2668  0.0  0.2   6768  2256 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2669  0.0  0.2   6768  2252 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2670  0.0  0.2   6768  2252 ?        S    11:09   0:00 dovecot/pop3-login
root      2671  0.0  0.1   7268  1064 ?        Ss   11:09   0:00 /usr/sbin/sshd
dovecot   2672  0.0  0.2   6768  2248 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2673  0.0  0.2   6768  2252 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2675  0.0  0.2   6768  2256 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2676  0.0  0.2   6768  2244 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2677  0.0  0.2   6768  2248 ?        S    11:09   0:00 dovecot/pop3-login
dovecot   2679  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2680  0.0  0.2   6772  2252 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2681  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2682  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2683  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2684  0.0  0.2   6772  2252 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2685  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2686  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2687  0.0  0.2   6772  2252 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2688  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2689  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2690  0.0  0.2   6772  2244 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2691  0.0  0.2   6772  2244 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2692  0.0  0.2   6772  2252 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2693  0.0  0.2   6772  2252 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2694  0.0  0.2   6772  2248 ?        S    11:09   0:00 dovecot/imap-login
dovecot   2695  0.0  0.0   3444   952 ?        S    11:09   0:00 dovecot/anvil [33 connections]
root      2696  0.0  0.0   3440   984 ?        S    11:09   0:00 dovecot/log
root      2702  0.0  0.1   4328  1652 ?        S    11:09   0:00 dovecot/config
root      2707  0.0  0.1   4228  1660 ?        S    11:09   0:00 dovecot/auth [0 wait, 0 passdb, 0 userdb]
root      2712  0.0  0.1   4640  1200 ?        S    11:09   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/ns1.chon1.go.th.pid
mysql     2734  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2735  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2736  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2737  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2738  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2739  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2741  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2742  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2743  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     2744  0.0  1.8  37400 18852 ?        S    11:09   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mail      2794  0.0  0.1   9324  1064 ?        Ss   11:09   0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
root      2811  0.0  0.0   2008   356 ?        Ss   11:09   0:00 gpm -m /dev/input/mice -t exps2
root      2827  0.0  1.1  27088 12000 ?        Ss   11:09   0:00 /usr/sbin/httpd -k start -DSSL
root      2853  0.0  0.1   5384  1100 ?        Ss   11:09   0:00 crond
apache    2871  0.1  2.6  42552 26960 ?        S    11:09   0:04 /usr/sbin/httpd -k start -DSSL
apache    2872  0.1  2.8  45484 29892 ?        S    11:09   0:05 /usr/sbin/httpd -k start -DSSL
apache    2873  0.0  5.1  68760 53388 ?        S    11:09   0:02 /usr/sbin/httpd -k start -DSSL
apache    2874  0.0  2.6  42456 26956 ?        S    11:09   0:01 /usr/sbin/httpd -k start -DSSL
apache    2875  0.0  5.1  69008 53416 ?        S    11:09   0:03 /usr/sbin/httpd -k start -DSSL
xfs       2881  0.0  0.0   3248   980 ?        Ss   11:09   0:00 xfs -droppriv -daemon
root      2906  0.0  0.0   2368   440 ?        Ss   11:09   0:00 /usr/sbin/atd
root      2946  0.0  0.0   3624   460 ?        S    11:09   0:00 /usr/sbin/smartd -q never
root      2949  0.0  0.0   1756   428 tty1     Ss+  11:09   0:00 /sbin/mingetty tty1
root      2950  0.0  0.0   1756   436 tty2     Ss+  11:09   0:00 /sbin/mingetty tty2
root      2951  0.0  0.0   1756   432 tty3     Ss+  11:09   0:00 /sbin/mingetty tty3
root      2956  0.0  0.0   1756   436 tty4     Ss+  11:09   0:00 /sbin/mingetty tty4
root      2957  0.0  0.0   1756   432 tty5     Ss+  11:09   0:00 /sbin/mingetty tty5
root      2959  0.0  0.0   1756   432 tty6     Ss+  11:09   0:00 /sbin/mingetty tty6
root      2966  0.0  1.0  27120 10776 ?        SN   11:09   0:00 /usr/bin/python -tt /usr/sbin/yum-updatesd
root      2968  0.0  0.1   2668  1116 ?        SN   11:09   0:00 /usr/libexec/gam_server
named     2989  0.0  0.2  48692  2980 ?        Ssl  11:10   0:00 named -u named
mysql     3038  2.7  1.8  37400 18852 ?        S    11:10   1:50 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
apache    3039  0.0  2.8  45500 29988 ?        S    11:10   0:02 /usr/sbin/httpd -k start -DSSL
mysql     3040  2.7  1.8  37400 18852 ?        S    11:10   1:49 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
apache    3041  0.1  2.8  45500 29908 ?        S    11:10   0:04 /usr/sbin/httpd -k start -DSSL
mysql     3042  2.7  1.8  37400 18852 ?        S    11:10   1:47 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
apache    3043  0.1  4.1  58740 43188 ?        S    11:10   0:04 /usr/sbin/httpd -k start -DSSL
mysql     3044  4.0  1.8  37400 18852 ?        S    11:10   2:39 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     3046  2.4  1.8  37400 18852 ?        S    11:10   1:34 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     3048  4.8  1.8  37400 18852 ?        S    11:10   3:08 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
apache    3049  0.0  1.6  33176 17532 ?        S    11:10   0:03 /usr/sbin/httpd -k start -DSSL
mysql     3050  2.3  1.8  37400 18852 ?        S    11:10   1:32 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
apache    3051  0.0  2.5  42388 26836 ?        S    11:10   0:03 /usr/sbin/httpd -k start -DSSL
mysql     3093  2.5  1.8  37400 18852 ?        S    11:11   1:37 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     3220  2.3  1.8  37400 18852 ?        S    11:13   1:29 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     3264  2.1  1.8  37400 18852 ?        S    11:14   1:21 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     3477  0.0  1.8  37400 18852 ?        S    11:18   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
root      4172  0.0  0.3  10120  3240 ?        Rs   11:29   0:00 sshd: root@pts/0
root      4176  0.0  0.1   4760  1464 pts/0    Ss   11:29   0:00 -bash
mysql     4379  0.0  1.8  37400 18852 ?        S    11:33   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     5754  0.0  1.8  37400 18852 ?        S    11:42   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     5755  0.0  1.8  37400 18852 ?        S    11:42   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
mysql     6017  0.0  1.8  37400 18852 ?        S    11:48   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/ns1.chon1.
root      6992  0.0  0.0   3296   500 ?        Ss   12:09   0:00 /usr/local/directadmin/da-popb4smtp
ftp       7058  0.0  0.0   2912   940 ?        Ss   12:10   0:00 proftpd: (accepting connections)
root      7295  0.0  0.1   5964  1500 ?        S    12:16   0:00 crond
nobody    7296  0.3  0.1   9448  2044 ?        Ss   12:16   0:00 /usr/local/directadmin/dataskq
root      7312  0.0  0.0   4360   960 pts/0    R+   12:16   0:00 ps uax

# netstat -an | grep LISTEN | grep -v ^unix

Code:
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:835                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 202.143.144.58:53           0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 61.19.250.224:53            0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LIST                                                                                        EN
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LIST                                                                                        EN

# iptables -L -v -n
Code:
Chain INPUT (policy ACCEPT 11631 packets, 1066K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 13305 packets, 2692K bytes)
 pkts bytes target     prot opt in     out     source               destination
 
Back
Top