View Single Post
  #5  
Old 29th May 2009, 11:44
ang3lx ang3lx is offline
Junior Member
 
Join Date: Feb 2009
Posts: 25
Thanks: 2
Thanked 3 Times in 2 Posts
Default iptables

ok

this is a vds under NAT, but have an external ip frwarded by nat.
however if I try to login in ftp by ssh command ftp of another server, I can join

Quote:
wh:~# iptables -L
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
Quote:
wh:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:46016 *:* LISTEN 1922/rpc.statd
tcp 0 0 localhost.localdoma:902 *:* LISTEN 2846/famd
tcp 0 0 localhost.localdo:10024 *:* LISTEN 2154/amavisd (maste
tcp 0 0 localhost.localdo:10025 *:* LISTEN 2800/master
tcp 0 0 *:mysql *:* LISTEN 2218/mysqld
tcp 0 0 localhost.localdo:spamd *:* LISTEN 2323/spamd.pid
tcp 0 0 *:sunrpc *:* LISTEN 1911/portmap
tcp 0 0 *:ftp *:* LISTEN 20157/pure-ftpd (SE
tcp 0 0 172.16.179.31:domain *:* LISTEN 3020/mydns
tcp 0 0 localhost.locald:domain *:* LISTEN 3020/mydns
tcp 0 0 *:ssh *:* LISTEN 2126/sshd
tcp 0 0 *:smtp *:* LISTEN 2800/master
tcp 52 0 localhost.localdo:36026 localhost.localdo:10025 CLOSE_WAIT 2231/amavisd (ch1-a
tcp 0 0 localhost.localdo:mysql localhost.localdo:54858 ESTABLISHED 2218/mysqld
tcp 0 52 172.16.179.31:ssh 93-44-144-145.ip9:51826 ESTABLISHED 32015/0
tcp 0 0 localhost.localdo:54858 localhost.localdo:mysql ESTABLISHED 2231/amavisd (ch1-a
tcp6 0 0 [::]:imaps [::]:* LISTEN 2706/couriertcpd
tcp6 0 0 [::]op3s [::]:* LISTEN 2724/couriertcpd
tcp6 0 0 [::]op3 [::]:* LISTEN 2712/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 2694/couriertcpd
tcp6 0 0 [::]:http-alt [::]:* LISTEN 2905/apache2
tcp6 0 0 [::]:www [::]:* LISTEN 2905/apache2
tcp6 0 0 [::]:ftp [::]:* LISTEN 20157/pure-ftpd (SE
tcp6 0 0 localhost:domain [::]:* LISTEN 3020/mydns
tcp6 0 0 [::]:ssh [::]:* LISTEN 2126/sshd
tcp6 0 0 [::]:https [::]:* LISTEN 2905/apache2
Reply With Quote