12-16-2023 01:10 PM
Hi,
I need to add an ACL to an interface to only one router in my sdwan network.
It is connected to an Internet connection and I want to permit only to establish the tunnel.
Where can I create it? add it in a template?
I want to configure something like this:
ip access-list extended SITE-A-INTERNET-IN
permit esp x.x.x.x host x.x.x.x
permit udp x.x.x.x host x.x.x.x eq isakmp non500-isakmp
permit icmp x.x.x.x host x.x.x.x echo
12-17-2023 01:04 AM
Hi,
first of all you need to allow control traffic as well (router to controllers), secondly you don't need isakmp (udp500 or udp4500) - SD-WAN architecture is IKE-less.
You need one explicit access-list line to match and allow ping from respective device(s). Other traffic will be handled by implicit access-list which you see normally under tunnel-interface with "allow-service ..." command.
To create explicit ACL and attach to the device:
1) Go to vManage > Configuration > Policies > Localized Policy > Custom Options [ Access Control Lists ] > Add IPv4 ACL:
Leave default action as drop.
Add sequence: match with source/destination data prefix and select action "accept"
2) Go to back "Localized policy" section:
Create new device or template specific policy by clicking "Add policy". Do next two times, then in the Access List section click "Add Access Control List Policy" and import previously created ACL. Click next-next and give name/description to this new localized policy.
3) Go to device template section and under Additional Template section add Policy:
Push new config and wait.
4) And finally, you need to use this access-list from attached localized policy in the interface. For this, go to respective interface feature template and use access-list:
Plus, ensure that, none of protocol is allowed with allow-service command under this tunnel interface (explicitly select OFF, even if you have allow-service all <> OFF)
Push config and wait
Note: you don't need explicitly allow tunnel overlay traffic even if you have default action drop in explicit ACL.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide