fortinetdev / terraform-provider-fortimanager

Mozilla Public License 2.0
11 stars 10 forks source link

fortimanager_system_route - Error creating SystemRoute resource: err -60003: [entry not exist] #37

Closed sognern closed 5 months ago

sognern commented 1 year ago

I'm trying to create a static route, running fortimanager; v7.2.2-build1334 230201 (GA);

resource "fortimanager_system_route" "test" { device = "vpn-tunnel" dst = [ "10.0.0.0", "255.255.192.0", ] seq_num = 200 }

Error: Error creating SystemRoute resource: err -60003: [entry not exist]

MaxxLiu22 commented 1 year ago

Hi @sognern ,

It looks like vpn-tunnel doesn't exist, I don't see there is a way to create a vpn tunnel on fmg, so you may need to choose a port as a device.

Thanks, Maxx

sognern commented 1 year ago

It's an interface mapped to vpn phase 1. Creating a test manually in fortimanager where I choose the mapped interface works. Terminal on the gate says this after creation;

config router static edit 2 set dst 10.0.0.0 255.255.192.0 set device "vpn-tunnel" set comment "azure services" next end

MaxxLiu22 commented 11 months ago

Hi @sognern ,

Thank you for your information, your CLI commands looks like run on the FGT, but resource "fortimanager_system_route" is used to configurate fortimanager's route setting, and unfortunately I don't find a resource to config FGT static router through FMG

1

, but we can set FGT static router through script function on FMG. Instruction is here, let me know if I misunderstand your question.

Thanks, Maxx

MaxxLiu22 commented 5 months ago

Hi everyone,

I will proceed with closing this case. If you continue to experience any issues, please feel free to reopen it or open a new case.

Thank you, Maxx