Skip to main content
CollabraIT
New Member
March 2, 2017
Solved

Change IPsec tunnel preshared key

  • March 2, 2017
  • 3 replies
  • 16406 views

How can I change the IPsec tunnel preshared key? It can't be done in the gui. When I edit my tunnel and select the option for preshared key, the field key entry field doesn't appear like it does when creating a new tunnel. Is there a way to do this in the cli? So far I haven't found it.

    Best answer by ede_pfau

    Yes it will.

    3 replies

    CollabraIT
    New Member
    March 2, 2017

    From the cli, editing my tunnel in

    config vpn ipsec phase1-interface

    If I type "set psksecret" and a new key, will that replace the existing preshared key and encode it?

    ede_pfau
    SuperUser
    ede_pfauAnswer
    SuperUser
    March 2, 2017

    Yes it will.

    Toshi_Esumi
    SuperUser
    SuperUser
    March 2, 2017

    Yes, it does.

    CollabraIT
    New Member
    March 2, 2017

    Thanks guys.

    Toshi_Esumi
    SuperUser
    SuperUser
    March 2, 2017

    With CLI you can even copy and paste the encrypted PSK (ENC) to other phase1-interface without knowing the original PSK. That's how we migrate IPSecs from one FG to another as long as the software version is the same or close enough.

    mpandya
    Staff
    Staff
    September 6, 2024

    Yes