View Single Post
  #8  
Old 19th May 2010, 22:13
banzaiwebstudio.com banzaiwebstudio.com is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 0
Thanked 1 Time in 1 Post
Default

netstat - tap:

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      30242/amavisd (mast
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      9133/master
tcp        0      0 *:mysql                 *:*                     LISTEN      29983/mysqld
tcp        0      0 *:http-alt              *:*                     LISTEN      6772/apache2
tcp        0      0 *:www                   *:*                     LISTEN      6772/apache2
tcp        0      0 *:tproxy                *:*                     LISTEN      6772/apache2
tcp        0      0 server1.banzaiwe:domain *:*                     LISTEN      31080/mydns
tcp        0      0 localhost.locald:domain *:*                     LISTEN      31080/mydns
tcp        0      0 *:ftp                   *:*                     LISTEN      31074/pure-ftpd (SE
tcp        0      0 *:ssh                   *:*                     LISTEN      819/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN      9133/master
tcp        0      0 *:https                 *:*                     LISTEN      6772/apache2
tcp        0      0 localhost.localdo:mysql localhost.localdo:42571 ESTABLISHED 29983/mysqld
tcp        0      0 localhost.localdo:42571 localhost.localdo:mysql ESTABLISHED 30952/amavisd (ch8-
tcp        0     52 server1.banzaiwebse:ssh 192.168.0.6:58239       ESTABLISHED 8302/sshd: administ
tcp        0      0 localhost.localdo:56600 localhost.localdoma:www TIME_WAIT   -
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      31009/couriertcpd
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      30981/couriertcpd
tcp6       0      0 localhost:domain        [::]:*                  LISTEN      31080/mydns
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      31074/pure-ftpd (SE
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      819/sshd
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      30998/couriertcpd
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      31026/couriertcpd
tcp6       0      0 localhost:ftp           localhost:40083         TIME_WAIT   -
tcp6       0      0 localhost:59680         localhost:domain        TIME_WAIT   -
iptables -L:

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
fail2ban-ssh  tcp  --  anywhere             anywhere            multiport dports ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain fail2ban-ssh (1 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere
Reply With Quote