Greetingz and Welcome to LQ!
Quote:
Originally Posted by seth3k
...I know this is a common problem, but i have a special case that troubles me and i can't find an answer anywhere.
|
It's actually not that special....
Quote:
Originally Posted by seth3k
The facts are like this:
I have a linux router. I have 2 FTP servers. One on port 21, one on port 201 (on the same internal IP).
|
I'm going to guess that you're running NAT behind that Linux router, and doing port-forwarding, right?
Just noticed your subject-line. Yep, you're running NAT.
Quote:
Originally Posted by seth3k
The FTP works great when connecting on both servers from the outside.
|
That's good to know, that means things are configured correctly....
Quote:
Originally Posted by seth3k
My problem is when i'm trying to connect to the 201 FTP server from inside the network using the external ip.
|
Actually, that's not a problem. See, when NAT tries to answer a request when said request originates from inside itself, it gets a little confused. Same thing happens with web servers. There's a trick you can do;
PreReq: You're going to need a free domainname from someplace like DynDNS.
The whole "Flying by IP Addresses"-only thing isn't going to cut it when NAT's in the way.
*NIX:
Add an entry in your /etc/hosts file that looks like this;
Code:
your.ip.add.ress fqdn.of.ftp.server ShortNameOfTheServer ShortAliasOfTheServer
Example:
Code:
10.0.0.1 ftp1.myinternal.domain.name.w00t ftp1 www.OMGitsAdomainName.com
W*ndowns:
Do the same as above, but search and edit the LMHOSTS file instead.
You might have to google around for the exact syntax. MSFT was never a big fan of standards....
Quote:
Originally Posted by seth3k
I get this:
ftp> ls
200 Port command successful
150 Opening data channel for directory list.
And it stays like this forever.
|
You could also try connecting to the server via "Passive" mode. If you're not sure how to do that, grab
FileZilla.
Quote:
Originally Posted by seth3k
Please help!!!!
|
I hope it does, ping us back and let us know, okay?
Quote:
Originally Posted by seth3k
Thanky you very much
|
You're welcome!
If this post (or any other) helps you out, hit "Yes" to the question in that post's bottom right-hand corner. Also, if your problem gets solved, go to "Thread Tools" at the top of this page and mark this [SOLVED]"