<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: FTP server behind a Cisco 2811 with Firewall in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637801#M1023394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's what I currently have configured on my router:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip inspect name APP_FIREWALL ftp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip nat inside source static tcp (Internal IP) 21 interface FastEthernet0/0 21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip access-list extended FIREWALL&lt;/P&gt;&lt;P&gt;permit tcp any host (External IP) eq ftp&lt;/P&gt;&lt;P&gt;permit tcp any host (External IP) eq ftp-data&lt;/P&gt;&lt;P&gt;permit tcp any host (External IP) established&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using CoreFtp as the client, and I have tested this from home and it works if I set the client to use Active mode when it connects, but it does not work when I set the client to use Passive mode because the Firewall blocks the connection. The client is able to make the initial connection on port 21, however, when the client switches over to a random port, the firewall then blocks it.  &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2007 15:12:28 GMT</pubDate>
    <dc:creator>chadlenox</dc:creator>
    <dc:date>2007-03-22T15:12:28Z</dc:date>
    <item>
      <title>FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637796#M1023387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a Cisco newbie, :). And I really need your help or direction. I am trying to setup a ftp server using Windows XP Pro. This server has a static local ip, and this local ip is Natted to a public IP on my router. The router has configuration with vpn, firewall... If I vpn in from the internet, I can connect, transfer data to my ftp server using the local ip without problems. But If I disconnect the vpn, and try to connect to the ftp server using the public IP, I can login without problem. However, if I try to list, transfer....data from/to my ftp server, it just hang on me. I guess there are something missing with my firewall configurations, and it just keep blocking the service. I did search a lot for did issue, but all I find is exactly what I have: nat the local ip to public, then grant access to ftp port and ftp-data port on the public ip. I am at loss now, and I am not sure where to start. Below is some config from my router and the problems when I am trying to connect to my ftp site using dos prompt. I thank you in advance. Any help or direction would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;partial configuration from Cisco 2811 router:&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;ip cef&lt;/P&gt;&lt;P&gt;ip port-map ftp port tcp 20&lt;/P&gt;&lt;P&gt;ip inspect name FW tcp&lt;/P&gt;&lt;P&gt;ip inspect name FW udp&lt;/P&gt;&lt;P&gt;ip inspect name FW icmp&lt;/P&gt;&lt;P&gt;ip inspect name FW h323&lt;/P&gt;&lt;P&gt;ip inspect name FW rcmd&lt;/P&gt;&lt;P&gt;ip inspect name FW realaudio&lt;/P&gt;&lt;P&gt;ip inspect name FW smtp&lt;/P&gt;&lt;P&gt;ip inspect name FW sqlnet&lt;/P&gt;&lt;P&gt;ip inspect name FW streamworks&lt;/P&gt;&lt;P&gt;ip inspect name FW tftp&lt;/P&gt;&lt;P&gt;ip inspect name FW vdolive&lt;/P&gt;&lt;P&gt;ip inspect name FW ftp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip nat inside source static local.ftp.server.ip public.ip route-map t1-map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list 111 permit tcp any host public.ip eq ftp&lt;/P&gt;&lt;P&gt;access-list 111 permit tcp any host public.ip eq ftp-data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cisco2811#show ip port-map ftp&lt;/P&gt;&lt;P&gt;Default mapping:  ftp                  tcp port 21                         syste&lt;/P&gt;&lt;P&gt;m defined&lt;/P&gt;&lt;P&gt;Default mapping:  ftp                  tcp port 20                         user&lt;/P&gt;&lt;P&gt;defined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Dos Prompt trying to connect to FTP Site&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\&amp;gt;ftp public.ip&lt;/P&gt;&lt;P&gt;Connected to public.ip&lt;/P&gt;&lt;P&gt;220-Microsoft FTP Service&lt;/P&gt;&lt;P&gt;220 PTS FTP SITE&lt;/P&gt;&lt;P&gt;User (public.ip:(none)): user&lt;/P&gt;&lt;P&gt;331 Password required for user.&lt;/P&gt;&lt;P&gt;Password:&lt;/P&gt;&lt;P&gt;230-WELCOME TO PTS FTP SITE.&lt;/P&gt;&lt;P&gt;230 User user logged in.&lt;/P&gt;&lt;P&gt;ftp&amp;gt; ls&lt;/P&gt;&lt;P&gt;200 PORT command successful.&lt;/P&gt;&lt;P&gt;150 Opening ASCII mode data connection for file list.&lt;/P&gt;&lt;P&gt;425 Can't open data connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Dos Prompt trying to connect to FTP Site with (quote PASV)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\&amp;gt;ftp public.ip&lt;/P&gt;&lt;P&gt;Connected to public.ip&lt;/P&gt;&lt;P&gt;220-Microsoft FTP Service&lt;/P&gt;&lt;P&gt;220 PTS FTP SITE&lt;/P&gt;&lt;P&gt;User (public.ip:(none)): user&lt;/P&gt;&lt;P&gt;331 Password required for user.&lt;/P&gt;&lt;P&gt;Password:&lt;/P&gt;&lt;P&gt;230-WELCOME TO PTS FTP SITE.&lt;/P&gt;&lt;P&gt;230 User user logged in.&lt;/P&gt;&lt;P&gt;ftp&amp;gt; quote PASV&lt;/P&gt;&lt;P&gt;227 Entering Passive Mode (public.ip,19,137).&lt;/P&gt;&lt;P&gt;ftp&amp;gt; ls&lt;/P&gt;&lt;P&gt;200 PORT command successful.&lt;/P&gt;&lt;P&gt;150 Opening ASCII mode data connection for file list.&lt;/P&gt;&lt;P&gt;425 Can't open data connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 09:44:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637796#M1023387</guid>
      <dc:creator>phuong-le</dc:creator>
      <dc:date>2019-03-11T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637797#M1023389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use active FTP , it may works.   also check this bug-id:CSCsg37315, which related to IOS Firwall.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 16:38:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637797#M1023389</guid>
      <dc:creator>fmeetz</dc:creator>
      <dc:date>2007-03-16T16:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637798#M1023391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thank you for your response. How do I set active ftp in my router?&lt;/P&gt;&lt;P&gt;About the bug-id:CSCsg37315, I could find anything. Could you point out a link somewhere. Again, thank you for your reply.&lt;/P&gt;&lt;P&gt;PL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 02:07:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637798#M1023391</guid>
      <dc:creator>phuong-le</dc:creator>
      <dc:date>2007-03-21T02:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637799#M1023392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have this same problem.  I am trying to setup an FTP server behind our Cisco 2811 Firewall to allow our clients to transfer files to our server.  The problem with using Active FTP is that if the client who is trying to connect to the FTP server is also behind a firewall, the connection will be blocked by their firewall.  Of course when using Passive FTP, it gets blocked by our firewall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active FTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In active mode FTP the client connects from a random unprivileged port (N &amp;gt; 1023) to the FTP server's command port, port 21. Then, the client starts listening to port N+1 and sends the FTP command PORT N+1 to the FTP server. The server will then connect back to the client's specified data port from its local data port, which is port 20. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the server-side firewall's standpoint, to support active mode FTP the following communication channels need to be opened: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?	FTP server's port 21 from anywhere (Client initiates connection)&lt;/P&gt;&lt;P&gt;?	FTP server's port 21 to ports &amp;gt; 1023 (Server responds to client's control port)&lt;/P&gt;&lt;P&gt;?	FTP server's port 20 to ports &amp;gt; 1023 (Server initiates data connection to client's data port)&lt;/P&gt;&lt;P&gt;?	FTP server's port 20 from ports &amp;gt; 1023 (Client sends ACKs to server's data port)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main problem with active mode FTP actually falls on the client side. The FTP client doesn't make the actual connection to the data port of the server--it simply tells the server what port it is listening on and the server connects back to the specified port on the client. From the client side firewall this appears to be an outside system initiating a connection to an internal client--something that is usually blocked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passive FTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to resolve the issue of the server initiating the connection to the client a different method for FTP connections was developed. This was known as passive mode, or PASV, after the command used by the client to tell the server it is in passive mode. &lt;/P&gt;&lt;P&gt;In passive mode FTP the client initiates both connections to the server, solving the problem of firewalls filtering the incoming data port connection to the client from the server. When opening an FTP connection, the client opens two random unprivileged ports locally (N &amp;gt; 1023 and N+1). The first port contacts the server on port 21, but instead of then issuing a PORT command and allowing the server to connect back to its data port, the client will issue the PASV command. The result of this is that the server then opens a random unprivileged port (P &amp;gt; 1023) and sends the PORT P command back to the client. The client then initiates the connection from port N+1 to port P on the server to transfer data. &lt;/P&gt;&lt;P&gt;From the server-side firewall's standpoint, to support passive mode FTP the following communication channels need to be opened: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?	FTP server's port 21 from anywhere (Client initiates connection)&lt;/P&gt;&lt;P&gt;?	FTP server's port 21 to ports &amp;gt; 1023 (Server responds to client's control port)&lt;/P&gt;&lt;P&gt;?	FTP server's ports &amp;gt; 1023 from anywhere (Client initiates data connection to random port specified by server)&lt;/P&gt;&lt;P&gt;?	FTP server's ports &amp;gt; 1023 to remote ports &amp;gt; 1023 (Server sends ACKs (and data) to client's data port)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I realize that I can probably easily fix this problem by applying the following entries to our Firewall:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Permit tcp any host (External IP) eq ftp&lt;/P&gt;&lt;P&gt;Permit tcp any host (External IP) gt 1023&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is this opens up thousands of ports to everyone.  Is there way to avoid having to do this with the IOS Firewall?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 13:45:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637799#M1023392</guid>
      <dc:creator>chadlenox</dc:creator>
      <dc:date>2007-03-22T13:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637800#M1023393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;enable the inspection engine for ftp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:57:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637800#M1023393</guid>
      <dc:creator>suschoud</dc:creator>
      <dc:date>2007-03-22T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637801#M1023394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's what I currently have configured on my router:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip inspect name APP_FIREWALL ftp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip nat inside source static tcp (Internal IP) 21 interface FastEthernet0/0 21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip access-list extended FIREWALL&lt;/P&gt;&lt;P&gt;permit tcp any host (External IP) eq ftp&lt;/P&gt;&lt;P&gt;permit tcp any host (External IP) eq ftp-data&lt;/P&gt;&lt;P&gt;permit tcp any host (External IP) established&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using CoreFtp as the client, and I have tested this from home and it works if I set the client to use Active mode when it connects, but it does not work when I set the client to use Passive mode because the Firewall blocks the connection. The client is able to make the initial connection on port 21, however, when the client switches over to a random port, the firewall then blocks it.  &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 15:12:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637801#M1023394</guid>
      <dc:creator>chadlenox</dc:creator>
      <dc:date>2007-03-22T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637802#M1023395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for passive ftp,you would have to open up all the ports on the outside interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;permit tcp any host (External IP) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 15:45:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637802#M1023395</guid>
      <dc:creator>suschoud</dc:creator>
      <dc:date>2007-03-22T15:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: FTP server behind a Cisco 2811 with Firewall</title>
      <link>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637803#M1023396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Thank you for all your helps. my server is running now. Again, you guys are the best. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:43:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-server-behind-a-cisco-2811-with-firewall/m-p/637803#M1023396</guid>
      <dc:creator>phuong-le</dc:creator>
      <dc:date>2007-04-17T04:43:17Z</dc:date>
    </item>
  </channel>
</rss>

