How to configure vsftpd for active and passive data connections on Amazon EC2?

~ 0 min
23-11-2011 22:01

This was causing me some headaches so here is the proper solution:

First of all: you need to open the firewall so FTP is not blocked anymore, besides port 20 and 21 you need also a lot more for passive connections, so either you open the firewall for all TCP connections, which isn´t a good idea, but you can limit the ports used by vsftpd with the following config parameters:


After that open port 10000 till 10024 in the instance security configuration.
And last but not least you need to add this directive and replace x.x.x.x with your external IP:


Average rating 0 (0 Votes)

You cannot comment on this entry