# =============================================================================
# Created & hosted by RASANEGAAR.com
# Iran IPv4 list / mirror helpers — https://mirror.rasanegaar.com/info/
# Service Management (managed servers & network) — https://rasanegaar.com/
# =============================================================================
#
# FortiGate — external address resource from the Rasanegaar mirror
# Paste in CLI (config mode). Then use "IRAN_IPV4" in firewall policies.
# Requires outbound HTTPS to mirror.rasanegaar.com
#

config system external-resource
    edit "IRAN_IPV4"
        set type address
        set resource "https://mirror.rasanegaar.com/info/countries/IR/ir_ipv4_list.txt"
        set refresh-rate 1440
        set status enable
    next
end

# Optional: verify
# diagnose system external-resource list
# get system external-resource IRAN_IPV4

# Example policy snippet (adjust interfaces / action):
# config firewall policy
#     edit 0
#         set name "match-iran-ipv4"
#         set srcintf "wan1"
#         set dstintf "internal"
#         set srcaddr "IRAN_IPV4"
#         set dstaddr "all"
#         set action accept
#         set schedule "always"
#         set service "ALL"
#     next
# end

# =============================================================================
# End — RASANEGAAR.com | Service Management: https://rasanegaar.com/
# Help: https://mirror.rasanegaar.com/info/usage.html
# =============================================================================
