I was able to install de FTP server (vsFTPd) with a user and password. Configured the security group:
I can connect internally from the machine with "ftp localhost", but trying with filezilla from another machine I get Connection timed out. The configuration is like this:
pasv_addr_resolve=NO
pasv_address=X.X.X.X
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
port_enable=YES
X.X.X.X is the public IP of the EC2 machine
Edit Adding IPTABLES info:
$ sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --sport 20 --dport 1024:1048 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 20:21 -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
Best Answer
Check: