cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1422
Views
0
Helpful
8
Replies

Implicit rule blocking my outside network. Please help :(

Hello,

I'm new to ASAs but am nearly copying another config exactly as I'm learning it. What's going on is that my outside interface can send packets to 8.8.8.8 properly, but my inside network drops from the implicit rule. I've been desperately making changes, so I'm sure a lot of the config does not make a whole lot of sense.

My goal> Static IP for outside network

Inside network of 10.12.1.1 reaching the outside network.

Here is my running config:

Note: (( )) numbers are just static numbers from my ISP. I've deleted irrelevant information to save space. I do not have any VPN tunnel set up yet.

Result of the command: "show running-config"

ASA Version 9.6(1)
!
hostname default
enable password 8Ry2YjIyt7RRXU24 encrypted
names

!
interface GigabitEthernet1/1
 description Outside
 nameif outside
 security-level 0
 ip address ((static remote)) 255.255.255.252
!
interface GigabitEthernet1/2
 description LAN
 nameif inside
 security-level 100
 ip address 10.12.1.1 255.255.255.0
!
ftp mode passive
dns domain-lookup inside
dns server-group DefaultDNS
 name-server 8.8.8.8
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object network obj_any
 subnet 10.12.1.0 255.255.255.0
object network Gateway
 host ((static gateway))
 description Gateway
object network All
 subnet 0.0.0.0 0.0.0.0
object network ((static IP))
 host ((static IP))
 description ((static IP))
object network LanNet
 host 10.12.1.0
 description LAN
object network remotenets
 subnet 10.0.0.0 255.255.255.0
object network LAN
 subnet 10.12.1.0 255.255.255.0
object network obj-any
 subnet 0.0.0.0 0.0.0.0
access-list inside_access_in extended permit ip object LAN any
access-list inside_access_in extended permit ip object LAN object remotenets
access-list outside_access_in extended permit ip any any
pager lines 24
logging enable
logging timestamp
logging asdm informational
logging device-id hostname
mtu outside 1500
mtu inside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source static LAN LAN destination static remotenets remotenets
nat (inside,outside) source static any any
!
object network obj-any
 nat (any,outside) dynamic interface
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 24.111.144.41 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 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
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
user-identity default-domain LOCAL
http server enable
http 10.12.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
service sw-reset-button
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
crypto ikev1 enable outside
crypto ikev1 policy 20
 authentication rsa-sig
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 30
 authentication pre-share
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 50
 authentication rsa-sig
 encryption aes-192
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 60
 authentication pre-share
 encryption aes-192
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 80
 authentication rsa-sig
 encryption aes
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 90
 authentication pre-share
 encryption aes
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 110
 authentication rsa-sig
 encryption 3des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 120
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 140
 authentication rsa-sig
 encryption des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 150
 authentication pre-share
 encryption des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 65535
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
telnet timeout 5
ssh stricthostkeycheck
ssh timeout 5
ssh key-exchange group dh-group1-sha1
console timeout 0

dhcpd dns 8.8.8.8 8.8.4.4
!
dhcpd address 10.12.1.48-10.12.1.148 inside
dhcpd dns 8.8.8.8 24.220.0.10 interface inside
dhcpd enable inside
!
dynamic-access-policy-record DfltAccessPolicy
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
 parameters
  message-length maximum client auto
  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
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:4f0b6f49eec3340b9822c1bfb747a7ff
: end

8 Replies 8

Greg Smalley
Level 1
Level 1

Looks like you have an issue with NAT rules. Remove the following rules:


no nat (inside,outside) source static any any
object network obj-any
 no nat (any,outside) dynamic interface

!Add following
object network LanNet
nat (inside,outside) dynamic interface

Thank you for the fast reply. I believe my ADSM wasn't updated fully so my settings may have changed a bit. I removed the static NAT I had set up and the obj-any interface. I believe I set up the LanNet modification correctly. I see the home screen on ADSM is receiving a lot of traffic, but I'm still having issues connecting to websites via Chrome. Sending a packet from outside to 8.8.8.8 succeeds but sending it from the inside interface is dropping at the implicit rule.

Result of the command: "show running-interface"


ftp mode passive
dns domain-lookup inside
dns server-group DefaultDNS
 name-server 8.8.8.8
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object network Gateway
 host ((static gateway))
 description Gateway
object network All
 subnet 0.0.0.0 0.0.0.0
object network ((static IP))
 host ((static IP))
 description ((static IP))
object network LanNet
 host 10.12.1.0
 description LAN
object network remotenets
 subnet 10.0.0.0 255.255.255.0
object network LAN
 subnet 10.12.1.0 255.255.255.0
object network obj-any
access-list inside_access_in extended permit ip object LAN any
access-list inside_access_in extended permit ip object LAN object remotenets
access-list outside_access_in extended permit ip any any
access-list outbound extended permit tcp host 10.12.0.0 host 8.8.8.8 eq www
pager lines 24
logging enable
logging timestamp
logging asdm informational
logging device-id hostname
mtu outside 1500
mtu inside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source static LAN LAN destination static remotenets remotenets
nat (inside,outside) source dynamic any LanNet
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 ((static gateway)) 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 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
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
user-identity default-domain LOCAL
http server enable
http 10.12.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
service sw-reset-button
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
crypto ikev1 enable outside
crypto ikev1 policy 20
 authentication rsa-sig
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 30
 authentication pre-share
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 50
 authentication rsa-sig
 encryption aes-192
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 60
 authentication pre-share
 encryption aes-192
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 80
 authentication rsa-sig
 encryption aes
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 90
 authentication pre-share
 encryption aes
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 110
 authentication rsa-sig
 encryption 3des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 120
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 140
 authentication rsa-sig
 encryption des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 150
 authentication pre-share
 encryption des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 65535
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
telnet timeout 5
ssh stricthostkeycheck
ssh timeout 5
ssh key-exchange group dh-group1-sha1
console timeout 0

dhcpd dns 8.8.8.8 8.8.4.4
!
dhcpd address 10.12.1.48-10.12.1.148 inside
dhcpd dns 8.8.8.8 24.220.0.10 interface inside
dhcpd enable inside
!
dynamic-access-policy-record DfltAccessPolicy
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
 parameters
  message-length maximum client auto
  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
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:7593018fcdb6097c06068c84e3c90f56
: end

Edit: I stopped using ADSM and typed in those commands exactly. I'm seeing a lot of activity at the home tab with ADSM. Saved config and reloaded.

I am not seeing a problem when I use your configuration in my lab, my packets are going through.

Can you run the following command on the ASA? edit: I should note, run this from the # prompt not config.

packet-tracer input inside tcp 10.12.1.8 23232 8.8.8.8 80

Phase 2, type access list, subtype result drop. Rule implicit rule. Result outside interface outside, output status up, output line status up, action drop

It works in my lab, the ACL that it hits is "access-list inside_access_in extended permit ip object LAN any" which is permitted:

Phase: 2
Type: ACCESS-LIST
Subtype: log
Result: ALLOW
Config:
access-group inside_access_in in interface inside
access-list inside_access_in extended permit ip object LAN any
Additional Information:

Is your default gateway correct?

Perhaps you can post the entire packet-tracker, but this time also add "detail" to the end of the command?

Greg Smalley
Level 1
Level 1

Sorry my formating got a little messed up on my earlier reply,  I still see the manual NAT rule in there I wanted you to remove and then I wanted to add a new Auto NAT rule, we also need to make a slight adjustment to your LanNet network object.  Try the following:

no nat (inside,outside) source dynamic any LanNet
object network LanNet 
no host 10.12.1.0
subnet 10.12.1.0 255.255.255.0
nat (inside,outside) dynamic interface

We want NAT installed under the LanNet object (This is called Auto-nat).

-Smalley

Hello,
I ran those exact commands and tried disabling anything that might be conflicting with it. Close, but no outside access yet. I really appreciate your help.

Here is my latest running-config

interface GigabitEthernet1/1
 description Outside
 nameif outside
 security-level 0
 ip address ((static gateway)) 255.255.255.252
!
interface GigabitEthernet1/2
 description LAN
 nameif inside
 security-level 100
 ip address 10.12.1.1 255.255.255.0
!
interface GigabitEthernet1/3
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet1/4
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet1/5
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet1/6
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet1/7
 shutdown
 no nameif
 no security-level
 no ip address
!
interface GigabitEthernet1/8
 shutdown
 no nameif
 no security-level
 no ip address
!
interface Management1/1
 management-only
 no nameif
 no security-level
 no ip address
!
ftp mode passive
dns domain-lookup inside
dns server-group DefaultDNS
 name-server 8.8.8.8
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object network Gateway
 host ((static gateway))
 description Gateway
object network All
 subnet 0.0.0.0 0.0.0.0
object network ((static ip))
 host ((static ip))
 description ((static ip))
object network LanNet
 subnet 10.12.1.0 255.255.255.0
 description LAN
object network remotenets
 subnet 10.0.0.0 255.255.255.0
object network LAN
 subnet 10.12.1.0 255.255.255.0
object network obj-any
access-list inside_access_in extended permit ip object LAN any
access-list inside_access_in extended permit ip object LAN object remotenets
access-list outside_access_in extended permit ip any any
access-list outbound extended permit tcp host 10.12.0.0 host 8.8.8.8 eq www
pager lines 24
logging enable
logging timestamp
logging asdm informational
logging device-id hostname
mtu outside 1500
mtu inside 1500
icmp unreachable rate-limit 1 burst-size 1
asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source static LAN LAN destination static remotenets remotenets
!
object network LanNet
 nat (inside,outside) dynamic interface
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 ((static gateway)) 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 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
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
user-identity default-domain LOCAL
http server enable
http 10.12.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
service sw-reset-button
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
crypto ikev1 enable outside
crypto ikev1 policy 20
 authentication rsa-sig
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 30
 authentication pre-share
 encryption aes-256
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 50
 authentication rsa-sig
 encryption aes-192
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 60
 authentication pre-share
 encryption aes-192
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 80
 authentication rsa-sig
 encryption aes
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 90
 authentication pre-share
 encryption aes
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 110
 authentication rsa-sig
 encryption 3des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 120
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 140
 authentication rsa-sig
 encryption des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 150
 authentication pre-share
 encryption des
 hash sha
 group 2
 lifetime 86400
crypto ikev1 policy 65535
 authentication pre-share
 encryption 3des
 hash sha
 group 2
 lifetime 86400
telnet timeout 5
ssh stricthostkeycheck
ssh timeout 5
ssh key-exchange group dh-group1-sha1
console timeout 0

dhcpd dns 8.8.8.8 8.8.4.4
!
dhcpd address 10.12.1.48-10.12.1.148 inside
dhcpd dns 8.8.8.8 ((static dns)) interface inside
dhcpd enable inside
!
dynamic-access-policy-record DfltAccessPolicy
!
class-map inspection_default
 match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
 parameters
  message-length maximum client auto
  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
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:75ee7fa3d99a2daa072413293cde34ed
: end

If you'd like me to reset back to factory-defaults or anything like that, let me know. I'm very curious as to why this isn't shooting out to outside.

Review Cisco Networking products for a $25 gift card