vsftpd behind router
I am trying to set up an FTP server on my home network. I am having trouble connecting from the WAN.
I am running vsftpd on Raspbian on a raspberry pi. I have an Asus router with DD-WRT installed.
I have made the following adjustments to my /etc/vsftpd.conf file:
pasv_address=[my dyndns address]
The listen_port=2121 is because Charter blocks port 21.
I have my router (DD-WRT)set up to forward ports 2121, 20, and the range of 1024 to 1030 to my raspberry pi's LAN IP.
However, I am having trouble connecting from outside my network. When I run the command-line windows ftp from my computer at my work, I am able to log in. Once I am logged in, I have an exchange like this:
230 Login successful.
550 Permission denied.
425 Use PORT or PASV first.
ftp> literal pasv
227 Entering Passive Mode (68,187,99,74,4,2).
It just hangs for awhile before I get:
425 Failed to establish connection.
It keeps behaving like I'm having port forwarding problems, but I have everything set up in DD-WRT so it can't be that. Does anybody have any ideas?