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

Establishing connection with openFortiGui on Fedora 29 #68

Closed msilberg closed 5 years ago

msilberg commented 5 years ago

Hi, Having managed to build openFortiGui binary from source on Fedora 29 I can finally run it, but still I'm not able to establish connection. When I run the binary, having pressed Connect button, in the cli it asks me for my user's password (the operating system's, not the one of the connection) and when I input it nothing happens and the connection status is still disconnected. Connection itself works and was tested on Ubuntu machine with openFortiGui. Here are additional logs I found Dec 22 02:47:59 openfortiGUI::Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnAddVPN_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnDeleteVPN_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnEditVPN_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnCopyVPN_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnAddGroup_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnDeleteGroup_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnEditGroup_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QMetaObject::connectSlotsByName: No matching signal for on_btnCopyGroup_clicked() Dec 22 02:48:00 openfortiGUI::Warning: QObject::connect: No such signal vpnLogger::finished() in vpnmanager.cpp:46 Dec 22 02:48:00 openfortiGUI::Warning: QObject::connect: No such signal vpnLogger::finished() in vpnmanager.cpp:47 Dec 22 02:48:03 openfortiGUI::Warning: "QLocalSocket::connectToServer: Connection refused" Dec 22 02:48:03 openfortiGUI::Warning: Socket not open I'd appreciate if you provide me with any other kind of information in order to resolve the issue. Thanks.

theinvisible commented 5 years ago

Hi, I dont use Fedora so i cant really debug it, maybe someone else can try.

But it seems like the sudo files are missing. Please have a look here for an example: https://github.com/theinvisible/openfortigui/blob/master/openfortigui/sudo/openfortigui and adjust to your binary location of openfortigui

As the VPN tunnel can only be brought up with root permissions its necessary that the user who is running openfortigui can run it also with root permissions.