04-17-2018 07:16 AM - edited 02-21-2020 07:38 AM
Hello,
I am trying to use a timerange to setup a any any block on my inside interface. This appears to work pretty well as when the time starts it is not possible to start a new connection. However existing connections appear to not get dropped. For instance a secure connection to out netscalers at work (from my home) will stay functional. What am I missing? or what do I need to do to terminate these existing connections?
Thnks for your help!!
Solved! Go to Solution.
04-17-2018 10:48 PM
Hello,
Adding a deny access rule only blocks the new connections that will be initiated, it does not drop any existing connections. Thats the way ASA is designed, for existing connections, interface acl check is bypassed. Only when you clear the connections, this new time based acl will come into effect for all the connections.
clear conn will do the needful but that is a manual step, maybe you can try a EEM script to add the clear conn command then followed by the time based acl addition. We have to make sure that there not much time difference between clear conn and acl addition else the connection initiated between this time will survive the acl.
Similar discussion:
EEM script:
Please rate helpful posts.
HTH
AJ
04-17-2018 10:48 PM
Hello,
Adding a deny access rule only blocks the new connections that will be initiated, it does not drop any existing connections. Thats the way ASA is designed, for existing connections, interface acl check is bypassed. Only when you clear the connections, this new time based acl will come into effect for all the connections.
clear conn will do the needful but that is a manual step, maybe you can try a EEM script to add the clear conn command then followed by the time based acl addition. We have to make sure that there not much time difference between clear conn and acl addition else the connection initiated between this time will survive the acl.
Similar discussion:
EEM script:
Please rate helpful posts.
HTH
AJ
04-18-2018 01:57 AM
Thanks for the explanation!
I guess it saves a lot of processing to do it this way and that is better for for the performance en throughput. I will have a go with eem. I have not used that before so should be interesting.
Thanks again
Patrick
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