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

Could not authenticate to gateway (No cookie given) #8

Closed ghost closed 7 years ago

ghost commented 7 years ago

Just installed 0.3.0 to test the 2FA feature. After clicking connect I get the following log. The VPN entry was deleted and re-created manually. The gateway works with openfortivpn on CLI.

INFO:   Connected to gateway.
ERROR:  Could not authenticate to gateway (No cookie given).
INFO:   Closed connection to gateway.
INFO:   Logged out.
theinvisible commented 7 years ago

Can you post the working log output of openfortivpn please? Regarding you log there is never a 2FA happen. Thanks.

ghost commented 7 years ago

I just closed the app via the tray icon (but it actually was a fresh install)... Now it works...

ghost commented 7 years ago

But setting the DNS (option is enabled) doesn't work :-(

ghost commented 7 years ago
INFO:   Removing VPN nameservers...
INFO:   Connected to gateway.
2factor authentication token: 
INFO:   Authenticated.
INFO:   Remote gateway has allocated a VPN.
INFO:   Custom: xxx.
INFO:   Got addresses: [x.x.x.x], ns [0.0.0.0, 0.0.0.0]
INFO:   Interface ppp0 is UP.
INFO:   Setting new routes...
INFO:   Adding VPN nameservers...
INFO:   Tunnel is up and running.
INFO:   Setting ppp interface down.
INFO:   Restoring routes...
INFO:   Removing VPN nameservers...
theinvisible commented 7 years ago

Okay i must validate this. So you can see the right DNS-servers in log but they are not applied to system right?

ghost commented 7 years ago

Sorry for missing explanation. I actually get 0.0.0.0 in the log what is not the DNS address. Running openfortivpn on CLI works and gets the correct DNS (also in the output).

theinvisible commented 7 years ago

Hello, this is fixed now in the latest release (0.3.3.). Give it a try. : )