View Single Post
  #3  
Old 7th December 2011, 17:30
tbctr tbctr is offline
Member
 
Join Date: Dec 2010
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default

netstat
Code:
root@sunucu:~# 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.localdom:9000 *:*                     LISTEN      1938/php-fpm.conf)
tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      1050/amavisd (maste
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      2406/master
tcp        0      0 *:mysql                 *:*                     LISTEN      939/mysqld
tcp        0      0 *:http-alt              *:*                     LISTEN      1896/nginx
tcp        0      0 *:www                   *:*                     LISTEN      1896/nginx
tcp        0      0 *:tproxy                *:*                     LISTEN      1896/nginx
tcp        0      0 localhost.localdom:9010 *:*                     LISTEN      1938/php-fpm.conf)
tcp        0      0 localhost.localdom:9011 *:*                     LISTEN      1938/php-fpm.conf)
tcp        0      0 localhost.localdom:9012 *:*                     LISTEN      1938/php-fpm.conf)
tcp        0      0 *:ftp                   *:*                     LISTEN      2091/pure-ftpd (SER
tcp        0      0 localhost.localdom:9013 *:*                     LISTEN      1938/php-fpm.conf)
tcp        0      0 sunucu.siberbilg:domain *:*                     LISTEN      1070/named
tcp        0      0 sunucu.siberbilg:domain *:*                     LISTEN      1070/named
tcp        0      0 localhost.locald:domain *:*                     LISTEN      1070/named
tcp        0      0 localhost.localdom:9014 *:*                     LISTEN      1938/php-fpm.conf)
tcp        0      0 *:ssh                   *:*                     LISTEN      757/sshd
tcp        0      0 localhost.localdom:9015 *:*                     LISTEN      1938/php-fpm.conf)
tcp        0      0 *:smtp                  *:*                     LISTEN      2406/master
tcp        0      0 localhost.localdoma:953 *:*                     LISTEN      1070/named
tcp        0      0 localhost.localdo:47143 localhost.localdo:mysql ESTABLISHED 28850/amavisd (ch7-
tcp        0      0 localhost.localdo:47129 localhost.localdo:mysql ESTABLISHED 28695/amavisd (ch8-
tcp        0    248 sunucu.siberbilgisa:ssh 192.168.2.138:52647     ESTABLISHED 30669/0
tcp        0      0 localhost.localdo:mysql localhost.localdo:47143 ESTABLISHED 939/mysqld
tcp        0      0 localhost.localdo:mysql localhost.localdo:47129 ESTABLISHED 939/mysqld
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      1721/couriertcpd
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      1771/couriertcpd
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      1743/couriertcpd
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      1688/couriertcpd
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      2091/pure-ftpd (SER
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      1070/named
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      757/sshd
tcp6       0      0 ip6-localhost:953       [::]:*                  LISTEN      1070/named
iptables
Code:
root@sunucu:~# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
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 (15 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 dpt:pop3
PAROLE     tcp  --  anywhere             anywhere            tcp dpt:imap2
PAROLE     tcp  --  anywhere             anywhere            tcp dpt:https
PAROLE     tcp  --  anywhere             anywhere            tcp dpt:imaps
PAROLE     tcp  --  anywhere             anywhere            tcp dpt:pop3s
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-courierimap (0 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

Chain fail2ban-courierpop3 (0 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

Chain fail2ban-courierpop3s (0 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere

Chain fail2ban-sasl (0 references)
target     prot opt source               destination

Chain fail2ban-ssh (0 references)
target     prot opt source               destination
RETURN     all  --  anywhere             anywhere
1- on the Ubuntu server?

2- Does your router forward the ports to the correct server?

1- Yes Ubuntu server.
2- Yes correct server
Reply With Quote