View previous topic :: View next topic |
Author |
Message |
Zhen85 n00b
Joined: 03 May 2005 Posts: 14
|
Posted: Tue Nov 13, 2007 3:07 am Post subject: FTP "Can't open data connection" |
|
|
Hi All:
I've been using a Gentoo box as a router for a while now, and I've noticed that I can't access some FTP sites.
I get an error saying "Can't open data connection". I tried searching for this error on this forum but couldn't find anything.
Basically, these ftp sites would be accessible from work, but not from home where I'm behind my gentoo router.
FTP is enabled in the kernel, and everything else seems to work.
Is there anything I'm missing?
I know I'm not providing a lot of info here, but thats simple because I don't know what to look for.
Any help is appreciated.
Thanks
Zhen |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Tue Nov 13, 2007 9:23 am Post subject: |
|
|
I have the same problem with some sides.
For FTP port 21 should be sufficient to be opened, but data connection is lost in this case sometimes.
Last edited by Keruskerfuerst on Tue Nov 13, 2007 10:14 am; edited 1 time in total |
|
Back to top |
|
|
WintermuteX n00b
Joined: 29 Apr 2006 Posts: 48 Location: Germany
|
Posted: Tue Nov 13, 2007 10:03 am Post subject: |
|
|
did you compile the connection tracking (conntrack) module in the kernel? |
|
Back to top |
|
|
elestedt Guru
Joined: 13 Mar 2005 Posts: 383
|
Posted: Tue Nov 13, 2007 1:00 pm Post subject: Re: FTP "Can't open data connection" |
|
|
Zhen85 wrote: | Hi All:
I've been using a Gentoo box as a router for a while now, and I've noticed that I can't access some FTP sites.
I get an error saying "Can't open data connection". I tried searching for this error on this forum but couldn't find anything.
Basically, these ftp sites would be accessible from work, but not from home where I'm behind my gentoo router.
FTP is enabled in the kernel, and everything else seems to work.
Is there anything I'm missing?
I know I'm not providing a lot of info here, but thats simple because I don't know what to look for.
Any help is appreciated.
Thanks
Zhen |
If you're behind a router and the remote side is behind a router - without any port forwarding except for port 21 - then you will not be able to connect. Either you or the FTPd have to be in active mode (i.e accept incoming data connections) for you to be able to establish a data connection with the server. |
|
Back to top |
|
|
|