欢迎来到天天文库
浏览记录
ID:1219165
大小:33.50 KB
页数:8页
时间:2017-11-08
《思科5505防火墙配置》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
asa5505常用配置2009-06-0116:13asa55051.配置防火墙名ciscoasa>enableciscoasa#configureterminalciscoasa(config)#hostnameasa55052.配置telnetasa5505(config)#telnet192.168.1.0255.255.255.0inside//允许内部接口192.168.1.0网段telnet防火墙3.配置密码asa5505(config)#passwordcisco//远程密码asa5505(config)#enablepasswordcisco//特权模式密码4.配置IPasa5505(config)#interfacevlan2//进入vlan2asa5505(config-if)#ipaddress218.xxx.37.222255.255.255.192//vlan2配置IPasa5505(config)#showipaddressvlan2//验证配置5.端口加入vlan asa5505(config)#interfacee0/3//进入接口e0/3asa5505(config-if)#switchportaccessvlan3//接口e0/3加入vlan3asa5505(config)#interfacevlan3//进入vlan3asa5505(config-if)#ipaddress10.10.10.36255.255.255.224//vlan3配置IPasa5505(config-if)#nameifdmz//vlan3名asa5505(config-if)#noshutdown//开启asa5505(config-if)#showswitchvlan//验证配置6.最大传输单元MTUasa5505(config)#mtuinside1500//inside最大传输单元1500字节asa5505(config)#mtuoutside1500//outside最大传输单元1500字节asa5505(config)#mtudmz1500//dmz最大传输单元1500字节7.配置arp表的超时时间 asa5505(config)#arptimeout14400//arp表的超时时间14400秒8.FTP模式asa5505(config)#ftpmodepassive//FTP被动模式9.配置域名asa5505(config)#domain-nameCisco.com10.启动日志asa5505(config)#loggingenable//启动日志asa5505(config)#loggingasdminformational//启动asdm报告日志asa5505(config)#Showlogging//验证配置11.启用http服务asa5505(config)#httpserverenable //启动HTTPserver,便于ASDM连接。asa5505(config)#http0.0.0.00.0.0.0outside //对外启用ASDM连接 asa5505(config)#http0.0.0.00.0.0.0inside //对内启用ASDM连接12.控制列表access-listacl_outextendedpermittcpanyanyeqwww//允许tcp协议80端口入站access-listacl_outextendedpermittcpanyanyeqhttps//允许tcp协议443端口入站access-listacl_outextendedpermittcpanyhost218.xxx.37.223eqftp//允许tcp协议21端口到218.xxx.37.223主机access-listacl_outextendedpermittcpanyhost218.xxx.37.224eq3389//允许tcp协议3389端口到218.xxx.37.224主机access-listacl_outextendedpermittcpanyhost218.xxx.37.225eq1433//允许tcp协议1433端口到218.xxx.37.225主机access-listacl_outextendedpermittcpanyhost218.xxx.37.226eq8080//允许tcp协议8080端口到218.xxx.37.226主机asa5505(config)#showaccess-list//验证配置13.设置路由asa5505(config)#routedmz10.0.0.0255.0.0.010.10.10.33 1//静态路由到10.0.0.0网段经过10.10.10.33网关跳数为1asa5505(config)#routeoutside0.0.0.00.0.0.0218.16.37.193 1 //默认路由到所有网段经过218.xxx.37.193网关跳数为1asa5505#showroute//显示路由信息14.静态NATasa5505(config)#static(inside,outside)218.xxx.37.223192.168.1.6netmask255.255.255.255//外网218.xxx.37.223映射到内网192.168.1.6asa5505(config)#access-listacl_outextendedpermiticmpanyany//控制列表名acl_out允许ICMP协议asa5505(config)#access-groupacl_outininterfaceoutside//控制列表acl_out应用到outside接口asa5505(config)#static(inside,dmz)10.10.10.37192.168.1.16 netmask255.255.255.255//dmz10.10.10.37映射到内网192.168.1.16asa5505(config)#access-listacl_dmzextendedpermiticmpanyany//控制列表名acl_dmz允许ICMP协议asa5505(config)#access-groupacl_dmzininterfacedmz//控制列表acl_out应用到dmz接口asa5505(config)#Shownat//验证配置15.动态NATasa5505(config)#global(outside) 1 218.201.35.224-218.201.35.226 //定义全局地址池asa5505(config)#nat(inside) 1 192.168.1.20-192.168.1.22//内部转换地址池asa5505(config)#showxlate//验证配置16.基于端口NAT(PAT)asa5505(config)#global(outside) 2 interface//定义全局地址即outside地址:218.xxx.37.222asa5505(config)#nat(inside) 2 192.168.1.0255.255.255.0//内部转换地址池asa5505(config)#showxlate//验证配置17.基于LAN故障倒换(failover)1).主防火墙配置asa5505(config)#failovermacaddroutside001a.2b3c.4d11001a.2b3c.4w12//故障倒换虚拟MAC地址asa5505(config)#failovermacaddrinside001a.2b3c.4d21001a.2b3c.4w22//故障倒换虚拟MAC地址asa5505(config)#failovermacaddrinside001a.2b3c.4d21001a.2b3c.4w32//故障倒换虚拟MAC地址asa5505(config)#failover//启动故障倒换 asa5505(config)#failoverlanunitprimary//设置主要防火墙asa5505(config)#failoverlaninterfacestandbyVlan4//故障倒换接口名standbyasa5505(config)#failoverinterfaceipstandby172.168.32.1255.255.255.252standby172.168.32.2//配置主防火墙IP:172.168.32.1,备用防火墙IP:172.168.32.2asa5505#showfailover//验证配置2).备防火墙配置asa5505(config)#failovermacaddroutside001a.2b3c.4d11001a.2b3c.4w12//故障倒换虚拟MAC地址asa5505(config)#failovermacaddrinside001a.2b3c.4d21001a.2b3c.4w22//故障倒换虚拟MAC地址asa5505(config)#failovermacaddrinside001a.2b3c.4d21001a.2b3c.4w32//故障倒换虚拟MAC地址asa5505(config)#failover//启动故障倒换asa5505(config)#failoverlanunitsecondary//设置备用防火墙asa5505(config)#failoverlaninterfacestandbyVlan4//故障倒换接口名standby asa5505(config)#failoverinterfaceipstandby172.168.32.1255.255.255.252standby172.168.32.2//配置主防火墙IP:172.168.32.1,备用防火墙IP:172.168.32.2asa5505#showfailover//验证配置18.显示mac地址asa5505#showswitchmac-address-table19.保存配置asa5505#writememory20.重复PING1000次ciscoasa(config)#ping202.96.133.133repeat1000access-list2extendedpermiticmpanyanyaccess-group2ininterfaceoutsideNND研究一天才搞明白这两条命令,,,,允许内网PC--PING--INTERNET
此文档下载收益归作者所有
举报原因
联系方式
详细说明
内容无法转码请点击此处