Networking Forums

Networking Forums > Computer Networking > Windows Networking > windows firewall blocks outgoing ftp connection

Reply
Thread Tools Display Modes

windows firewall blocks outgoing ftp connection

 
 
Andrey P.
Guest
Posts: n/a

 
      11-23-2005, 01:50 AM
Hello,

I have a small problem on some of my servers: Win2003 Server SP1 all the
patches installed. Windows firewall is enabled, ftp.exe is allowed to
connect, port tcp:21 is opened from outside but I cannot create *outgoing*
ftp connection neither in active nor in passive mode:

~~~
D:\>ftp ftp.cdrom.com
Connected to cdrom.wip.digitalriver.com.
Connection closed by remote host.
~~~

Sure, switching off firewall solves the problem.

Anyone, any clues ?

-Andrey


 
Reply With Quote
 
 
 
 
Todd J Heron
Guest
Posts: n/a

 
      11-24-2005, 01:45 PM
"Andrey P." <(E-Mail Removed)> wrote in messagel...
>Hello,
>
>I have a small problem on some of my servers: Win2003 Server SP1 all the
>patches installed. Windows firewall is enabled, ftp.exe is >allowed to
>connect, port tcp:21 is opened from outside but I cannot create *outgoing*
>ftp connection neither in active nor in passive mode:
>
>~~~
>D:\>ftp ftp.cdrom.com
>Connected to cdrom.wip.digitalriver.com.
>Connection closed by remote host.
>~~~
>
>Sure, switching off firewall solves the problem.


Remote FTP server tries to make a connection back to you (after you make an
initial connection to it over tcp 21) on a high port > 1023 which windows
firewall is blocking. I don't think you want to open all those ports. If
you upgrade to RRAS, the NAT in RRAS (Windows 2003) has active FTP
translation support, but you have to enable it with:

netsh routing ip nat add ftp

This is documented here (watch out for long URL wrap):

http://www.microsoft.com/technet/pro...f4e9f04df.mspx

--
Todd J Heron, MCSE
Windows Server 2003/2000/NT; CCA
----------------------------------------------------------------------------
This posting is provided "as is" with no warranties and confers no rights


 
Reply With Quote
 
Andrey P.
Guest
Posts: n/a

 
      11-24-2005, 11:00 PM
Hello Todd,

Thanks for the advice! But it seems to me that the reason not in the
firewall itself, but in the application layer gateway. Moreover, the problem
started just recently, possibly after the last windows update (when I turn
logging on Windows firewall, there's no dropped packets logged). Secondly,
RRAS solution doesn't work for me since it cannot be run at the same time
with widows firewall service.

-Andrey.


"Todd J Heron" <todd_heron(delete)@hotmail.com> wrote in message
news:%(E-Mail Removed)...
> "Andrey P." <(E-Mail Removed)> wrote in messagel...
> >Hello,
> >
> >I have a small problem on some of my servers: Win2003 Server SP1 all the
> >patches installed. Windows firewall is enabled, ftp.exe is >allowed to
> >connect, port tcp:21 is opened from outside but I cannot create

*outgoing*
> >ftp connection neither in active nor in passive mode:
> >
> >~~~
> >D:\>ftp ftp.cdrom.com
> >Connected to cdrom.wip.digitalriver.com.
> >Connection closed by remote host.
> >~~~
> >
> >Sure, switching off firewall solves the problem.

>
> Remote FTP server tries to make a connection back to you (after you make

an
> initial connection to it over tcp 21) on a high port > 1023 which windows
> firewall is blocking. I don't think you want to open all those ports. If
> you upgrade to RRAS, the NAT in RRAS (Windows 2003) has active FTP
> translation support, but you have to enable it with:
>
> netsh routing ip nat add ftp
>
> This is documented here (watch out for long URL wrap):
>
>

http://www.microsoft.com/technet/pro...f4e9f04df.mspx
>
> --
> Todd J Heron, MCSE
> Windows Server 2003/2000/NT; CCA
> --------------------------------------------------------------------------

--
> This posting is provided "as is" with no warranties and confers no rights
>
>



 
Reply With Quote
 
MikeV99
Guest
Posts: n/a

 
      11-25-2005, 01:43 PM
On Tue, 22 Nov 2005 18:50:04 -0800, "Andrey P." <(E-Mail Removed)>
wrote:

>Hello,
>
>I have a small problem on some of my servers: Win2003 Server SP1 all the
>patches installed. Windows firewall is enabled, ftp.exe is allowed to
>connect, port tcp:21 is opened from outside but I cannot create *outgoing*
>ftp connection neither in active nor in passive mode:
>
>~~~
>D:\>ftp ftp.cdrom.com
>Connected to cdrom.wip.digitalriver.com.
>Connection closed by remote host.
>~~~
>
>Sure, switching off firewall solves the problem.
>
>Anyone, any clues ?
>
>-Andrey


I am running the same setup and have no problems:

C:\>ftp ftp.cdrom.com
Connected to cdrom.wip.digitalriver.com.
220 drftp.digitalriver.com NcFTPd Server (licensed copy) ready.
User (cdrom.wip.digitalriver.comnone)): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230-You are user #16 of 500 simultaneous users allowed.
230-
230 Logged in anonymously.
ftp> quit
221 Goodbye.

Not sure what to check to see why I can and you cannot.

 
Reply With Quote
 
FabrizioV
Guest
Posts: n/a

 
      11-28-2005, 07:38 AM
Hello Andrey.
If shutting the firewall solves the problem, maybe there is something to
check on the rules.
If the server you're connecting to uses active FTP, you need to let the port
21 AND 20 from the server to any port over 1024.
Have you trid to allow port 20 ?

--
Fabrizio Volpe
MCSE 2003/2000/NT
MCT
 
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
Solwise SAR-600E with NAT and firewall off blocks incoming connections Geoff Clare Broadband 11 09-30-2009 01:13 PM
Firewall blocks File sharing in Windows 2008 connected to the domain. MarcusB Windows Networking 4 04-12-2008 02:28 PM
Builtin Firewall Blocks Localhost Access (Even Open Ports) Michael Kennedy [UB] Windows Networking 1 06-30-2004 11:42 AM
SMC Router Firewall Blocks Access to WAN Addresses 255, 0 Tom Holden Wireless Internet 17 06-01-2004 03:42 PM
(MN-500) ISP firewall blocks Installation? msbaseuser@pcgrove.com Broadband Hardware 1 04-30-2004 01:32 AM



1 2 3 4 5 6 7 8 9 10 11