-
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passive mode configuration #41
Comments
Nevermind, I found out the problem: The passive ports range is hardcoded in the command in the Dockerfile, so I extended it to replace the run command with my own ports. |
Hi nitnelave, I want to use the /etc/pure-ftpd/conf/PassivePortRange file to setup the port range. Can you help me? |
Yeah, I had trouble with the passive ports, so I stuck to the hardcoded method, it was enough for my use case. Sorry I can't help :/ |
I just found out. but I will create a new dockerfile. |
Hey @troptop , Yes that's correct, this container only uses the flags passed to pure-ftpd rather than the conf directory due to not calling the wrapper script. The wrapper script actually just parses these conf files and passes them as flags to the pure-ftpd command anyway so we have not implemented a way to run the wrapper currently. If you find a simple way to do so that doesn't affect live uses cases, you can submit me a pull request and i'd be happy to take a look and merge it into the project 👍 |
Hey @stilliard ,
I control the input for the boolean and integer parameters to be sure that the user does not use bad parameter. I wont do it for the other kind of parameter right now (string , 2 interger, charset, ip value .... info here https://www.linuxcertif.com/man/8/pure-ftpd-wrapper/) I have to change the script to handle the puredb symbolic link. Let you know when done |
I just finish the docker container. |
Hey @troptop , awesome work 👍 |
Hello,
I'm trying to setup this docker on my server so that I can serve a folder via FTP.
I have forwarded the port 10021 -> docker 21, as well as a range of ports for the passive connection (11000-11100)
I set the /etc/pure-ftpd/conf/PassivePortRange to "11000 11100" and .../ForcePassiveIP to my (host) server IP.
Connecting from the host with the host external IP is fine, but connecting from the host to localhost gives me "I won't open a connection to 127.0.0.1, only to <container_IP>".
Connecting from outside to the host:10021 checks the credentials alright, but when doing an
ls
, it hangs on "Entering passive mode".Any idea how I can make it work?
Thanks
The text was updated successfully, but these errors were encountered: