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

Opening a lot of ports. Why? #75

Closed
Feriman22 opened this issue Dec 18, 2023 · 2 comments
Closed

Opening a lot of ports. Why? #75

Feriman22 opened this issue Dec 18, 2023 · 2 comments

Comments

@Feriman22
Copy link
Contributor

Feriman22 commented Dec 18, 2023

Hi,

There are a lot of ports opened by docker compose (and docker run), specifically these:

- '20-21:20-21/tcp'
- '40000-40009:40000-40009/tcp'

However, to connect to the FTP server, it is sufficient to open TCP port 21. What is the purpose/meaning of the other ports?

Edit: I tested it in bridge network mode, and it works as expected. So only the 21 TCP port is required.

Thanks,
Feriman

@dnagy
Copy link

dnagy commented Jan 8, 2024

They are needed for passive mode. You can take a look at the configuration file for details: https://github.com/garethflowers/docker-ftp-server/blob/main/src/vsftpd.conf
If you don't intend to use passive mode, than you don't have to open those ports.

@Feriman22
Copy link
Contributor Author

I have created a pull request for that:
#77

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

3 participants