New Zealand ADSL Mailing List


RE: ftp server help

From: Steve Phillips <steve_at_focb.iconz.co.nz>
Date: Fri, 05 Oct 2001 08:59:47 +1200
Message-Id: <5.0.2.1.0.20011005085324.0469d7e0@focb.iconz.co.nz>

At 08:50 5/10/2001, Geoff Thornburrow (DSL HN) wrote:

>As far as I know...
>
>You need to forward (pinhole) TCP port 21 from the modem through to the FTP
>server. The FTP server also needs to be able to make outgoing connections on
>TCP port 20.

Depending if it is making active mode of passive mode connections, with
active mode the outgoing port is port 20 and the port to pinhole is port 21
(the control connection) however, many ftp clients default to passive mode
ftp (most notably, web browsers) and they work by making a connection back
to the ftp server on a port above 1024, which means you would then need to
pinhole all ports between 1024 and 65535 through to the ftp server.

however, some ftp servers (ProFTPd) have options that allow you to specify
port ranges that it will open up a passive mode connection and some routers
will dynamically pinhole ports based upon the PORT command the ftp server
issues when a data stream is being opened, wether your router has this
facility is another story.

Passive mode works when the client is behind a firewall/NAT device and
cannot be connected to directly from the net.
Active mode works when the client is not behind a firewall/NAT device and
can be connected to directly from the net.

if both the server and the client are behind a firewall/NAT device then
things get a little more difficult.

--
Steve.
>Geoff
>
> > Hi Guys,
> >
> > Im having some troubles setting up an ftp server on my machine. My
> > machine is on a LAN and access the internet through a router
> > (speedtouch
> > pro).
> >
> > Ive tried using G6 FTP or SERV U .. all work on the router assigned ip
> > address but how would I get people outside of my network to access it.
> >
> > The router automatically assigns ip address to everyone on
> > the LAN .. in
> > the for of 10.0.0.x ..
> >
> > Thanks
> >
> > Jithen
> >
> > This message is part of the NZ ADSL mailing list.
> > see http://unixathome.org/adsl/ for archives, FAQ,
> > and various documents.
> > To unsubscribe: send mail to majordomo@lists.unixathome.org
> > with "unsubscribe adsl" in the body of the message
> >
>
>This message is part of the NZ ADSL mailing list.
>see http://unixathome.org/adsl/ for archives, FAQ,
>and various documents.
>To unsubscribe: send mail to majordomo@lists.unixathome.org
>with "unsubscribe adsl" in the body of the message
This message is part of the NZ ADSL mailing list.
see http://unixathome.org/adsl/ for archives, FAQ,
and various documents.
To unsubscribe: send mail to majordomo@lists.unixathome.org
with "unsubscribe adsl" in the body of the message
Received on Fri Oct 5 09:00:18 2001

This archive was generated by hypermail 2.2.0 : Thu Nov 30 11:48:16 2006 EST