Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Windows command line ftp upload
« previous
next »
Print
Pages: [
1
]
Author
Topic: Windows command line ftp upload (Read 3546 times)
litusbdn
Newbie
Posts: 21
Karma: 0
Windows command line ftp upload
«
on:
January 24, 2017, 01:42:27 pm »
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!
Logged
bartjsmit
Hero Member
Posts: 2014
Karma: 194
Re: Windows command line ftp upload
«
Reply #1 on:
January 24, 2017, 07:31:11 pm »
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...
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Windows command line ftp upload