Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird problem with FTP transfers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fbd
n00b
n00b


Joined: 12 Sep 2004
Posts: 21
Location: Akureyri, Iceland

PostPosted: Sun Feb 20, 2005 2:18 am    Post subject: Weird problem with FTP transfers Reply with quote

Hi everyone!

Ok, here is the deal I am running proftpd and I am trying to transfer data between my server and others. This usually works with my default settings but now it seems not to be working. Normal upload/download transfer between server and client work perfectly.

Here is how my configuration looks like:
Code:
ServerName                      "FTP Server"
ServerType                      standalone
DefaultServer                   on
ServerIdent on "Go away"
[b]AllowForeignAddress on[/b]
Port                            21
Umask                           022
MaxInstances 30
MaxClients 10 "Only 10 connections allowed"
MaxClientsPerHost 10
MaxClientsPerUser 10
TimeoutStalled 120
TimeoutNoTransfer 360
TimeoutLogin 360
#PassivePorts 49152 65534
User                            nobody
Group                           nogroup

AllowOverwrite          on
AllowRetrieveRestart    on

AuthUserFile "/etc/proftpd/passwd"
AuthGroupFile "/etc/proftpd/group"

DefaultRoot ~
TransferLog /var/log/ftptransferlog

#Problems with globbing
DenyFilter \*.*/


As you can see AllowForeignAddress is on and the PORT command executes normaly when I try to start the transfer, but when the STOR tries to execute the file appiers on my server but the transfer never begins (so the file is always 0 Kb, it's just the name).

My firewall blocks only port 22 on foreign addresses so the firewall should not be a problem. I also tried pure-ftpd but I get the same error.

There is no problem with the servers I am trying to get data from. And there are no errors on the command stream.

What am I missing?


P.s. i tried with the PassivePort on and off and the passive modes seems to work but still no transfer.
_________________
Frailty, thy name is woman!
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Sun Feb 20, 2005 3:01 am    Post subject: Reply with quote

The firewall needs to be able to track FTP connections, since FTP is one of the protocols using more than one connection at the same time - one control connection and one data connection). If you're in control of the firewall, do
Code:
modprobe ip_conntrack_ftp
and additionally (if it's a masquerading firewall)
Code:
modprobe ip_nat_ftp

_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
fbd
n00b
n00b


Joined: 12 Sep 2004
Posts: 21
Location: Akureyri, Iceland

PostPosted: Sun Feb 20, 2005 6:06 pm    Post subject: Reply with quote

Thank you, I was not aware of this setting in the kernel, but I have tried probing both modules and I still have the same problem:
Code:
[R]  REST STREAM
[R]  SIZE
[R] 211 End
[R] PWD
[R] 257 "/" is current directory.
[R] TYPE I
[R] 200 Type set to I
[L] PASV
[L] 227 Entering Passive Mode (81,15,36,144,241,0)
[R] PORT 81,15,36,144,241,0
[R] 200 PORT command successful
[R] STOR file.doc


Do you have any other suggestions, I have even tried the Windowz way and restarted and hoped for everything to work after that, nothing happens :roll:
_________________
Frailty, thy name is woman!
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Sun Feb 20, 2005 9:21 pm    Post subject: Reply with quote

fbd wrote:
Thank you, I was not aware of this setting in the kernel, but I have tried probing both modules and I still have the same problem:


I cannot see any problem from the log above... :?
Back to top
View user's profile Send private message
fbd
n00b
n00b


Joined: 12 Sep 2004
Posts: 21
Location: Akureyri, Iceland

PostPosted: Mon Feb 21, 2005 1:11 am    Post subject: Reply with quote

Well, that is because there isn't any 8O

It just stoppes there with out any error or anything, I just don't understand this.
_________________
Frailty, thy name is woman!
Back to top
View user's profile Send private message
fbd
n00b
n00b


Joined: 12 Sep 2004
Posts: 21
Location: Akureyri, Iceland

PostPosted: Wed Feb 23, 2005 4:42 pm    Post subject: RFC Reply with quote

At least, any ideas on how I could debug this, what I should double check etc?:?
_________________
Frailty, thy name is woman!
Back to top
View user's profile Send private message
linuxbum
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2003
Posts: 131
Location: USA

PostPosted: Wed Feb 23, 2005 5:09 pm    Post subject: Reply with quote

fdp
Have Firewall admin to check logs and filter on the servers IP or the service FTP see if it is dropping your packet.

Please see this link http://slacksite.com/other/ftp.html
It explains how FTP really uses many ports other than 20&21..

Also try nmap to each server and see if FTP ports are open of filtered or blocked.

Bryan
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Thu Feb 24, 2005 9:19 am    Post subject: Reply with quote

Are you talking about FXP (server-to-server) transfers? If so, you need fxp=1 option with modprobe.
Back to top
View user's profile Send private message
fbd
n00b
n00b


Joined: 12 Sep 2004
Posts: 21
Location: Akureyri, Iceland

PostPosted: Thu Feb 24, 2005 6:33 pm    Post subject: Reply with quote

j-m wrote:
Are you talking about FXP (server-to-server) transfers? If so, you need fxp=1 option with modprobe.


That did the trick, I get reply code 150 :)

Thanks alot! :D
_________________
Frailty, thy name is woman!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum