标簽:
分類: 路由和交換技術
ASA Version 7.2(3)
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted
names
interface Vlan1
no nameif
no security-level
no ip address
interface Vlan2
nameif outside 對端口命名外端口
security-level 0 設定端口等級
ip address 218.26.8.99 255.255.255.224 調試外網位址
interface Vlan3
nameif inside 對端口命名内端口
security-level 100 調試外網位址
ip address 192.168.0.1 255.255.255.0 設定端口等級
interface Ethernet0/0
switchport access vlan 2 設定端口VLAN與VLAN2綁定
interface Ethernet0/1
switchport access vlan 3 設定端口VLAN與VLAN3綁定
interface Ethernet0/2
shutdown
interface Ethernet0/3
interface Ethernet0/4
interface Ethernet0/5
interface Ethernet0/6
interface Ethernet0/7
passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
dns domain-lookup outside
dns domain-lookup inside
dns server-group DefaultDNS
name-server 202.99.192.68
name-server 202.99.192.66
access-list 102 extended permit icmp any any 設定ACL清單(允許ICMP全部通過)
access-list 102 extended permit ip any any 設定ACL清單(允許所有IP全部通過)
pager lines 24
mtu outside 1500
mtu inside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface 設定NAT位址映射到外網口
nat (inside) 1 0.0.0.0 0.0.0.0 NAT位址池(所有位址)
access-group 102 in interface outside 設定ACL清單綁定到外端口
route outside 0.0.0.0 0.0.0.0 218.26.8.97 1 設定到外網的預設路由,218.26.8.97為ISP給的網關
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
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所有位址進入
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 outside 設定SSH所有位址進入
ssh timeout 30
ssh version 2
console timeout 0
dhcpd address 192.168.0.2-192.168.0.254 inside 設定DHCP伺服器位址池
dhcpd dns 202.99.192.68 202.99.192.66 interface inside 設定DNS伺服器到内網端口
dhcpd enable inside 設定DHCP應用到内網端口
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 netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
service-policy global_policy global
prompt hostname context
Cryptochecksum:2eee13a7a5b7517539234d1090c04521
: end