CLI Script vpn ipsec phase1-interface
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
