Skip to main content
Georges_Orwell
New Member
November 3, 2020
Solved

[FG-401 E- FortiOS 6.4.2] RENAME IPSEC VPN

  • November 3, 2020
  • 3 replies
  • 7989 views

Hello

 

I have IPsec Tunnel  wrong named.

unfortunately there are more than 300 policy that matching this IPsec Tunnel (and Interface)

Its really disturbing daily.

Is there a way to change it from command line or GUI whithout rebuild all policy?

I'm on HA cluster FG-401-E that run 3 VDOM FortiOS 6.4.2

Thank you for your help

Best answer by Viknesh_Muniyandi

It can not be changed. 

 

Either you need to rebuild the tunnel 

OR 

You need to backup the config >> Manually change the name of that tunnel (make sure you replace it with the new name and it must be changed wherever you referenced the old tunnel name in the config) >> Push the config back to Firewall. 

(It usually requires firewall to reboot) 

 

Regards,

Viknesh

3 replies

Viknesh_Muniyandi
New Member
November 3, 2020

It can not be changed. 

 

Either you need to rebuild the tunnel 

OR 

You need to backup the config >> Manually change the name of that tunnel (make sure you replace it with the new name and it must be changed wherever you referenced the old tunnel name in the config) >> Push the config back to Firewall. 

(It usually requires firewall to reboot) 

 

Regards,

Viknesh

Georges_Orwell
New Member
November 3, 2020

Thank you Viknesh

sw2090
SuperUser
SuperUser
November 4, 2020

yep IPSec renaming is a pain in the *censored* :\

 

You can only easily rename an ipsec if you happen to have that FGT in a FortiManager. FMG can do that for you.

If you don't have a FMG you can only do they way Viknesh wrote or old school which would be deleting all references, delte the ipsec and recreate everything which you don't want to do with that many references of course...

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!