Skip to content
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

Active mode not work. return500 I won't open a connection to 10.21.38.117 (only to 172.17.0.1) 425 No data connection, thanks #106

Closed
zoukewang opened this issue Apr 23, 2019 · 7 comments

Comments

@zoukewang
Copy link

500 I won't open a connection to 10.21.38.117 (only to 172.17.0.1)
425 No data connection

@zoukewang zoukewang changed the title Active mode not work. return500 I won't open a connection to 10.21.38.117 (only to 172.17.0.1) 425 No data connection Active mode not work. return500 I won't open a connection to 10.21.38.117 (only to 172.17.0.1) 425 No data connection, thanks Apr 23, 2019
@stilliard
Copy link
Owner

Hi @zoukewang
Have you tried setting the PUBLICHOST to the IP of the host/server you're connecting to?

@zoukewang
Copy link
Author

Hi @zoukewang
Have you tried setting the PUBLICHOST to the IP of the host/server you're connecting to?

hi stilliard, i have set the PUBLICHOST to my host ip, The following is my run cmd: (on linux: passive/active mode is all OK, but on mac active mode return: 500 I won't open a connection to 10.21.38.117 (only to 172.17.0.1), I aslo try set mac ip_forward enable, but still useless) thanks

ip=10.21.38.117
docker run -d --name ftp -p 21:21 -p 30000-30029:30000-30029 -e PUBLICHOST=${ip} -e FTP_USER_NAME=nfvo -e FTP_USER_PASS=nfvo -e FTP_USER_HOME=/home/ftpusers/nfvo -e FTP_PASSIVE_PORTS=30000:30029 --expose=30000-30029 --privileged=true -v /Users/zoukewang/mywork/asiainfo/docker/ftp/data/nfvo:/home/ftpusers/nfvo stilliard/pure-ftpd:hardened

@stilliard
Copy link
Owner

Interesting, it sounds like it might be a firewall issue.
I don't have a mac but a quick search around returned the following ideas to try:
https://fetchsoftworks.com/fetch/help/Contents/Tutorial/ConfiguringMacOSFirewall.html
https://discussions.apple.com/thread/447657
Hope this helps.

@stilliard
Copy link
Owner

Hey @zoukewang ,
Did you find what was causing this in the end?

@jackzhangpython
Copy link

Hi @zoukewang
Have you tried setting the PUBLICHOST to the IP of the host/server you're connecting to?

solved this problem

@rljunggren
Copy link

@jackzhangpython How did you solve the Issue?

@matteoopenf
Copy link

@jackzhangpython How did you solve the Issue?

how did you solve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants