Hello,
I connect to the VPN with the command below usually and it works fine but when I am disconnected because for example connection problems and the last connection persisted on the server and server allows have only one connection at time I am not able to use the same way how to connect. Why? Because displayed popup:
You already have an open SSL VPN connection. Opening multiple connections is not permitted. Do you want to proceed and disconnect your other connection?
is displayed for like second and immediately is hidden. Command log:
```
$ /opt/forticlient/forticlient-cli vpn connect MyVPNName
Connect VPN: MyVPNName
Status: Connecting...
=====================
Authentication Required
---------------------
An email message containing a Token Code will be sent to <luxxx.xxxxxxx@xxxxxxx.cz> in a moment.
=====================
FortiToken:
=====================
Confirmation Required
---------------------
You already have an open SSL VPN connection. Opening multiple connections is not permitted. Do you want to proceed and disconnect your other connection?
=====================
Confirm (y/n) [default=n]:Confirm (y/n) [default=n]:Status: Disconnected
Notification: Login canceled
DONE.
```
I tried to add `--auto-connect` but it was not helpful. Anyway I can confirm using GUI it works, I mean when I answer to (not missing) popup yes and confirm disconnecting the previous connection.
```
$ forticlient version
FortiClient Version: 7.2.2.0753
FortiClient Serial: FCT8001727034123
FortiClient UID: EE266A9AE5004693ABCEFDE24314F858
=====================================
Engines
=====================================
AntiVirus: 6.00287
Vulnerability: 2.00031
=====================================
Signatures
=====================================
AntiVirus: 1.00000
AntiVirus Extended: Unavailable
Vulnerability: 1.00034
Sandbox: Unavailable
ICDB: 1.00026
```
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Because it looks like it asks twice:
```
Confirm (y/n) [default=n]:Confirm (y/n) [default=n]:
```
I tried it solve using `expect`:
```
And it works. How I understand why `expect` works: `expect` uses `spawn` which creates a process in the background and with `set timeout 1` then after autocompleting the password is process left in the background and because of that is not cancelled GUI popup question.
Because it looks like it asks twice:
```
Confirm (y/n) [default=n]:Confirm (y/n) [default=n]:
```
I tried it solve using `expect`:
```
And it works. How I understand why `expect` works: `expect` uses `spawn` which creates a process in the background and with `set timeout 1` then after autocompleting the password is process left in the background and because of that is not cancelled GUI popup question.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1665 | |
1077 | |
752 | |
446 | |
220 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.