Nat

用於 NAT 的 Cisco ASA 8.2 ACL

  • November 27, 2012

遺憾的是,我及時回到了我不太熟悉的 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

什麼結果!

您需要啟用same-security-traffic

same-security-traffic enable inter-interface

或更改介面安全級別之一

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