I have installed VSFTP and configured it by adding the following lines...
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=<ELASTIC_IP>
Then I added the port ranges 1024 - 1048
and 20 - 21
. I then restarted VSFTPD and I can reach it locally from the EC2 instance. However, when I try to access it via my local computer (I am logging in anon for now) it asks me for username and password. I enter ftp
and a@b.com
but it just hangs after this is entered.
Am I missing something? Do I need to configure iptables? I tried...
-A INPUT -m tcp -p tcp --dport 20:21 -j ACCEPT
-A INPUT -m tcp -p tcp --dport 1024:1048 -j ACCEPT
But I get
iptables: Applying firewall rules: iptables-restore: line 1 failed
[FAILED]
What am I missing?