GithubHelp home page GithubHelp logo

Comments (11)

chaseaucoin avatar chaseaucoin commented on July 20, 2024

I have the same issue. For now I'm just using the plain FTP protocol this is not ideal for long term but for now it works.

image

from ftpserver.

avonheimburg avatar avonheimburg commented on July 20, 2024

FYI, the first part of your issue should be fixed now that pull request #51 has been merged

from ftpserver.

fubar-coder avatar fubar-coder commented on July 20, 2024

Related: dotnet/corefx#8811
EDIT: Possible workaround: https://www.nuget.org/packages/GnuSslStream/

from ftpserver.

fubar-coder avatar fubar-coder commented on July 20, 2024

Version 3.0-beta.1 is released which should fix your first issue (AUTH TLS with server without certificate).

from ftpserver.

ArrowCase avatar ArrowCase commented on July 20, 2024

Thanks, I'll give it a try. For the SslStream issue, is calling the ShutdownAsync() API not possible as a workaround?

For the second issue, here's a gist of a connection log from ftptest.net to my server. It seems that the "unroutable address in passive reply" issue is something ftptest.net chokes on, while FileZilla proceeds by reusing the known server address.

Reply: 227 Entering Passive Mode (10,0,0,4,195,127).

Is the local IP being returned here a bug, or some misconfiguration with my server? Or is it expected, and ftptest.net is just not falling back properly?

from ftpserver.

fubar-coder avatar fubar-coder commented on July 20, 2024

The FTP server doesn't know its public IP address when you're using NAT. I'll open a new issue for this feature.

from ftpserver.

avonheimburg avatar avonheimburg commented on July 20, 2024

No need. I added a FTP server parameter "PasvAddress" my pull request #50, which you already merged. It is the exact setting you are looking for.

from ftpserver.

fubar-coder avatar fubar-coder commented on July 20, 2024

@ArrowCase : There is no such thing as ShutdownAsync in SslStream for net461/netstandard2.0. There isn't even an Close method for netstandard1.3.

from ftpserver.

ArrowCase avatar ArrowCase commented on July 20, 2024

@fubar-coder That's an annoying omission from netstandard20. Apparently the changes were done in time for its release but weren't considered in-scope.

I can confirm that @avonheimburg's changes fix both the initial TLS connection problem and the passive address behind NAT/firewall issue. Do you want to keep using this issue for the SslStream stuff, or close it and I can make another one focused on that?

from ftpserver.

fubar-coder avatar fubar-coder commented on July 20, 2024

I can reopen issue #49 and close this one.

from ftpserver.

cris88 avatar cris88 commented on July 20, 2024

No need. I added a FTP server parameter "PasvAddress" my pull request #50, which you already merged. It is the exact setting you are looking for.

Hello, how do I set that pasvAddress. I'm trying to mount an custom implementation of FTPServer using your nuget on a Docker server but I'm facing a lot of problems. One of them is that I want to set this passive address to public endpoint. How can I do this? Thanks

I'm trying to:
services.Configure(opt => new SimplePasvOptions()
{
PasvMinPort = 12000,
PasvMaxPort = 12020,
PublicAddress = System.Net.IPAddress.Parse("###publicaddress###")
});

Doesn't work...

from ftpserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.