Windows command line ftp upload

Started by litusbdn, January 24, 2017, 01:42:27 PM

Previous topic - Next topic
Good morning,

I have replaced my old firewall with an Opnsense firewall.
I run through a script, a massive upload of txt files to an ftp server.

With the old firewall there were no problems running the script.
With Opensense, I find that it creates the txt files, but without content (all white). Reviewing the logs, I find the error: illegal port command.

With filezilla or other ftp clients works correctly. Only occurs via command line
I have created a firewall rule to allow the entire pass from the local server source to the remote FTP server, but I still have the same problem.

Can someone give me an idea how to correct my problem?

Thank you so much!

The Windows command line FTP client does not support passive mode unlike almost all other clients. Without passive mode, you will need to allow all inbound high ports from the FTP server (1024 - 65535). Swiss cheese anybody?

I would use a command line client that can use passive mode. Curl is pretty common for this type of stuff https://curl.haxx.se/ and has the --ftp-pasv option built in.

Bart...