设为首页 收藏本站
查看: 461|回复: 0

[经验分享] cisco asa5505 transparent v8.4&v7.2-Let us show!

[复制链接]

尚未签到

发表于 2018-7-13 09:39:56 | 显示全部楼层 |阅读模式
  CISCO ASA5505做transparent模式稍微特殊一点:ASA5505的接口不能配置成路由口,只能用SVI接口,没有加license时,只能允许配置2个vlan。
  下面是cisco官网上防火墙配置成透明模式的要求:
  1.版本要求:

  • PIX Security Appliance with 7.x and later
  • ASA with version 7.x and later
  2.Follow these guidelines when you plan your transparent firewall network:

  • A management IP address is required; for multiple context mode, an IP address is required for each context.
  Unlike routed mode, which requires an IP address for each interface, a transparent firewall has an IPaddress assigned to the entire device. The security appliance uses this IP address as the source addressfor packets that originate on the security appliance, such as system messages or AAA communications
  The management IP address must be on the same subnet as the connected network. You cannot set the subnet to a host subnet (255.255.255.255).

  • The transparent security appliance uses an inside interface and an outside interface only. If your platform includes a dedicated management interface, you can also configure the management interface or subinterface for management traffic only.
  In single mode, you can only use two data interfaces (and the dedicated management interface, if available) even if your security appliance includes more than two interfaces.

  • Each directly connected network must be on the same subnet.
  • Do not specify the security appliance management IP address as the default gateway for connected devices; devices need to specify the router on the other side of the security appliance as the default gateway.
  • For multiple context mode, each context must use different interfaces; you cannot share an interface across contexts.
  • For multiple context mode, each context typically uses a different subnet. You can use subnets that overlap, but your network topology requires router and NAT configuration to make it possible from a routing standpoint.
  • You must use an extended access list to allow Layer 3 traffic, such as IP traffic, through the security appliance.
  You can also optionally use an EtherType access list to allow non−IP traffic through.
  ASA5505透明模式下完全配置    Version 7.2(3)      (7.2版本配置来源于网络)
  ciscoasa# show run
  : Saved
  :
  ASA Version 7.2(3)
  !
  firewall transparent
  hostname ciscoasa
  domain-name default.domain.invalid
  enable password 8Ry2YjIyt7RRXU24 encrypted
  names
  !
  interface Vlan1
  nameif inside
  security-level 100
  !
  interface Vlan2
  nameif outside
  security-level 0
  !
  interface Ethernet0/0
  !
  interface Ethernet0/1
  !
  interface Ethernet0/2
  !
  interface Ethernet0/3
  !
  interface Ethernet0/4
  switchport access vlan 2
  !
  interface Ethernet0/5
  switchport access vlan 2
  !
  interface Ethernet0/6
  !
  interface Ethernet0/7
  !
  passwd 2KFQnbNIdI.2KYOU encrypted
  ftp mode passive
  dns server-group DefaultDNS
  domain-name default.domain.invalid
  access-list 111 extended permit tcp any any eq ftp-data
  access-list 111 extended permit tcp any any eq ssh
  access-list 111 extended permit tcp any any eq www
  access-list 111 extended permit tcp any any eq 8080
  access-list 111 extended permit tcp any any eq 6600
  access-list 111 extended permit tcp any any eq 7877
  access-list 111 extended permit tcp any any range 2020 2121
  access-list 111 extended permit tcp any any range 6800 6900
  access-list 111 extended permit tcp any any range 5200 5400
  access-list 111 extended permit icmp any any
  pager lines 24
  mtu inside 1500
  mtu outside 1500
  ip address 192.168.100.100 255.255.255.0
  icmp unreachable rate-limit 1 burst-size 1
  asdm image disk0:/asdm-523.bin
  no asdm history enable
  arp timeout 14400
  access-group 111 in interface outside
  timeout xlate 3:00:00
  timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
  timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
  timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
  timeout uauth 0:05:00 absolute
  http server enable
  http 0.0.0.0 0.0.0.0 inside
  no snmp-server location
  no snmp-server contact
  snmp-server enable traps snmp authentication linkup linkdown coldstart
  telnet 0.0.0.0 0.0.0.0 inside
  telnet timeout 5
  ssh timeout 5
  console timeout 0
  !
  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
  prompt hostname context
  Cryptochecksum:871ee08b54631ff021ad0c4a1a3db59d
  : end
  ciscoasa#
  *************7.2版本,5505配置管理IP的命令式#ip address  ip**************
  ASA5505透明模式下完全配置    Version 8.4(3) (8.4版本是近期工作中的配置)
  ciscoasa# show run
  : Saved
  :
  ASA Version 8.4(3)
  !
  firewall transparent
  hostname ciscoasa
  enable password 2KFQnbNIdI.2KYOU encrypted
  passwd 2KFQnbNIdI.2KYOU encrypted
  names
  !
  interface Ethernet0/0
  description outside
  switchport access vlan 2
  !
  interface Ethernet0/1
  description inside
  !
  interface Ethernet0/2
  shutdown
  !
  interface Ethernet0/3
  shutdown
  !
  interface Ethernet0/4
  shutdown
  !
  interface Ethernet0/5
  shutdown
  !
  interface Ethernet0/6
  shutdown
  !
  interface Ethernet0/7
  shutdown
  !
  interface Vlan1
  nameif inside
  bridge-group 1
  security-level 100
  !
  interface Vlan2
  nameif outside
  bridge-group 1
  security-level 0
  !
  interface BVI1
  ip address 172.16.5.140 255.255.255.0
  !
  ftp mode passive
  access-list 100 extended permit ip 172.16.0.0 255.255.255.0 any
  access-list 100 extended permit tcp 172.16.0.0 255.255.255.0 any
  access-list 100 extended permit udp 172.16.0.0 255.255.255.0 any
  pager lines 24
  mtu inside 1500
  mtu outside 1500
  icmp unreachable rate-limit 1 burst-size 1
  no asdm history enable
  arp timeout 14400
  access-group 100 in interface outside
  timeout xlate 3:00:00
  timeout pat-xlate 0:00:30
  timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
  timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
  timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
  timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
  timeout tcp-proxy-reassembly 0:01:00
  timeout floating-conn 0:00:00
  dynamic-access-policy-record DfltAccessPolicy
  no snmp-server location
  no snmp-server contact
  snmp-server enable traps snmp authentication linkup linkdown coldstart warmstart
  telnet timeout 5
  ssh timeout 5
  console timeout 0
  threat-detection basic-threat
  threat-detection statistics access-list
  no threat-detection statistics tcp-intercept
  !
  class-map inspection_default
  match default-inspection-traffic
  !
  !
  policy-map type inspect dns preset_dns_map
  parameters
  message-length maximum client auto
  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
  inspect ip-options
  !
  service-policy global_policy global
  prompt hostname context
  Cryptochecksum:25ff7651711142ae22159248f08f3d97
  : end
  ciscoasa#  wr
  Building configuration...
  Cryptochecksum: 25ff7651 711142ae 22159248 f08f3d97
  2488 bytes copied in 1.20 secs (2488 bytes/sec)
  [OK]
  *************8.4版本,5505配置管理IP的命令式没有#ip address  ip这条命令,需要引入桥接IP,然后将vlan加到这个BVI组里面************

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-536677-1-1.html 上篇帖子: Cisco Easy ***综合配置示例 下篇帖子: Cisco Nexus NTP configuration-superman
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表