Comments (11)
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.
from ftpserver.
FYI, the first part of your issue should be fixed now that pull request #51 has been merged
from ftpserver.
Related: dotnet/corefx#8811
EDIT: Possible workaround: https://www.nuget.org/packages/GnuSslStream/
from ftpserver.
Version 3.0-beta.1 is released which should fix your first issue (AUTH TLS with server without certificate).
from ftpserver.
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.
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.
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.
@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.
@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.
I can reopen issue #49 and close this one.
from ftpserver.
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)
- UseImplicitTls throws error
- IFTPServer.Status Never Resets HOT 1
- Strange Filezilla behavior HOT 1
- Docker container PASV not able to connect HOT 4
- How to reject non-encrypted connections when I use the TLS function? HOT 2
- Cant stop the Server HOT 2
- LANG catalog loader - unnecessary NGettext dependency and debug log messages HOT 2
- ServerCertificate HOT 2
- BUG: FtpConnection.cs HOT 1
- FtpServerBuilderExtensionsForChecks.cs IFtpConnectionCheck HOT 1
- Memory leak because of Task.Delay(-1, token) HOT 3
- Bug inactivity timeout HOT 1
- Configure multiple command ports HOT 3
- Abnormal operation of DEMO program HOT 1
- How to make a directory read only
- Event/Trigger in server code when a new file was created by client
- Missing logger in XrmdCommandHandler and RmdCommandHandler
- A simple help wouldn't be bad at all friends 💥 HOT 1
- Disconnects from server every 60 seconds when using FTP and FTPS HOT 2
- InMemoryFileSystem documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftpserver.