用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
yangcage的公告
<div class="News"> <b>&nbsp;&nbsp;&nbsp;<A HREF="http://blog.csdn.net/yangcage"><font color=red>首页</font></A></b>&nbsp;&nbsp;&nbsp;&nbsp; <script language="JavaScript" type="text/javascript" ></script>&nbsp;&nbsp;&nbsp;&nbsp; <b><A HREF="http://blog.csdn.net/yangcage/contact.aspx"><font color=red>联系我</font></A></b> <embed src="http://www.clocklink.com/Clocks/0001-green.swf?TimeZone=CCT" width="170" height="150" _style="position:absolute;z-index:2;top:85;left:133;" wmode="transparent" type="application/x-shockwave-flash"> </div> <a href="http://www2.clustrmaps.com/counter/maps.php? url=http://blog.csdn.net/yangcage" id="clustrMapsLink"><img src="http://www2.clustrmaps.com/counter/index2.php? url=http://blog.csdn.net/yangcage" style="border:1px solid;" alt="Locations of visitors to this page" title="Locations of visitors to this page" id="clustrMapsImg" onError="this.onError=null; this.src='http://clustrmaps.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://clustrmaps.com'" /> </a> <iframe frameborder='0' scrolling='no' style='width:180px; height:210px; border:black solid 1px;' src='http://api.51ditu.com/iframe/blogmap.html?lng=11407395&lat=2256343&zoom=6&txt=&msg=2006111412460110400'></iframe> <iframe frameborder='0' scrolling='no' style='width:180px; height:210px; border:black solid 1px;' src='http://weather.news.qq.com/inc/ss296.htm'></iframe>
文章分类
Cisco模拟器
7200emu.hacki
CCIE Blog - Helping you become a Cisco Certified Internetwork Expert(RSS)
Cisco 7200 Simulator
Cisco7200路由器模拟(伟大的Chris的Blog!)
Dynagen - The Dynamips Configuration Generator
最大的模拟器社区
DB技术站点
ITPUB论坛
Oracle天地
F5技术站点
F5 DevCentral
OS技术集中营
ClustrMaps
Linux
旅游圣地
中国南方航空股份有限公司
中国机票
信天游
抗日受降坊--爱国主义教育
芷江国际和平文化节
芷江政府网站
网络技术BBS集中营
51CTO.COM
91Lab
China CISSP论坛
Cisco
Cisco网络技术网站
Cisco语音技术讨论区
Cnfan.net网络技术
CTI论坛
E-train网络精英联盟
IT专家网
MRTG
MRTG Support
中国广西Cisco[思科]网络技术论坛
中国思科华为3Com网络技术
中国通信网
工大瑞普Cisco网络技术论坛
思科中文技术社区
无线网络论坛
网界网
网络安全-- NetYourLife 思科网络技术
软件路由论坛
职业规划性格测试
MBTI
存档

原创  关於FTP端口更改后ASA访问列表设置问题 收藏

 在Internet 内有一台FTP SERVER,默认FTP端口是21,但为了安全考虑把FTP SERVER的ftp端口改为2000,我在ASA上这样设置访问列表:

access-list inside extended permit tcp host 192.168.0.2  host 10.224.20.14 eq 2000

这样不能访问,但我把FTP SERVER的端口改为默认的端口,我设置如下就能访问,请问怎么解决ftp端口更改后的问题?谢谢!

access-list inside extended permit tcp host 192.168.0.2  host 10.224.20.14 eq ftp
 
 

This is the right configuration:

ASA(config)#class-map ftp_traffic
ASA(config-cmap)#match port tcp eq 2000
ASA(config)#policy-map ftp_traffic_policy
ASA(config-pmap)#class ftp_traffic
ASA(config-pmap-c)#inspect ftp
ASA(config)#service-policy ftp_traffic_policy interface inside
ASA(config)#access-list inside extended permit tcp host 192.168.0.2  host 10.224.20.14 eq 2000


 

Remark:

This document from www.cisco.com

PIX/ASA 7.X: Disable Default Global Inspection and Enable Non-Default Application Inspection

Introduction

This document describes how to remove the default inspection from global policy for an application and how to enable the inspection for a non-default application.

Prerequisites

Requirements

There are no specific requirements for this document.

Components Used

The information in this document is based on the PIX Security Appliance that runs the 7.x software image.

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.

Related Products

This configuration can also be used with the Adaptive Security Appliance (ASA) that runs the 7.x software image.

Conventions

Refer to Cisco Technical Tips Conventions for more information on document conventions.

Default Global Policy

By default, the configuration includes a policy that matches all default application inspection traffic and applies certain inspections to the traffic on all interfaces (a global policy). Not all inspections are enabled by default. You can apply only one global policy. If you want to alter the global policy, you must either edit the default policy or disable it and apply a new one. (An interface policy overrides the global policy.)

The default policy configuration includes these commands:

class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
service-policy global_policy global

In order to disable global inspection for an application, use the no version of the inspect command.

For example, in order to remove the global inspection for the FTP application to which the security appliance listens, use the no inspect ftp command in class configuration mode.

Class configuration mode is accessible from the policy map configuration mode. In order to remove the configuration, use the no form of the command.

pixfirewall(config)#policy-map global_policy
pixfirewall(config-pmap)#class inspection_default
pixfirewall(config-pmap-c)#no inspect ftp

Note: For more information on FTP inspection, refer to PIX/ASA 7.x: Enable FTP/TFTP Services Configuration Example.

Enable Inspection for Non-Default Application

Enhanced HTTP inspection is disabled by default.

In order to enable HTTP application inspection or in order to change the ports to which the security appliance listens, use the inspect http command in class configuration mode.

Class configuration mode is accessible from policy map configuration mode. In order to remove the configuration, use the no form of this command.

When used in conjunction with the http-map argument, the inspect http command protects against specific attacks and other threats that might be associated with HTTP traffic.

For more information on how to use the http-map argument with the inspect http command, refer to the inspect http section of inspect ctiqbe through inspect xdmcp Commands.

In this example, any HTTP connection (TCP traffic on port 80) that enters the security appliance through any interface is classified for HTTP inspection. Because the policy is a global policy, inspection occurs only as the traffic enters each interface.

hostname(config)#class-map http_traffic
hostname(config-cmap)#match port tcp eq 80
hostname(config)#policy-map http_traffic_policy
hostname(config-pmap)#class http_traffic
hostname(config-pmap-c)#inspect http
hostname(config)#service-policy http_traffic_policy global

In this example, any HTTP connection (TCP traffic on port 80) that enters or exits the security appliance through the outside interface is classified for HTTP inspection.

hostname(config)#class-map http_traffic
hostname(config-cmap)#match port tcp eq 80
hostname(config)#policy-map http_traffic_policy
hostname(config-pmap)#class http_traffic
hostname(config-pmap-c)#inspect http
hostname(config)#service-policy http_traffic_policy interface outside

This example shows how to identify HTTP traffic, define an HTTP map, define a policy, and apply the policy to the outside interface:

hostname(config)#class-map http-port
hostname(config-cmap)#match port tcp eq 80
hostname(config-cmap)#exit
hostname(config)#http-map inbound_http
hostname(config-http-map)#content-length min 100 max 2000 action reset log
hostname(config-http-map)#content-type-verification match-req-rsp reset log
hostname(config-http-map)#max-header-length request bytes 100 action log reset
hostname(config-http-map)#max-uri-length 100 action reset log
hostname(config-http-map)#exit
hostname(config)#policy-map inbound_policy
hostname(config-pmap)#class http-port
hostname(config-pmap-c)#inspect http inbound_http
hostname(config-pmap-c)#exit
hostname(config-pmap)#exit
hostname(config)#service-policy inbound_policy interface outside

发表于 @ 2007年09月16日 22:56:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:IPsec VPN (对不同的数据流进行不同的加密和认证) | 新一篇:PIX防火墙的实际应用配置

  • 发表评论
  • 评论内容:
  •  
Copyright © yangcage
Powered by CSDN Blog