PDA

View Full Version : problem with active mode. socket error?


jesper_1
01-13-2005, 04:18 AM
Hello.

I have a problem with ioftpd running in active mode, when the user is behind nat.
Im running ioFTPD version: 5-8-5r

Ive told my users who are behind nat to forward some ports, and tell their ftp clients to use those ports for data transfer. and it works..
BUT, it seems that ioftpd isnt closing sockets.

If i forward 2 ports, i can recive data 2 times, then i have to wait for sockets to close, ~1 min.

Ive searched the forum and found a simular thread, about windows socket API being a prob when server is running on lownumber ports, and only lownumber ports.

But my server isnt on a low number port.. its on a port above 2000.
So i dont know if this is the same prob?

Any help getting around this would be VERY appriciated. Can you get ioftpd to close sockets sooner?

Since many of my users are behind NAT, this is a very big problem. :-/

Thnx in advance /jesper

Unique
01-13-2005, 06:46 AM
When uploading active ports are closed instantly, so theres not much problems.

When active downloading (both fxp or normal) the ports keep hanging for like 4 minutes..
http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit/en-us/Default.asp?url=/resources/documentation/Windows/2000/server/reskit/en-us/regentry/58811.asp
Been *****ing about this since a year or so, but it wont/cant be fixed.

So only way to half decently use this server is by changing your windows tcp settings:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters]
"TcpTimedWaitDelay"=dword:0000001e

This will change the timeout to like 30 seconds (= minimum i believe, havent tested lower) , still gives me transfer errors sometimes, but its a whole improvement..

Goodluck

jesper_1
01-13-2005, 07:45 AM
Thanks for the reply.

Strange thing is though, that this applys to uploads to (fxp), my users can send a file or 2, then it refuses until sockets close. Tried from many different servers, always the same. :confused:

Unique
01-13-2005, 08:55 AM
Ah not totally sure about upload then, maybe it goes ok with glftpd as source, and not ffxp or whatever.. no idea:o

Zer0Racer
01-14-2005, 06:53 AM
Originally posted by jesper

Im running ioFTPD version: 5-8-5r


io Registered: No?

Update your board profile [user cp] and enter your username and password for the member pages (www.ioftpd.com/members) so that we can see you're a registered user. Not following this instruction will result in a ban on this forum.

Thanks.