Skip to main content
FloBEAUG
New Member
September 20, 2019
Solved

CLI Script vpn ipsec phase1-interface

  • September 20, 2019
  • 1 reply
  • 7030 views

Hello,

I'm trying to upload a script via the web interface but the script keeps on failing and i don't know why.

 

Here is the script :

 

config vdom
edit Hub

config vpn ipsec phase1-interface
edit "0630000X-tun1"
set interface "wan2"
set nattraversal disable
set authmethod psk
set remote-gw <hidden-IP>
set psksecret <somelongpassword>
next
end
end

 

When I type the same commands line by line under CLI through SSH everything goes well... I have enabled "diagnose debug" and set it to "cli 7", here is the output of the script :

0: config vdom
0: edit Hub
0:
0: config vpn ipsec phase1-interface
0: edit "0630000X-tun1"
0: set interface "wan2"
0: set nattraversal disable
0: set authmethod psk
0: set remote-gw <hidden-IP>
0: set psksecret <somelongpassword>
1: next
0: end
0:
0: end

 

Do you have any idea please ?

Sincerely,

 

Hardware: FG200E v5.6.9 build1673

    Best answer by neonbit

    When the script fails on the FMG there is a little icon that looks like a magnifying glass. If you click on it it will show you the commands as they're sent through and where it failed.

    1 reply

    neonbit
    neonbitAnswer
    New Member
    September 20, 2019

    When the script fails on the FMG there is a little icon that looks like a magnifying glass. If you click on it it will show you the commands as they're sent through and where it failed.

    FloBEAUG
    FloBEAUGAuthor
    New Member
    September 20, 2019

    I'm not using FMG, I'm connecting directly to the FG Web UI.

    But I can try with FMG and see what you told me.

     

    Thanks

    emnoc
    New Member
    September 21, 2019

    That last end is not required for this script. 

    Ken Felix