-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
PASV not fun :) #5
Comments
Lol yer, this could be interesting with docker networking, but i can have a play later passing -P when starting pure-ftpd |
Hi @kluthen, I've just been testing this and atm i can't seem to reproduce this yet. |
My friend used FileZilla. I used some ftp test website to point out the problem. From my server I can only work in active mode. + I ve got some problem because I was mounting volume where the user should do his ftp work. That shouldn't be linked anyway. I m not able to find the website right now ... I m at work. I'll give it a look asap. And it s true that I haven't dig too much with -p options for that kind of networking problem ... Barcaioni Bastien
|
I had this issue too. Here are the steps I used to fix my install ( your install may be a little different.) I git pulled the repository to my server. BEFORE: AFTER: This exposes enough ports to enable PASV connections and configures the pure-ftpd process to accept PASV on those ports. Then I edited the Makefile: BEFORE: AFTER: This added the name and tells docker (manually) to map the ports through with NAT. So then you run "make build" and then "make run". If build does not run the first time, ctrl-c it and try again (weird but my build went into a loop and just cancelling and restarting made it work). Next follow the Readme.md after "Operating it" (login and create users) and you should be good to go. I'm not sure how much of this (if any) Andrew can add to the build but I hope it helps someone. Sorry about my misguided previous post :p Leon |
Hi @leonletto, thanks for all this, sorry i've been so slow responding, i'll review these changes soon, hopefully we can get all this working in this standard build 👍 |
Just to add my 2 cents - this fixed it for me, too. I added the following to the
And changed the Makefile:
|
I had the same issue while running this image in a Mac (via Docker Toolbox), which uses a VirtualBox VM to run the docker daemon. @feinstruktur solution worked perfectly for this scenario. |
Thanks a lot! |
@feinstruktur Thanks that looks good, sorry my replies have been slow here. |
Hi all, |
Hello, having a FTP-server in docker container. the data port is exposed to the host. But I cannot access the ftp server with the browser. Should the docker container be able to reach the host for PASV? |
2017 UPDATE As of 26 July 2017, following the build steps works. However you MUST change the |
@ViktorBarzin for me, it won't work if I set ftp:
build:
context: ./dockerfiles
dockerfile: my-dockerfile
image: my_ftp
ports:
- 21
- 30000-30009
environment:
PUBLICHOST: 1.2.3.4
volumes:
- ./ftp:/home/ftpusers/
networks:
my-net:
ipv4_address: 1.2.3.4 |
@choma Yes because you have set the container in its own network with different address. If you tell me more about your setup I may be able to help you more :) |
@ViktorBarzin, thanks for the quick reply. In fact, I'm happy with my current setup, and just commenting in case someone else find it useful. My use case is this: I'm testing a software that uploads files to a domain that I can't change. So I add that domain to my hosts file and point it to 1.2.3.4, and then set that IP to the pure-ftp container. Maybe there is a better configuration, but this one just works. :) |
@choma Yes in your case setting I had 2 physical hosts - one running the ftp container and the other one running the client and I had to point it to my hosts address. |
Shouldn't |
I opened the docker for some friend which in turn had a nice problem ... (whereas I used the ftp with a simple ftp command ... )
From what I understand of docker this might become troublesome to resolve won't it ? :p I dont know how to enter in passive mode with ftp command ... when I hit passive, it work nice enough... but i guess it fails back to active if passive doesn't work ... so maybe i simply dont get notified.
Any idea ? Guess i'll simply have to ask my friend to go on active if it's possible
The text was updated successfully, but these errors were encountered: