View Single Post
  #7  
Old 1st July 2008, 14:31
sergio.morales sergio.morales is offline
Senior Member
 
Join Date: Apr 2008
Posts: 107
Thanks: 3
Thanked 2 Times in 2 Posts
Default Netstat and IPtables output

[root@email-beststylesusa ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:57769 *:* LISTEN 1914/rpc.statd
tcp 0 0 *:mysql *:* LISTEN 2376/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1895/rpcbind
tcp 0 0 *:81 *:* LISTEN 2735/ispconfig_http
tcp 0 0 email-beststylesusa.:domain *:* LISTEN 2864/named
tcp 0 0 localhost.localdomai:domain *:* LISTEN 2864/named
tcp 0 0 *:ssh *:* LISTEN 2258/sshd
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2625/cupsd
tcp 0 0 *:smtp *:* LISTEN 5452/master
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 2864/named
tcp 0 0 localhost.lo:x11-ssh-offset *:* LISTEN 13409/0
tcp 0 960 email-beststylesusa.com:ssh cpe-98-15-243-177.hvc:55274 ESTABLISHED 13406/sshd: moralse
tcp 0 0 *:imaps *:* LISTEN 2399/dovecot
tcp 0 0 *op3s *:* LISTEN 2399/dovecot
tcp 0 0 *op3 *:* LISTEN 2399/dovecot
tcp 0 0 *:imap *:* LISTEN 2399/dovecot
tcp 0 0 *:http *:* LISTEN 2765/httpd
tcp 0 0 *:ssh *:* LISTEN 2258/sshd
tcp 0 0 *:smtp *:* LISTEN 5452/master
tcp 0 0 localhost6.localdomain:rndc *:* LISTEN 2864/named
tcp 0 0 localhost6.l:x11-ssh-offset *:* LISTEN 13409/0
tcp 0 0 *:https *:* LISTEN 2765/httpd
[root@email-beststylesusa ~]#


IPTABLES -L

[root@email-beststylesusa ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@email-beststylesusa ~]#
Reply With Quote