Networking Forums

Networking Forums > Computer Networking > Windows Networking > ftp server & firewall

Reply
Thread Tools Display Modes

ftp server & firewall

 
 
Perry Diels
Guest
Posts: n/a

 
      01-18-2004, 11:43 PM
Hello,

I have setup IIS on W2K3 standard which is running ok. The only problem is
for users that are logging into the FTP server via an internet connection
who are themselves behind a firewall, NAT, router or whatever cannot
communicate with our FTP server, unless I disable the basic firewall on our
server in the RRAS console (on the Internet NIC). Users that are directly
connected to the Internet have no problem at all even though the firewall is
turned on. I suppose some ports need to be opened in our firewall in order
to leave it running, which I'd prefer in order to have more security. Is
this correct? If yes I need to know what port numbers need to be opened, I
have tried some but without success. Our FTP server is running at port 1994
(which I have opened in the firewall for sure), but I know that FTP needs
more than one port in order to communicate correctly. Just in case you
should ask, yes I have tried both passive (PASV) and Active from the client
side.

Thanks for your help.
Perry


 
Reply With Quote
 
 
 
 
Gino
Guest
Posts: n/a

 
      01-19-2004, 03:03 AM
With FTP Active, the client makes a connection to the server on port 21
which is the default (or what ever port you configured), this is the control
channel (no data or directory information). When the client issues a Port
command (somthing like LIST) the server makes the second connection back to
the client on a high port number, that the client is listening on. If the
client is behind a firewall (DSL router or something) the server cannot make
the connection because it is blocked. (This is where passive mode comes in).
In passive mode the client makes both connections to the server, so a
DSL router isn't a problem because both connections are outbound for the
client. The first connection is just like Active mode, but when the client
issues a request, it issues a passive request. The server then tells the
client to make the second connection and gives it the port number that it
(the server) is listening on, which could be anything from 1024 to 65,535.
(IIS is supposed to stay between 1024 and 5000, but I see it connecting at
around 15,000 all the time). These ports would need to be opened on the
server side. You can tighten this up by making an edit in the Metabase on
IIS6, or a registry edit on IIS5. But depending how many clients are
connecting you still might need a couple hundred (the same client will move
to different high port number as the session goes on.)
And if you are using IE for FTP and configure it for PASV mode by going
into properties, clicking the Advanced tab and putting a check next to USE
PASV MODE FOR FTP (good for DSL) you are still in ACTIVE MODE. You also have
to UNCHECK next to USE FOLDER VIEW FOR FTP.


"Perry Diels" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have setup IIS on W2K3 standard which is running ok. The only problem is
> for users that are logging into the FTP server via an internet connection
> who are themselves behind a firewall, NAT, router or whatever cannot
> communicate with our FTP server, unless I disable the basic firewall on

our
> server in the RRAS console (on the Internet NIC). Users that are directly
> connected to the Internet have no problem at all even though the firewall

is
> turned on. I suppose some ports need to be opened in our firewall in order
> to leave it running, which I'd prefer in order to have more security. Is
> this correct? If yes I need to know what port numbers need to be opened, I
> have tried some but without success. Our FTP server is running at port

1994
> (which I have opened in the firewall for sure), but I know that FTP needs
> more than one port in order to communicate correctly. Just in case you
> should ask, yes I have tried both passive (PASV) and Active from the

client
> side.
>
> Thanks for your help.
> Perry
>
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server 2008 with Hyper-V - domain controller - Firewall GUI's show firewall ON, but netsh reports firewall OFF Bruce Sanderson Windows Networking 7 10-07-2008 09:57 AM
SSH from behind a firewall to a server alex.colic@rbc.com Linux Networking 3 05-30-2006 05:16 PM
Regarding Proxy server & firewall Rakesh Roy Windows Networking 0 09-07-2004 02:04 PM
Using a linux server as a firewall Lyle H. Gray Linux Networking 12 12-12-2003 02:20 AM
web server must be outside the firewall? Matthew Louden Windows Networking 4 12-02-2003 07:53 PM



1 2 3 4 5 6 7 8 9 10 11