Firewall

Cisco ASA 5510 介面間路由

  • July 2, 2014

我正在嘗試設置 Cisco 5510 來路由外部和內部介面之間的流量,它們都屬於公共 IP 子網。我們的 ISP 為我們分配了一個我分配給外部的單點對點 IP (207.107.110.150/30) 和一個我分配給內部介面的 /29 (207.107.101.112/29) 207.107.101.113 .

通過身份 NAT 設置,從 /29 中的主機,我可以 ping ASA,並且可以 ping 路由中的下一跳 (207.107.110.149),但是發送到全球網際網路的流量不會返回到內部界面。

根據消息“ 6 Jul 01 2014 20:53:42 302015 8.8.4.4 207.107.101.115 Built outbound UDP connection 7052 for Outside:8.8.4.4/53 (8.8.4.4/53) to inside:207.107.101.115/57511 (207.107.101.115/57511)”,看起來流量正在到達 ASA,因此丟棄它們的是 ASA。

ASA 的“Packet Tracer”顯示這些應該退出內部介面。

稍微混淆的配置:

asdm image disk0:/asdm521.bin
no asdm history enable
: Saved
:
ASA Version 7.2(1) 
!
hostname *****
domain-name *****
enable password ***** encrypted
names
!
interface Ethernet0/0
nameif Outside
security-level 0
ip address 207.107.110.150 255.255.255.252 
!
interface Ethernet0/1
nameif inside
security-level 50
ip address 207.107.101.113 255.255.255.248 
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
ip address 172.24.19.1 255.255.255.0 
management-only
!
passwd ***** encrypted
ftp mode passive
dns server-group DefaultDNS
domain-name rsius.com
access-list Outside_access_in extended permit ip any 207.107.101.112 255.255.255.248 
pager lines 24
logging enable
logging asdm informational
mtu management 1500
mtu inside 1500
mtu Outside 1500
asdm image disk0:/asdm521.bin
no asdm history enable
arp timeout 14400
nat (inside) 0 207.107.101.112 255.255.255.248
access-group Outside_access_in in interface Outside
route Outside 0.0.0.0 0.0.0.0 207.107.110.149 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 uauth 0:05:00 absolute
http server enable
http 0.0.0.0 0.0.0.0 inside
http 172.24.19.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address 172.24.19.2-172.24.19.254 management
dhcpd enable management
!
!
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 
: end

需要進行哪些更改才能將流量從內部路由到外部並返回?

因為你沒有在你的內部界面上打招呼:

nat(內部)0 207.107.101.112 255.255.255.248

您的提供商需要知道子網 207.107.101.112/29 是通過 207.107.110.150 路由的。他們將依次為我們其他人廣播路由,以通過您的 ASA 的外部介面到達您的內部介面。

您是否與他們核對以確保相應地路由子網?

引用自:https://serverfault.com/questions/609564