05-20-2023 11:00 AM
Hello,
We have a requirement to shutdown the inside interface of our FTD once the internet link on the upstream ISP router goes down. The logical connectivity is as follows.
Core Switch---->(inside)FTD(outside)----->(inside)ISP Router(outside)----->Internet
Initially I planning to use an sla monitor (ping to 8.8.8.8)and use it in an EEM script to shutdown the interface. But I found that FTD/ASA does not support event track command. Please advise if there is any other way to achieve my requirement.
Thanks
Solved! Go to Solution.
05-22-2023 02:44 AM - edited 05-22-2023 03:00 AM
event syslog id nnnnnn [-nnnnnn] [occurs n] [period seconds] <<- before you ask friend I search for solution try use occur
the add must use occur 1
the remove must use occur 2
try this because I afraid the FTD always use first one add or remove
I will try this solution and try other and share here tonight.
thanks
MHM
05-20-2023 11:05 AM - edited 05-20-2023 11:07 AM
@SHABEEB KUNHIPOCKER you can use the ASA EEM syntax with FlexConfig on the FTD.
What is your scenario to shutdown the FTD interface?...there might be a more elegant solution.
05-20-2023 09:36 PM
Hi Rob,
The issue that the FTD is running ospf with core switch. The FTD has DMZ interface where they have an ESA. The customer has two data centers and when we do failover to the DC2, we need these DC1 DMZ routes to be removed from the routing table. My plan was to track an internet IP and shutdown the inside interface of FTD so that the ospf will be down from FTD to core and the DMZ route will be removed from the downstream devices.
05-20-2023 11:07 AM
From first view you can use flexconfig to config eem in ftd.
05-20-2023 11:10 AM
05-20-2023 09:38 PM
Hi,
I have seen this link. But as stated there is no option to configure event track. In my case I need to monitor an internet IP and when it is unreachable I need to run EEM. So I don’t think I can use the solution in the link.
05-21-2023 02:35 AM - edited 05-21-2023 02:37 AM
@SHABEEB KUNHIPOCKER event track is not supported on ASA and FTD. I just had a thought why dont you use the syslog ID "718063 Error Message %ASA-5-718063: Interface interface_name is down" and "718064 Error Message %ASA-5-718064: Admin. interface interface_name is down". as syslog are supported on EEM applet
on based of these log ID you can create the EEM applet and run it.
05-21-2023 02:51 AM
Yes you correct
Even track not support'
You can use syslog' but syslog for what
Here the Q
The answer you can use static route with track and use syslog for add remove this route to rib and config eem.
05-21-2023 02:59 AM
syslog can be use against the "name if" here is the log id and description " "718063 Error Message %ASA-5-718063: Interface interface_name is down"
05-21-2023 03:03 AM
He use IP SLA because the FTD side not down when ISP interface down'
So we will use static route only for eem and detect it add remove.
05-21-2023 03:15 AM - edited 05-21-2023 03:17 AM
In that case there are the syslog id need to be configured.
609001
302020
302021
609002
622001
I get these syslog id from Cisco Document
https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog.pdf
05-21-2023 03:33 AM
I am far from my PC I already run lab using this syslog, hope share this lab tonight
05-21-2023 05:20 AM
Hello,
Our issue is that we cannot use static route as we are already running ospf in the FTD, and we need to remove some subnets from getting advertised to ospf when the upstream internet link goes down.
05-21-2023 06:46 AM
you detect the 8.8.8.8 use static route to 8.8.4.4, we talk here about any static route not specific one
route OUT 8.8.4.4 255.255.255.255 <ISP> track x
then use EEM and shut down or remove net under OSPF
05-21-2023 09:37 AM - edited 05-21-2023 09:38 AM
@SHABEEB KUNHIPOCKER you can configure the Interface syslog id as mentioned in my earlier post and run the EEM applet aganist it. If this is production network which I assume it is. There is a less chance of false positive as you or some one else from network team will shutting the any interface of the firewall. so syslog id 718063 and 718064 is your best bet. unless otherwise, you get the syslog id of the ospf adjacency syslog id and run against the EEM applet.
I am afraid you only have these options with EEM applet.
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