Fortinet – Static routes with Firewall objects

I like the the Idea to configure static routing over firewall objects. This avoids the static route limit on FortiGate Firewall.

config firewall address
    edit "N.203.0.113.0--24"
        set allow-routing enable
        set subnet 203.0.113.0 255.255.255.0
    next
end

config firewall addrgrp
    edit "R.Networks"
        set allow-routing enable
        set member "N.203.0.113.0--24"
    next
end

config router static
edit 0
    set gateway 198.51.100.1
    set distance 15
    set device "port1"
    set comment "Some comment"
    set dstaddr "R.Networks"
next
end

Photo by Markus Spiske on Unsplash