cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
516
Views
3
Helpful
6
Replies

Close network ports on Cisco ISR

rarellano
Level 1
Level 1

Hi, 

I have a Cisco ISR 4451 with several internet facing VRF interfaces with crypto maps mounted and need to close all network ports other than IPsec without affecting the tunnels. An ACL directly in the interface will do the job?

Thank you in advance.

1 Accepted Solution

Accepted Solutions

No not effect it.

The traffic is encapsulate inside tunnel ipsec head.

The acl effect outer head only' and inside traffic will not effect.

Thanks A Lot
MHM

View solution in original post

6 Replies 6

Yes, Sure 
Block ports except the IPsec in ACL applied to interface

Thanks A Lot
MHM

ISAKMP - UDP 500

ESP - Protocol 50 <<- some times Cisco allow you to direct set ESP instead of it ports

ISAKMP NAT-Traversal - UDP 4500 (NAT-T)

IPSEC Over UDP - UDP 10000 (Default)

IPSEC Over TCP - TCP 10000 (Default)

@rarellano An ACL inbound on the outside interface would suffice, you would need to permit udp/500 and ESP, if traffic is NAT translated in the path between the peers then also permit udp/4500.

rarellano
Level 1
Level 1

Thank you, 

Just to confirm, if I apply+ an ACL directly on the interface, it won't affect the allowed traffic through the tunnels, i.e.

crypto map MAP 5 ipsec-isakmp
description
set peer xxx.xxx.xxx.xxx
set transform-set AES256-SHA
set pfs group5
set isakmp-profile adient-peer
match address 110

interface GigabitEthernet0/0/3.109
encapsulation dot1Q 109
ip vrf forwarding VRF NAME
ip address 201.174.XX.XX 255.255.255.248
ip flow monitor NFAmonitor input
crypto map MAP
access-group 199 in

access-list 199 permit udp host 201.174.XX.XX any eq 500
access-list 199 deny ip 201.174.XX.XX any

No not effect it.

The traffic is encapsulate inside tunnel ipsec head.

The acl effect outer head only' and inside traffic will not effect.

Thanks A Lot
MHM

@rarellano you need more than just udp/500 in your ACL 199, you will also need ESP and udp/4500 if nat. The allowed traffic will be encapsulated in the encrypted tunnel, either using ESP or udp/4500.

Review Cisco Networking for a $25 gift card