Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
NIS
New Contributor II

Link monitor with route updates

Hello Team,

We have a similar scenario explained in the Fortigate  Admin guide - https://docs.fortinet.com/document/fortigate/7.4.0/administration-guide/647723/link-monitor-with-rou...

We have a requirement to monitor the static route with link monitoring so whenever the IP defined in the link monitor is unreachable, specified static will be removed from the Fortigate routing table.

 

However, in our datacenter, we are managing Fortigates from the Fortimanager so I am not sure how to achieve this. 

I have checked FortiManager admin guide but it was not useful.

Could someone assist, please?

3 REPLIES 3
Toshi_Esumi
SuperUser
SuperUser

Link-monitor doesn't seem to be an "Object" in a policy package. So if you want to keep the config in sync when it changes, you probably need to use a CLI template to configure then apply to the device.
But if you don't have to/want to manage the routes, which might not change once configured, you can just get into the device via "CLI via SSH" from the FMG then configure the link-monitor at the device.

The change would be automatically retrieved to FMG so you'll have to re-install policy package and others, which went out of sync because of auto-retrieve.
It's up to your strategy "how much detail you want to manage by FMG". I tend to choose the latter.

 

Toshi

NIS
New Contributor II

Thanks for your response. We want to manage the static route so when the link monitor attached to the static route mark the next hop/target IP down, it will remove the static route from the routing table.

Toshi_Esumi

Ok, then again you probably need to CLI templates.

https://docs.fortinet.com/document/fortimanager/6.4.5/administration-guide/759109/cli-templates

CLI templates are scripts that need to sync with the devices so when something get changed on the device you have to resync again from the FMG side. If you want to make those monitoring routes or even the gateway IP as valuables then change them per device, you want to use meta fields to plug the values in per device. Since it's not an object in a policy package you can't use "per-device object".

https://docs.fortinet.com/document/fortimanager/7.0.8/administration-guide/611929/meta-fields

 

But if you don't have multile FGTs with similar config and managed by the same FMG, I still don't see much reason to explicitly manage the content of link-monitor config with a CLI template.

 

Toshi

Labels
Top Kudoed Authors