View Single Post
  #11  
Old 27th December 2011, 21:10
m.xander m.xander is offline
Member
 
Join Date: Dec 2011
Posts: 81
Thanks: 5
Thanked 3 Times in 3 Posts
Default outputs...

Ubuntu 10.04 32bit.


netstat -tap
--------------

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 2039/couriertcpd
tcp 0 0 *op3s *:* LISTEN 3086/couriertcpd
tcp 0 0 localhost.localdo:10024 *:* LISTEN 1490/amavisd (maste
tcp 0 0 localhost.localdo:10025 *:* LISTEN 3169/master
tcp 0 0 *:mysql *:* LISTEN 1275/mysqld
tcp 0 0 *op3 *:* LISTEN 2045/couriertcpd
tcp 0 0 *:imap2 *:* LISTEN 2027/couriertcpd
tcp 0 0 localhost.localdo:spamd *:* LISTEN 1494/spamd.pid
tcp 0 0 *:http-alt *:* LISTEN 9454/apache2
tcp 0 0 *:www *:* LISTEN 9454/apache2
tcp 0 0 *:tproxy *:* LISTEN 9454/apache2
tcp 0 0 *:ftp *:* LISTEN 3186/pure-ftpd (SER
tcp 0 0 25612-21212.vps.:domain *:* LISTEN 1301/named
tcp 0 0 localhost.locald:domain *:* LISTEN 1301/named
tcp 0 0 *:ssh *:* LISTEN 1273/sshd
tcp 0 0 *:smtp *:* LISTEN 3169/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 1301/named
tcp 0 0 *:https *:* LISTEN 9454/apache2
tcp 0 0 localhost.localdo:mysql localhost.localdo:46648 ESTABLISHED 1275/mysqld
tcp 0 0 localhost.localdo:43227 localhost.localdo:mysql ESTABLISHED 1495/amavisd (ch18-
tcp 0 0 localhost.localdo:46648 localhost.localdo:mysql ESTABLISHED 1498/amavisd (ch17-
tcp 0 0 localhost.localdo:mysql localhost.localdo:43227 ESTABLISHED 1275/mysqld
tcp 0 0 25612-21212.vps.d:imaps CPE-124-181-115-1:44298 ESTABLISHED 3331/couriertls
tcp 0 240 25612-21212.vps.dig:ssh CPE-124-181-115-1:34614 ESTABLISHED 7298/sshd: root@tty
tcp 0 0 25612-21212.vps.d:imaps CPE-124-181-115-1:46038 ESTABLISHED 26486/couriertls
--------------------------

iptables -L

--------------------------

Chain INPUT (policy DROP)
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
DROP tcp -- anywhere 127.0.0.0/8
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
DROP all -- base-address.mcast.net/4 anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
PUB_IN all -- anywhere anywhere
DROP all -- anywhere anywhere

Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere
PUB_OUT all -- anywhere anywhere

Chain INT_IN (0 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
DROP all -- anywhere anywhere


Chain INT_OUT (0 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain PAROLE (16 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere

Chain PUB_IN (4 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere icmp echo-reply
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
ACCEPT icmp -- anywhere anywhere icmp echo-request
PAROLE tcp -- anywhere anywhere tcp dpt:ftp-data
PAROLE tcp -- anywhere anywhere tcp dpt:ftp
PAROLE tcp -- anywhere anywhere tcp dpt:ssh
PAROLE tcp -- anywhere anywhere tcp dpt:smtp
PAROLE tcp -- anywhere anywhere tcp dpt:domain
PAROLE tcp -- anywhere anywhere tcp dpt:www
PAROLE tcp -- anywhere anywhere tcp dptop3
PAROLE tcp -- anywhere anywhere tcp dpt:imap2
PAROLE tcp -- anywhere anywhere tcp dpt:https
PAROLE tcp -- anywhere anywhere tcp dpt:ssmtp
PAROLE tcp -- anywhere anywhere tcp dpt:imaps
PAROLE tcp -- anywhere anywhere tcp dptop3s
PAROLE tcp -- anywhere anywhere tcp dpt:mysql
PAROLE tcp -- anywhere anywhere tcp dpt:http-alt
PAROLE tcp -- anywhere anywhere tcp dpt:tproxy
PAROLE tcp -- anywhere anywhere tcp dpt:webmin
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:mysql
DROP icmp -- anywhere anywhere
DROP all -- anywhere anywhere

Chain PUB_OUT (4 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere

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