PFSense Firewall Fix For Windows FTP |
I needed to setup an automated process on a windows client (no choice propriety software requires windows) to FTP text files to a old IBM mainframe FTP. To work around this issue I found a nice piece of software from IPSwitch called Move It Freely. You install the software and I highly recommend letting the software create the environmental variable so you can call the software from anywhere in the system. In your .bat files or VB Scripts if you call ftps instead of ftp it calls the "Move It Freely" client. Once you are connected make sure you change your transfer type to passive as Windows CMD Line FTP (ftp.exe) defaults with active as does Move it Freely. That is why in windows FTP you need to put the command QUOTE PASV to enable passive mode.
Documentation for move it freely can be found here.
Here is an example of a bat file to upload a file.
ftps $HOST -user:$Username -password:$Password
cd $directory
prompt
bin
hash
passive
put $FILE
quit