Re: RRAS and Passive FTP.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Enkidu (enkidu_at_xyzcliffpxyz.com)
Date: 06/12/04


Date: Sat, 12 Jun 2004 12:44:08 +1200


It's incoming ports that have to be opened. The basic firewall setup
is for *all* outgoing ports to be open and no incoming ports open. You
then open any required incoming ports for webservers behind the
firewall or whatever and close others that you don't want to go out..

If you have an ftp client outside trying to get in to your ftp server,
it first makes a connection on port 21 and in active mode the server
then makes a connection out on port 20 to the ftp client. So to make
active ftp work all that is normally needed is for the firewall to
allow connections on port 21 and if necessary NAT them to the correct
server. The outbound connection is on port 20 and that goes OK unless
outgoing restrictions have been put in place.

If the client is behind a firewall however, it cannot accept incoming
request on port 20. This is why passive ftp was developed. The client
end make the control connection on port21 as before. During the
connection dialog your server says to the client "connect using port
xxxx" for the data connection. The client then attempts to connect to
yourserver on port xxxx for the data connection. For this to work you
need to open port 21 and several high order *incoming* ports. Your
firewall device should be set up to allow 21 + high order ports and
should NAT them to the server.

http://slacksite.com/other/ftp.html

Cheers,

Cliff

On Thu, 10 Jun 2004 12:51:46 +0100, "Jim.J" <sam@mxweaver.com> wrote:

>Thanks for your reply. I do realise that but i cant figure out how to allow
>all ougoing ports on a single IP in RRAS basic firewall / NAT. Any ideas?
>
>"Gerry Voras" <gerry.voras@nextaction.com> wrote in message
>news:urdbTNoTEHA.1284@TK2MSFTNGP10.phx.gbl...
>> That's going to be the price you pay for security. Either allow the ports
>> to be open, or don't use PASV mode.
>>
>> I personally would switch to SSH/SCP/SFTP for file transfers. Much more
>> secure in any case.
>>
>> "JimJ" <JimJ.17lblz@mail.webservertalk.com> wrote in message
>> news:JimJ.17lblz@mail.webservertalk.com...
>> >
>> > Hi all,
>> > I want to use RRAS Basic Firewall /NAT for an extra layer of port
>> > blocking and have configured everything except I cannot work out how to
>> > allow for passive FTP. Passive FTP basically requires that a large
>> > range of outgoing ports is open on the IP used for FTP. However i
>> > cannot find anyway to allow all outgoing or a port range within RRAS.
>> > Does anyone know how to do this?
>> > Thanks in advance for any input.
>> >
>> >
>> >
>> > --
>> > JimJ
>> > ------------------------------------------------------------------------
>> > Posted via http://www.webservertalk.com
>> > ------------------------------------------------------------------------
>> > View this thread: http://www.webservertalk.com/message255886.html
>> >
>>
>>
>



Relevant Pages

  • Re: Another VPN Issue...Say it aint so...
    ... click on "Services and Ports." ... Now how can I configure the firewall within ... but this time disable Firewall and redo remote access ... to make sure I get a good snap-in connection and see what goes on?!? ...
    (microsoft.public.windows.server.sbs)
  • Re: WDSC, VPN, and RPG Editing
    ... this) and so it drops the ethernet connection. ... to do with firewalls or other ports. ... do with the firewall on my router and the ports that are/aren't ... workstation to port 446 on the iSeries server. ...
    (comp.sys.ibm.as400.misc)
  • AdAware, SpyBot S &D, etc. + leave PC connected to Internet
    ... Does it have somehting to dow the Firewall ... with spyware services and adsites, the latter of which can be worse ... What ports are open? ... routers do absolutely zero as far as preventing outbound connection ...
    (comp.security.firewalls)
  • Re: How to close the unnecessary Ports
    ... >> necessary ports for a homeuser and how to close the rest of the ports? ... I assume you are running a hostbased firewall with no server ports ... > know whether it is a statefull or a packet filtering firewall as the ... makes decisions based on the connection as well as the rule base. ...
    (alt.computer.security)
  • Re: WDSC, VPN, and RPG Editing
    ... to do with firewalls or other ports. ... VPN my connection is great, ... do with the firewall on my router and the ports that are/aren't ... workstation to port 446 on the iSeries server. ...
    (comp.sys.ibm.as400.misc)