1995parham / dotfiles

:rocket: @1995parham Linux / OSx configurations files
GNU General Public License v2.0
112 stars 4 forks source link

Openfortivpn is not working on macOS #52

Closed 1995parham closed 11 months ago

1995parham commented 12 months ago

Since few days ago, openfortivpn is not working as expected for me. I mean it cannot add the proper routes, so I get connection timeout from some of the Snapp! internal domains.

I am using handwritten plist file for launching openfortivpn using macOS launchd, so my first suspicion is about that which seems correct, then I decided to run it manually from the terminal and I saw the following log:

WARN:   Could not get current default route (Parsing /proc/net/route failed).                                                                                                                                                                                                                                                                                           
WARN:   Protecting tunnel route has failed. But this can be working except for some cases. 

So, I have something to search for, After searching around it, I found it was related to the issue which is resolved in 1.20.5, but why we have this again? Am I in Déjà vu?

At the end, I found the in the latest release of openfortivpn (1.21.0) they more the option they've added int 1.20.5 into the compilation phase and the brew team didn't pay attention to this. I've add a comment here. But for now I used the following commands to revert back into the old version for macOS:

wget https://raw.githubusercontent.com/Homebrew/homebrew-core/ab8da4ffbdf25a4110e1abe165d7196facc6a89b/Formula/o/openfortivpn.rb
brew reinstall ./openfortivpn.rb
brew pin openfortivpn

This new build also affect ArchLinux in a good manner and I don't need to override systemd commands anymore.

rsharifnasab commented 12 months ago

I'm having the same problem. Using forticlient GUI is not a good idea either. Thank you for mentioning the solution.

1995parham commented 11 months ago

Fixed by the openfortivpn author :rocket:

https://github.com/Homebrew/homebrew-core/commit/d88b7a153a82827379aa729360fd71a4e1c47e52