The Geek Forum

  • May 08, 2024, 09:47:03 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Due to the prolific nature of these forums, poster aggression is advised.

*

Recent Forum Posts

Shout Box

Members
Stats
  • Total Posts: 129618
  • Total Topics: 7184
  • Online Today: 147
  • Online Ever: 1013
  • (January 12, 2023, 01:18:11 AM)

Author Topic: FTP expertise needed  (Read 4620 times)

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
FTP expertise needed
« on: May 06, 2008, 09:07:04 AM »

If I posted this before, I don't remember it, therefore it never happened.

I am having a weird issue.  I can connect and login just fine.  When I do transfers, eventually it will stall with the message-

"150 File status okay; about to open data connection
Received 0 bytes in 120 secs, (0.00 Bps), transfer succeeded
421 Service not available, closing control connection.

This is the message in WS FTP, it does the same thing in Filezilla or any other client I have tried. 

What's weirder is that it only happens with files that are larger than ~7MB or so.  For files smaller than that, it seems to take the 120 seconds and then go ahead and transfer, which makes me think there is some sort of caching or timeout going on, but I haven't been able to find a setting for that either in the client or the server.  Also, this only occurs outside the server-side firewall.  On the local network files transfer perfectly.  Server is proftpd in Ubuntu.
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

TheJudge

  • Administrator
  • Hacker
  • *
  • Coolio Points: +330/-6
  • Offline Offline
  • Gender: Male
  • Posts: 5270
    • View Profile
Re: FTP expertise needed
« Reply #1 on: May 06, 2008, 09:50:58 AM »

I was thinking timeout issue as well. But I don't know where the session settings are.
Logged

MISTER MASSACRE

  • Lady Modmalade
  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +292/-17
  • Offline Offline
  • Posts: 2810
  • inhaling chalk in the old school
    • View Profile
    • twittery
Re: FTP expertise needed
« Reply #2 on: May 06, 2008, 01:39:06 PM »

If you go into /etc/proftpd.conf what are the settings?
Logged

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
Re: FTP expertise needed
« Reply #3 on: May 06, 2008, 01:57:00 PM »

A shitload of text, but I am not at the machine right now to post it.  I'll put it up tonight.
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

Demosthenes

  • Evil Ex-HN Moderator
  • Administrator
  • Hacker
  • *
  • Coolio Points: +567/-72
  • Offline Offline
  • Gender: Male
  • Posts: 9904
  • Just try me. See what happens.
    • View Profile
    • Zombo
Re: FTP expertise needed
« Reply #4 on: May 06, 2008, 03:10:58 PM »

What, you don't know the content of your .conf files off the top of your head?

What the hell kind of sysadmin ARE you?

 :?
Logged

Coolio Points: 89,000,998,776,554,211,222
Detta Puzzle Points: 45

Banning forum idiots since 2001

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
Re: FTP expertise needed
« Reply #5 on: May 06, 2008, 04:14:24 PM »

A maverick renegade.
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
Re: FTP expertise needed
« Reply #6 on: May 06, 2008, 08:38:03 PM »

I tried a whole new installation and it does it with the brand new conf file:

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6            off

ServerName         "Sagan"
ServerType         standalone
DeferWelcome         off

MultilineRFC2228      on
DefaultServer         on
ShowSymlinks         on

TimeoutNoTransfer      600
TimeoutStalled         600
TimeoutIdle         1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                   "-l"

DenyFilter         \*.*/

# Use this to jail all users in their homes
# DefaultRoot         ~

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShells      off

# Port 21 is the standard FTP port.
Port            21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
PassivePorts                  49152 65534

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
MasqueradeAddress      slurmsmckenzie.kicks-ass.org

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances         30

# Set the user and group that the server normally runs at.
User            proftpd
Group            nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask            022  022
# Normally, we want files to be overwriteable.
AllowOverwrite         on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd      off

# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile         off

# Choose a SQL backend among MySQL or PostgreSQL.
# Both modules are loaded in default configuration, so you have to specify the backend
# or comment out the unused module in /etc/proftpd/modules.conf.
# Use 'mysql' or 'postgres' as possible values.
#
#<IfModule mod_sql.c>
# SQLBackend         mysql
#</IfModule>

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        on
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
#   User            ftp
#   Group            nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias         anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser   on ftp
#   DirFakeGroup on ftp
#
#   RequireValidShell      off
#
#   # Limit the maximum number of anonymous logins
#   MaxClients         10
#
#   # We want 'welcome.msg' displayed at login, and '.message' displayed
#   # in each newly chdired directory.
#   DisplayLogin         welcome.msg
#   DisplayFirstChdir      .message
#
#   # Limit WRITE everywhere in the anonymous chroot
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
#
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask            022  022
#   #            <Limit READ WRITE>
#   #            DenyAll
#   #            </Limit>
#   #            <Limit STOR>
#   #            AllowAll
#   #            </Limit>
#   # </Directory>
#
# </Anonymous>
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

TheJudge

  • Administrator
  • Hacker
  • *
  • Coolio Points: +330/-6
  • Offline Offline
  • Gender: Male
  • Posts: 5270
    • View Profile
Re: FTP expertise needed
« Reply #7 on: May 07, 2008, 07:20:54 AM »


TimeoutNoTransfer      600
TimeoutStalled         600
TimeoutIdle         1200

Did you try increasing these numbers to see if that resolves it?
Logged

RelandR

  • Wannabe Professional Blogger
  • **
  • Coolio Points: +91/-4
  • Offline Offline
  • Gender: Male
  • Posts: 535
  • This portion of the page intentionally left blank
    • View Profile
Re: FTP expertise needed
« Reply #8 on: May 07, 2008, 03:27:04 PM »

Hows about the router, sounds like that's where it may be choking up.
Logged

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
Re: FTP expertise needed
« Reply #9 on: May 09, 2008, 09:11:27 AM »

I didn't change anything, and just now a 32mb file transferred successfully, then it choked on an 8mb file.  So I don't know what the hell.
The fact that this doesn't happen between systems on the local network leads me to agree that it's something in the router, but I have no idea what would cause this symptom.  As far as I know I have all the necessary ports forwarding correctly.
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

Novice

  • Forum Ninja
  • Hacker
  • ****
  • Coolio Points: +205/-10
  • Offline Offline
  • Gender: Male
  • Posts: 1463
  • Thread Killer 3.0
    • View Profile
Re: FTP expertise needed
« Reply #10 on: May 09, 2008, 09:16:50 AM »

Oh you would like that, wouldn't you?

Cisco router?
Logged
Look at you, hacker: a pathetic creature of meat and bone, panting and sweating as you run through my corridors. How can you challenge a perfect, immortal machine?

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
Re: FTP expertise needed
« Reply #11 on: May 09, 2008, 09:23:11 AM »

Linksys
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

Chris

  • Administrator
  • Hacker
  • *
  • Coolio Points: +286/-8
  • Offline Offline
  • Gender: Male
  • Posts: 3892
  • IT'S A TARP
    • View Profile
    • The Geekery
Re: FTP expertise needed
« Reply #12 on: May 09, 2008, 10:05:21 AM »

Try updating the firmware, if possible.

You might also have to enable the passive FTP mode on your client when going through the router.
Logged

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
Re: FTP expertise needed
« Reply #13 on: May 09, 2008, 10:45:07 AM »

I have tried passive, no change.  I'll check for firmware update.
thx
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

Joe Sixpack

  • Nerd
  • ***
  • Coolio Points: +176/-19
  • Offline Offline
  • Gender: Male
  • Posts: 836
  • Low brow and brilliant
    • View Profile
Re: FTP expertise needed
« Reply #14 on: May 09, 2008, 06:18:19 PM »

No firmware update available. 
I had another PC acting as the server previously and that worked, so it has to be a setting that I'm overlooking.
Logged
"God places cherubim with a flaming sword east of Eden to guard the Tree of Life from the ambitions of man.

Cherubim is plural; Genesis 3:24 specifies one flaming sword. Presumably flaming swords were in short supply."

jeee

  • Dork
  • ***
  • Coolio Points: +189/-4
  • Offline Offline
  • Gender: Male
  • Posts: 796
    • View Profile
Re: FTP expertise needed
« Reply #15 on: May 15, 2008, 04:18:31 PM »

Isn't there a setting to block a certain transferrate for a period of time ? if it's too high for a certain period some routers might consider it a flood.