!
hostname wan
enable password NEsJv2JdqYPDI2T. encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Ethernet0/0
nameif outside
security-level 0
ip address 221.12.***.*** 255.255.255.252
!
interface Ethernet0/1
nameif inside
security-level 100
ip address 10.10.10.1 255.255.255.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
shutdown
no nameif
no security-level
no ip address
!
ftp mode passive
access-list icmp extended permit icmp any any
access-list acl extended permit ip any any
access-list tcp extended permit tcp any any
pager lines 24
mtu outside 1500
mtu inside 1500
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
access-group acl in interface outside
access-group acl in interface intside
route outside 0.0.0.0 0.0.0.0 221.12.***.*** 1
route inside 10.0.0.0 255.0.0.0 10.10.10.4 1
route inside 10.**.244.0 255.255.255.0 10.10.10.4 1
route inside 10.**.245.0 255.255.255.0 10.10.10.4 1
route inside 10.**.246.0 255.255.255.0 10.10.10.4 1
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 sip-provisional-media 0:02:00 uauth 0:05:00 absolute
dynamic-access-policy-record DfltAccessPolicy
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
telnet 0.0.0.0 0.0.0.0 outside
telnet 0.0.0.0 0.0.0.0 inside
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 global_policy
class inspection_default
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect dns
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:38be4a49efbfa8f6d2a0174bcdf7840c
: end
配置如上:防火墙可以ping通外网网关 也能ping通10.10.10.4
我直接用电脑连接在0/1口 把ip设为10.10.10.4 无法ping通asa外网口和网关
asa的版本是8.0(4) 核心交换的版本是 version 12.2 不知道有没有关系
class-map inspection_default
match default-inspection-traffic
!
!
policy-map global_policy
class inspection_default
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect dns
!
service-policy global_policy global
这几条是我自己根据以前配置的asa防火墙信息添加的