配置ISA防火墙作为网络间的路由器.doc_第1页
配置ISA防火墙作为网络间的路由器.doc_第2页
配置ISA防火墙作为网络间的路由器.doc_第3页
配置ISA防火墙作为网络间的路由器.doc_第4页
配置ISA防火墙作为网络间的路由器.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

How To :配置ISA防火墙作为网络间的路由器 内容概要:基于强大的多网络核心,ISA防火墙除了可以作为网络间的边缘防火墙外,还可以作为网络间的路由器使用。ISA防火墙强大的应用层过滤和状态识别功能,使得ISA防火墙的功能比真实的路由器有过之而无不及。在这篇文章中,你可以学习到如何配置ISA防火墙作为网络间的路由器。 基于强大的多网络核心,ISA防火墙除了可以作为网络间的边缘防火墙外,还可以作为网络间的路由器使用。ISA防火墙强大的应用层过滤和状态识别功能,使得ISA防火墙的功能比真实的路由器有过之而无不及。例如,你可以允许某个Windows下的用户访问某个网络的某种协议,而真实的路由器则只能根据用户的IP地址和数据包的端口来限制;同时,基于ISA防火墙强大的状态识别,你可以阻止包含在HTTPS协议中的非正常数据,而路由器是根本没有办法做到这一点的。 有不少朋友在问如何将ISA防火墙配置为内部网络中的二级代理,其实二级代理只是ISA防火墙作为内部路由器的一种情况而已。在纯路由环境下,内部路由器就是一个二级代理,类似于背靠背防火墙模型中的背端防火墙;同时,利用ISA防火墙的Web代理服务和Web链设置,你也可以很方便的设置ISA防火墙只是作为HTTP代理。 在这篇文章中,我们以一个包含多个子网的内部网络环境为例,给大家介绍如何将ISA防火墙配置为内部路由器。这些内容都应该是作为ISA学习的进阶内容,在一些简单的环节,或许我会略过。 各计算机的TCP/IP设置如下,因为不涉及DNS解析,所有计算机的DNS服务器均设置为空: Server1: IP:/24 DG: ISA 2004 Firewall: LAN1接口: IP:54/24 DG: LAN2接口: IP:/24 DG:None Client1: IP:/24 DG: 其实配置ISA防火墙作为内部路由器不需要什么额外的配置。在安装过程中选择好内部网络,然后建立访问规则就是了。只是在默认情况下,内部网络访问外部网络是通过NAT来的,在有些时候,可能你需要使用路由关系。在使用路由关系时,记得先确定在不同的子网间是否有到对应网络的路由。 在这篇文章中,我们将按照步骤来进行: 配置内部网络和内部到外部的网络规则(NAT); 建立访问规则; 测试LAN2到LAN1的连通性一; 配置内部到外部使用路由方式; 测试LAN2到LAN1的连通性二; 在LAN1的Server1上添加LAN2的路由; 测试LAN2到LAN1的连通性三;1、配置内部网络和内部到外部的网络规则(NAT) 我是新安装的ISA防火墙,在安装过程中选择内部网络时,我通过选择网卡来进行选择。如果你已经安装好了ISA防火墙,那么你直接在内部网络属性中进行修改即可。 安装好后,在ISA防火墙管理控制台的配置的网络节点,你可以在右边网络面板中看到内部网络的地址范围。 默认情况下,内部到外部网络使用NAT方式,在网络规则中很清楚的说明了这一点。 2、建立访问规则 现在网络基础元素已经定义好了,我们需要建立访问规则,允许内部(LAN2)到外部(LAN1和其他网络)的访问。 右击防火墙策略,指向新建,选择访问规则,规则中需要定义的元素如下: 规则名称:Allow Any to Any; 规则操作:允许; 协议:所有出站通信; 访问规则源:所有网络(和本地主机); 访问规则目的:所有网络(和本地主机); 用户集:所有用户; 点击应用保存修改和更新防火墙策略; 建立好后的规则如下图: 在这个试验中,我们只是为了更好的说明试验,所以才定义此Allow Any to Any use Any protocols的“3 Any”规则。在你的商用网络中,请严格限定访问规则中使用的每一元素。3、测试LAN2到LAN1的连通性 我们在位于LAN2的Client1上进行测试,Ping位于LAN1的Server1,并访问运行在其之上的FTP服务。 /* 在Client1上进行测试*/ C:Documents and Settingsxxipconfig Windows IP Configuration Ethernet adapter Loopback: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . : /* Ping自己的网关(ISA防火墙的LAN2接口)*/ C:Documents and Settingsxxping -n 2 Pinging with 32 bytes of data: Reply from : bytes=32 time=6ms TTL=128 Reply from : bytes=32 timeping 54 -n 2 Pinging 54 with 32 bytes of data: Reply from 54: bytes=32 time=1ms TTL=128 Reply from 54: bytes=32 timeping -n 2 Pinging with 32 bytes of data: Reply from : bytes=32 time=2ms TTL=127 Reply from : bytes=32 timeftp Connected to . 220 External ftp server ready. User (:(none): anonymous 331 User name okay, please send complete E-mail address as password. Password: 230 User logged in, proceed. ftp dir 200 PORT Command successful. 150 Opening ASCII mode data connection for /bin/ls. drw-rw-rw- 1 user group 0 Jul 29 17:58 . drw-rw-rw- 1 user group 0 Jul 29 17:58 . drw-rw-rw- 1 user group 0 Jul 29 17:58 AdminScripts drw-rw-rw- 1 user group 0 Jul 29 17:58 ftproot drw-rw-rw- 1 user group 0 Jul 29 17:58 wwwroot 226 Transfer complete. ftp: 收到 314 字节,用时 0.00Seconds 314000.00Kbytes/sec. ftp 此时,我们在Server1上的ftp管理控制台中看看, 注意看客户的IP地址,这是ISA防火墙的LAN1接口的IP。Why?不需要我回答吧。 Okay,这个测试就成功结束了。4、配置内部到外部使用路由方式 现在我们来修改网络规则,配置内部到外部使用路由方式试试。 点开配置下的网络,在右边的网络规则中双击Internet访问,然后在弹出的属性对话框中,点击网络关系标签,修改为路由。修改后如下图所示: 然后点击应用保存修改和更新防火墙策略。 5、测试LAN2到LAN1的连通性二 /* 在Client1上进行测试*/ C:Documents and Settingsxxipconfig Windows IP Configuration Ethernet adapter Loopback: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . : /* Ping自己的网关(ISA防火墙的LAN2接口)*/ C:Documents and Settingsxxping -n 2 Pinging with 32 bytes of data: Reply from : bytes=32 time=6ms TTL=128 Reply from : bytes=32 timeping 54 -n 2 Pinging 54 with 32 bytes of data: Reply from 54: bytes=32 time=1ms TTL=128 Reply from 54: bytes=32 timeping -n 2 Pinging with 32 bytes of data: Request timed out. Request timed out. Ping statistics for : Packets: Sent = 2, Received = 0, Lost = 2 (100% loss), Ping不通了?Why?相信你应该可以从上面的TCP/IP配置说明中分析出这一点。 我们再在LAN1中的Server1上进行测试: /* 在Server1上进行测试*/ C:Documents and SettingsAdministratoripconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : Sydney Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel 21140-Based PCI Fast Ethernet Adapter (Generic) Physical Address. . . . . . . . . : 00-03-FF-FF-36-DB DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . : /* Ping ISA防火墙的LAN1接口*/ C:Documents and SettingsAdministratorping 54 Pinging 54 with 32 bytes of data: Reply from 54: bytes=32 time1ms TTL=128 Reply from 54: bytes=32 timeping Pinging with 32 bytes of data: Request timed out. Request timed out. Ping statistics for : Packets: Sent = 2, Received = 0, Lost = 2 (100% loss), Control-C C /* Ping 位于LAN2的Client1*/ C:Documents and SettingsAdministratorping Pinging with 32 bytes of data: Request timed out. Ping statistics for : Packets: Sent = 1, Received = 0, Lost = 1 (100% loss), Control-C C 位于LAN2的接口都Ping不通,Why?很简单,在Server1上没有到LAN2的路由。我们看看Server1的路由表: C:Documents and SettingsAdministratorroute print IPv4 Route Table = Interface List 0x1 . MS TCP Loopback interface 0x10003 .00 03 ff ff 36 db . Intel 21140-Based PCI Fast Ethernet Adapter (Generic) = = Active Routes: Network Destination Netmask Gateway Interface Metric 20 1 20 55 20 55 55 20 20 55 55 1 Default Gateway: = Persistent Routes: 默认路由是,没有到LAN2的路由。对于此情况,你需要添加到LAN2的路由,或者重新设置默认网关为ISA防火墙的LAN1接口。在具体采用哪种方式时,你需要根据网络的环境来决定。对于不能修改默认网关的情况,例如此主机是另外的网络出口的情况(如此计算机上还接有另外一个网卡,连接到Internet),你需要添加到LAN2的路由。 6、在LAN1的Server1上添加LAN2的路由 在Server1的cmd下运行route add mask 54,然后看看路由表: C:Documents and SettingsAdministratorroute add mask 54 -p C:Documents and SettingsAdministratorroute print IPv4 Route Table = Interface List 0x1 . MS TCP Loopback interface 0x10003 .00 03 ff ff 36 db . Intel 21140-Based PCI Fast Ethernet Adapter (Generic) = = Active Routes: Network Destination Netmask Gateway Interface Metric 20 1 20 55 20 55 55 20 54 1 20 55 55 1 Default Gateway: = Persistent Routes: Network Address Netmask Gateway Address Metric 54 1 7、测试LAN2到LAN1的连通性三 现在我们再来测试一下LAN1和LAN2间的连通性: /* 在Server1上进行测试*/ /* Ping ISA防火墙的LAN2接口*/ C:Documents and SettingsAdministratorping -n 8 Pinging with 32 bytes of data: Reply from : bytes=32 time=1ms TTL=128 Reply from : bytes=32 timeping -n 2 Pinging with 32 bytes of data: Reply from : bytes=32 time=1ms TTL=127 Reply from : bytes=32 time=1ms TTL=127 Ping statistics for : Packets: Sent = 2, Received = 2, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 1ms, Average = 1ms 然后,我们在Client1上进行一下测试: /* 在Client1上进行测试*/ C:Documents and Settingsxxipconfig Windows IP Configuration Ethernet adapter Loopback: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : Subnet Mask

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论