theinvisible / openfortigui

VPN-GUI to connect to Fortigate-Hardware, based on openfortivpn
https://hadler.me/linux/openfortigui/
GNU General Public License v3.0
492 stars 54 forks source link

connect using just a certificate #65

Closed nixx-geek closed 5 years ago

nixx-geek commented 5 years ago

I'm trying to connect to a VPN server using only a certificate (no user, no password). I hit connect and the login pop-up appears login After i click submit the status changes to Connecting connecting but after waiting for half an hour still nothing happens. Can you look into this? My company uses only certificates for authentication. On Windows machines using the official Forti client, the connection works after selecting the certificate from the drop down list.

Thank you.

theinvisible commented 5 years ago

Hi, does it work with openfortivpn? Also whats the log output for the specified VPN? Thanks and cheers Rene

nixx-geek commented 5 years ago

openfortigui log:

Nov 25 10:14:19 openfortiGUI::Debug: active-tab:: 0
Nov 25 10:14:19 openfortiGUI::Debug: start vpn: "test" active-tab:: 0
Nov 25 10:14:19 openfortiGUI::Debug: Start vpn:: "test"
Nov 25 10:14:19 openfortiGUI::Debug: add logger "/home/user/.openfortigui/main.conf"
Nov 25 10:14:19 openfortiGUI::Debug: vpnManager::onClientConnected()
Nov 25 10:14:19 openfortiGUI::Debug: client api helo command:: 0 ::name:: "test"
Nov 25 10:14:19 openfortiGUI::Debug: tiConfVpnProfile::readVpnProfiles() -> vpnprofile found: "/home/user/.openfortigui/vpnprofiles/test.conf"
Nov 25 10:14:22 openfortiGUI::Debug: vpnClientConnection::sendCMD:: "test" :: 4
Nov 25 10:14:23 openfortiGUI::Debug: vpnManager::onClientVPNStatusChanged() "test" status 1
Nov 25 10:14:23 openfortiGUI::Debug: MainWindow::onClientVPNStatusChanged:: "test" ::status:: 1
Nov 25 10:14:23 openfortiGUI::Debug: 1543133663533 bytes avail:: 22

syslog:

Nov 25 10:14:19 laptop1 sudo[3654]:     user : TTY=unknown ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/openfortigui --start-vpn --vpn-name test --main-config '/home/user/.openfortigui/main.conf'

It doesn't work with openfortivpn either >> https://github.com/adrienverge/openfortivpn/issues/375

theinvisible commented 5 years ago

Thanks, as OpenFortiGUI is using openfortivpn as its core, this problem must be solved first in openfortivpn. I will close this ticket until there is some progress or solution available.