用于 NAT 的 Cisco ASA 8.2 ACL

用于 NAT 的 Cisco ASA 8.2 ACL

遗憾的是,我回到了 ASA 8.2(5)33,对此我并不十分熟悉。我在两个接口之间配置了 NAT,但流量无法通过,因为我无法让 ACL 工作;

(完整配置不是很大,这里但为了保持这篇文章整洁,我只是将重要部分粘贴在下面);

interface Ethernet0/0
 switchport access vlan 108
!
interface Ethernet0/6
 switchport access vlan 104
!             
interface Ethernet0/7
 switchport access vlan 105
!             
interface Vlan104
 description BUILDING2
 nameif BUILDING2
 security-level 0
 ip address 10.104.0.1 255.255.255.0 
!             
interface Vlan105
 description BUILDING1
 nameif BUILDING1
 security-level 0
 ip address 10.105.0.1 255.255.255.0 
!             
interface Vlan108
 description Main LAN VLAN
 nameif lan   
 security-level 0
 ip address 172.22.0.215 255.255.255.0 
!
object-group network obj_net_Remote_Hosts
 network-object host 111.111.111.3
 network-object host 111.111.111.65
object-group network obj_host_pc1_eth1
 network-object host 10.104.0.111
object-group network obj_host_pc2_eth1
 network-object host 10.104.0.112
object-group network obj_host_pc3_eth1
 network-object host 10.104.0.106
object-group network obj_host_pc4_eth1
 network-object host 10.104.0.107
object-group network obj_net_PCs
 description IPs of PCs
 group-object obj_host_pc1_eth1
 group-object obj_host_pc2_eth1
 group-object obj_host_pc3_eth1
 group-object obj_host_pc4_eth1
access-list acl_NAT_pc1_91 extended permit tcp host 10.104.0.111 host 111.111.111.3 eq 8101 
access-list acl_Permit_PCs extended permit tcp object-group obj_net_PCs object-group obj_net_Remote_Hosts eq 8101 
!
global (BUILDING1) 11 111.111.222.91 netmask 255.255.255.255
nat (BUILDING2) 11 access-list acl_NAT_pc1_91
access-group acl_Permit_PCs in interface BUILDING2
route BUILDING1 111.111.111.3 255.255.255.255 10.105.0.2 1
route BUILDING1 111.111.111.65 255.255.255.255 10.105.0.2 1

当我尝试从 PC1 连接到 ip 111.111.111.3 时,我看到 ASA 控制台上记录以下错误;

%ASA-2-106001: Inbound TCP connection denied from 10.104.0.111/38495 to 111.111.111.3/8101 flags SYN  on interface blades

什么鬼!

答案1

您需要启用相同安全流量

same-security-traffic enable inter-interface

或者更改其中一个接口的安全级别

相关内容