Меню Рубрики

Shrew vpn client mac os

Mac App Store

Search & Install any app on Mac

Install shrewsoft-vpn-client on Mac OSX

About the App

  • App name: shrewsoft-vpn-client
  • App description: Linux/BSD version of Shrew Soft VPN client
  • App website: https://www.shrew.net

Install the App

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:
    ruby -e «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)» /dev/null
    and press enter/return key.
    If the screen prompts you to enter a password, please enter your Mac’s user password to continue. When you type the password, it won’t be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish.
  3. Run:
    brew install shrewsoft-vpn-client

Done! You can now use shrewsoft-vpn-client .

Similar Software for Mac

One thought on “ Install shrewsoft-vpn-client on Mac OSX ”

Tried running this package on a MAC today in hopes I can make this install easier for a user of mine who has a MAC but get an error stating “No Available formula with the name shrewsoft-vpn-client”. Any help would be greatly appreciated!

Источник

Shrew vpn client mac os

Shrew Soft have a Mac OSX port of the VPN client based on the head ( 2.2.x ) sources. It seems that it requires more testing, but it appears to be more or less stable.

There are two requirements / dependency before running the native
install package (.dmg file)

1) Install the LGPL Qt Framework for Mac OSX.

If the above link no longer work, use this:

2) Install the current release of the TUN/TAP driver for Mac OSX.

http://tuntaposx.sourceforge.net/download.xhtml

3. The finally, install the Shrew Soft VPN client.

You should now find the VPN Access manager in the Application folder.

This have been tested to work on Lion and Mountain Lion.

Related Links:

23 comments:

hi. Im student from Informatics engineering nice article,
thanks for sharing 🙂

You’re welcome, hope it helped you.

It helped me — thanks for it 🙂

As a supplement: after installing tun/tap driver, you need restart machine, or:
sudo /Library/StartupItems/tun/tun start
sudo /Library/StartupItems/tap/tap start

Would you know why my computer fails to open it?

I just followed the steps and installed the packages described. I didn’t get it to work so i decided to fallback to the «build in» vpn client in osx. But now that does not work anymore. Looking in the /var/log/system.log I see rows like:

ec 11 10:50:49 My-MacBook-Air.local racoon[692]: failed to bind to address 10.0.0.34

(10.0.0.34 is my current IP). Any idea what might have changed during the installation?

I just followed the steps and installed the packages described. I didn’t get it to work so i decided to fallback to the «build in» vpn client in osx. But now that does not work anymore. Looking in the /var/log/system.log I see rows like:

ec 11 10:50:49 My-MacBook-Air.local racoon[692]: failed to bind to address 10.0.0.34

(10.0.0.34 is my current IP). Any idea what might have changed during the installation?

I had problems because I installed the latest v5 of QT, I then installed the latest v4, but unfortunately it’s not compiled for the correct architecture type, so, I removed all the QT folders in /Library/Frameworks and then installed the version 4.7.1 dmg from http://download.qt-project.org/archive/qt/4.7/qt-mac-opensource-4.7.1.dmg

Note that the link to Nokia didn’t work for me today — just a blank page, hence the previous link.

Thanks for your Blog.

Let me make two remarks:

1) The posted link for the Qt library didn’t work. But Qt 4.7 also can be found here:
http://files.linux-addicted.net/qtproject/archive/qt/4.7/qt-mac-opensource-4.7.1.dmg

2) Qt 4.8 or newer does not work. There you’d get an error like
«no suitable image found. Did find [. ]: mach-o, but
wrong architecture»
It definitively must by version 4.7.x.

@ Johanna, Thanks for the valuable additional info. Replaced the original link with the new one.

These installation instructions supply version 2.2.0.

I have tested it on Mavericks with the following result:
— Shrew starts
— It does not crash
— But in my case, it does not connect when using a .vpn file that works with Shrew in Windows.

Ergo, it would seem that it does not work.
I am trying to build 2.2.1, but so far without success.

I have tried to build 2.2.1 for Mavericks as a replacement for step three — no joy to be had.

attached to key daemon .
peer config failed
detached from key daemon

Shrew.net has not done anything since July 1 2013. Perhaps they (or he) got a day job.
Looks like I have to resort to VMWARE and a windows license. My stars, that is going to be expensive.

I could get it to work on mavericks but since today it stopped working.

At some point I just put all the p12 Files from my iPhone in the ca, cert and key field and it worked!

Thanks for review, it was excellent and very informative.
thank you 🙂

Still works on mavericks.

Just updated from Mavericks where it worked to Yosemite and it no longer works.

May try re-installing all the components in sequence.

Still works on Yosemite. I had to re-install the various elements.

anyone tested on yosemite??

anyone tested on yosemite.

I managed to make it work on yosemite however you have to:
1) tell the kernel to allow unsigned extensions
sudo nvram boot-args=»kext-dev-mode=1″
2) load the extensions manually since the autoload from startupitems does not work anymore
sudo kextload /Library/Extensions/tun.kext
sudo kextload /Library/Extensions/tap.kext

So nice job. Present very need this security for every person..
vpn on mac

Francesco Lamonica’s comment is pure gold! i could not get mine to work until i followed both directions. They should be added to the instructions!

Search

Author Interests

Parallel and Distributed Computing
Service-Oriented Architecture
Application Optimization
Network and Application Security
Process Automation
Data Warehousing
Data Visualization
Artificial Intelligence
Open Source Software

This blog is here because I realized that there is no better way to ensure knowledge assimilation for myself and education to the netizens about the things I discover, invent and learn from anything about computing, especially information technology in the cloud, system administration and anything interesting more than writing. Blogger is free so I don’t have to worry about publication.

I would be writing mostly on open-source solutions to real-world IT and computing problems. I would also like to write on topics about simplifying, analyzing and aggregating sparsely distributed information, natural language and human behavior whenever possible. I will start by discussing concepts then theories proceeding on practical application or a proof with the aim to provide a model solution.

I’d also like to note that I do have substantial knowledge and experience with Microsoft products but as a matter of preference, I won’t be discussing any of those things as long as I can avoid.

I might jump to other topics depending on my mood.

Источник

El Capitan solution: Mac OS X 10.11 and Shrew Soft VPN client

“Signed, El Capitan. I don’t know who this El Capitan is, but I sure like his style.”
Scrooge McDuck in “Duck Tales” (TV show, 1987)

Recipe updated: September, 6th, 2016
When we got to upgrade our Macbook Pro to the all new Mac OS X 10.11, we surely liked its slick new style and interface improvements. And what not to like. The only drawback was that our Shrew Soft VPN client has fallen victim of the new ship commander. Cries from “Shrew that!” to the odious “À l’abordage! did not help; our online search mission was going for days without a single sight of solid land. Until when we stumbled upon a recent comment from user MIKE under this German blog post that suddenly looked promising.

While we have to admit that our German is still “unterdurchschnittlich”, please find the translated recipe with explanations how it worked for us:

  1. One prerequisite is that you need to have Ruby programming language installed on your Mac. That is not covered under this recipe. Ours was probably installed with Apple’s XCode Command Line Developer Tools. So it just worked.
  2. Once you have ruby, the step is to download and install Homebrew packet manager. That requires entering shell commands in a Terminal window. They suggested following line that should be executed under a regular user id (e.g. NOT as root):

Note: unfortunately, that command did not work for us. We chose to download install script into our home folder separately using the link above and then simply ran it with ruby:

Then everything went smoothly. Installing Shrew Soft VPN client:

Note: it was brought to our attention that since last year the VPN package has been removed from brew’s repository for unknown reason. If you need a copy for your install, we are posting a link here to download that package from our website: http://nubisnovem.com/files/shrewsoft-vpn-client-2.2.1.tbz2

Also, one of the visitors of our website was kind enough to provide following solution:

You can get the shrewsoft-vpn-client using homebrew by tapping homebrew/boneyard and then trying to install:

Thank you very much, Mr. Watson.
Creating an alias for the shresoft-vpn-client under Application:

Note: if this step fails, you may need to remove folders with previous versions of Shrew Soft binaries installed in Applications folder by issuing this command:

Setting up automatic start via launchd.

Note: because we already had an older version of Shrew Soft daemon at that location, we had to manually remove the old one first:

Then proceed with the new client set up:

Start the newly installed Shrew Soft VPN daemon for the first time:

  • After that you may start using the VPN client! Most probably you would have to re-create your connection configuration, but that is trivial, right?
  • Mit freundliche grußen,
    El Capitan

    Comments

    On Step 2
    Your ruby command is failing because of the brackets incorrectly formatted. Thy the command below:
    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” /dev/null

    Thank you for your comment. We tried a few variants before giving up, may be too early. Note that in original recipe in German the command was presented as this:
    ruby -e „$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)“ /dev/null
    That leading under-quote was even more dubious for successful execution.

    Sorry the quotation marks not brackets.
    WordPress seems to format them which gives errors when running.

    Sorry, I don’t understand you … Can you write the correct sentence again?

    Great solution! Thank you very much.
    Almost I’ve created a script to connect. I think is very useful:

    #!/bin/bash
    sudo killall racoon
    DIR=”/Applications/Shrew*Connect.app/Contents/MacOS”
    $DIR/Shrew* -r -u -p -a

    and it works properly

    Interesting. Thank you for the comment.

    Thank you! Got it working again! I just had to retype the qoutes(“”) then the command worked.

    Great, thanks for confirming. I am glad it worked for you!

    any chance a new shrewsoft version will released containing the al capitan fix?

    Sorry, that we would not know. It seems that Shrew Soft was infrequent to release new version of their VPN client. Please note that the solution described here was simply recompiling their source in a certain way with newer versions of 3rd party libraries to work with El Capitan; not a Shrew Soft issue per se.

    Thank you – Your instructions were excellent on fresh install. To others, make sure you read the Terminal messages before just pressing any keys!

    hello,
    when I write the command: “brew linkapps shrewsoft-vpn-client”
    I get this error message:
    “Linking /usr/local/opt/shrewsoft-vpn-client/Shrew Soft VPN Access Manager.app to /Applications.
    Error: /Applications/Shrew Soft VPN Access Manager.app already exists, skipping.
    Linking /usr/local/opt/shrewsoft-vpn-client/Shrew Soft VPN Client Connect.app to /Applications.
    Error: /Applications/Shrew Soft VPN Client Connect.app already exists, skipping.”
    is this why shrew soft doesn’t launch at the end of all the procedure?

    Hello Rudi, apparently you need to remove the link for the Shewsoft executable that you already had in /Applications. Try to remove that manually via rm command, if nothing else helps.

    Hi thanks for the answer,
    would you be so kind to write to me a command I can copy and paste?
    I’m sorry but I’m not really able to write that on my own.
    If that’s not possible, maybe indicate me a way for me to do so.
    Thanks again

    Please try to issue following commands prior to installation:

    rm -rf /Applications/Shrew*

    rm -rf /usr/local/opt/shrew*

    Note that rm command is powerful and does delete files permanently, it may not be undone. You should be carefully typing or copying it, without any additional spaces or extra symbols in between.

    Thanks a lot, now I’ve successfully installed shrew softy.
    But now I do get this message when I try to install the new LaunchDaemons:

    When I Type: sudo rm /Library/LaunchDaemons/*shrew*.plist
    I get: No such file or directory
    Same thing when I type sudo cp -fv /usr/local/opt/shrewsoft-vpn-client/*.plist /Library/LaunchDaemons
    sudo chown root /Library/LaunchDaemons/homebrew.mxcl.shrewsoft-vpn-client.plist

    Yes, you should just skip that step. Because you already removed with your other “rm” command all that needed to be removed.

    ok thanks,
    But when I try to launch a VPN connection now I get this message from Shrew soft:
    failed to attach to key daemon

    I’ve checked and there are no shrew soft daemons in the folder where they should be
    Don’t know what to do
    Sorry to bother again

    Rudi, it is hard to understand what status of your installation is. I am sorry. You need to have a bit of technical background to judge the outcome of each command.

    Rudi, learn on your own. Andrei has been too patient already!

    Jordan, there is no reason to be rude. I do not mind helping, I just need information to be able to help.

    Really really sorry.
    I’ve now find the problem and resolved the issue. I must have accidentally deleted to many times the daemon files

    Thanks again for the post and for Your help

    No problem. I am glad it finally worked for you! Good stuff.

    Thanks a lot ofr the great instructions! I am running in to an issue connecting, though. All the Terminal commands went smoothly and the client installed as it should. I am using a configuration file that I’ve received from my network admin. When trying to connect, I get the response “attached to key daemon …” and that’s it. Nothing happens after that. I don’t have much experience with VPN’s, so I could use some help as to where to start looking for solutions. Can this have something to do with my install or is it more likely on the server side?

    Hi Martin, I am sorry. But this looks like a puzzle for your system admin to resolve. That should include digging through VPN server logs. I wish I could help. Cheers. A.

    No worries – thanks a lot for helping me get this far! 🙂

    I had this problem and realized the ike service wasn’t running. Run this in terminal:
    sudo /usr/sbin/iked

    It will start the service. You will have to run this every time you reboot since it looks like it doesn’t start the service automatically. Or you can setup scripts to start it for you.

    You are geniuses!! It work

    Hi I’m trying to install the client but I receive the following error:

    $ brew install shrewsoft-vpn-client
    ==> Downloading https://www.shrew.net/download/ike/ike-2.2.1-release.tbz2
    ######################################################################## 100.0%
    curl: (33) HTTP server doesn’t seem to support byte ranges. Cannot resume.
    ==> Trying a full download
    # 2.4%
    curl: (56) SSLRead() return error -9806
    Error: Failed to download resource “shrewsoft-vpn-client”
    Download failed: https://www.shrew.net/download/ike/ike-2.2.1-release.tbz2

    Anyone has encountered this problem?
    If I manually download the package ike-2.2.1-release.tbz2, opening it with download manager says: Error 1 – Operation not permitted

    Nevermind: after some days I re-tried the installation and all went fine!

    Thanks for confirming that the recipe finally worked for you! We are glad to hear that.

    hello, thanks for this solution.
    It seems that there is an error as follows :
    Last 15 lines from /Users/gug/Library/Logs/Homebrew/shrewsoft-vpn-client/01.cmake:
    — The C compiler identification is AppleClang 6.1.0.6020053
    — The CXX compiler identification is AppleClang 6.1.0.6020053
    CMake Error at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/Platform/Darwin.cmake:84 (message):
    CMAKE_OSX_DEPLOYMENT_TARGET (10.11) is greater than CMAKE_OSX_SYSROOT SDK:

    Please set CMAKE_OSX_DEPLOYMENT_TARGET to 10.10 or lower.
    Call Stack (most recent call first):
    /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
    CMakeLists.txt:10 (project)

    — Configuring incomplete, errors occurred!
    See also “/tmp/shrewsoft-vpn-client20160223-11597-mpvsrf/ike/CMakeFiles/CMakeOutput.log”.
    Any idea ?
    Thanks again

    Hi! Thanks for your comment. We did not observe this. It looked to us like your SDK version might be outdated, as it pointed out to XCode being for 10.10 version of Mac OS. Are you trying to run this on El Capitan (10.11) or some earlier OS? Please check in that direction. Let us know if this helped.

    Hi!
    I was able to connect to shrewsoft vpn through my prev OS MAvericks now i have upgraded to Capitan, and i am unable to connect.I have followed all the steps mentioned above. I am able to launch successfully access manager, but after i enter my 1st level credentials it just says attached to key daemon but not proceeding further.Its stuck there.

    This article was a tremendous help. I would like to update it with what worked for me if you don’t mind.

    1. Install Xcode from the App Store.
    2. Open Xcode and agree to the license agreement. Close Xcode once it finishes loading.
    3. Open up Terminal. Run the following commands:

    brew install Caskroom/cask/tuntap

    brew install shrewsoft-vpn-client

    sudo brew services start shrewsoft-vpn-client

    brew linkapps shrewsoft-vpn-client

    Apologies, forgot to mention. This worked with the most current version, El Capitan.

    Thank you, Cody. We will just leave your comment here if you do not mind. That should provide help for people who are looking for alternative recipes. Thank you again.

    Error: No available formula with the name “shrewsoft-vpn-client”
    ==> Searching for similarly named formulae…
    Error: No similarly named formulae found.

    Hi! Could you please share with us a command that results in this error? Thank you.

    $ brew install shrewsoft-vpn-client
    Error: No available formula with the name “shrewsoft-vpn-client”
    ==> Searching for similarly named formulae…
    Error: No similarly named formulae found.
    ==> Searching taps…
    Error: No formulae found in taps.

    Folks, let us check if we have that package “shrewsoft-vpn-client” handy. If the file would be located, we will probably share it for download and install through this website. As it looks like it was removed from brew repository for unknown reasons. Thank you for all the comments and questions.

    Here it is. If you are missing “shrewsoft-vpn-client” package from brew’s repository, you may download and install a copy of the package from our website: http://nubisnovem.com/files/shrewsoft-vpn-client-2.2.1.tbz2
    We will add a note to the recipe post now for you convenient. Thank you for your feedback.

    When i try to run: brew install shrewsoft-vpn-client
    i always get this error massage: CMake Error at /usr/local/Cellar/cmake/3.7.1/share/cmake/Modules/FindQt4.cmake:1318 (message):
    Found unsuitable Qt version “5.7.1” from /usr/local/bin/qmake, this code
    requires Qt 4.x

    I am using, Mac OS X 10.11.6
    Does anybody know how to fix it?

    Please look through other comments. You may need to install a different version of Qt library. There are a few workarounds discussed here.

    Has anyone tried to run more than one tunnel at a time with the Shrew Soft Client? Maybe I have an environmental thing going on, but I don’t get another session spawned when I go to open a second tunnel from the Connection Manager. This does not happen with the Windows client. Ideas welcome.

    GUANG% brew install shrewsoft-vpn-client
    Error: No available formula with the name “shrewsoft-vpn-client”
    ==> Searching for similarly named formulae…
    Error: No similarly named formulae found.
    ==> Searching taps…
    Error: No formulae found in taps.

    when I get the copy what shall I do?

    Thanks for helping

    You can get the shrewsoft-vpn-client using homebrew by tapping homebrew/boneyard and then trying to install

    brew tap homebrew/boneyard

    brew install shrewsoft-vpn-client

    Thanks a bunch, Mr. Watson. We thought the easiest way should have existed to address this unfortunate package demotion.

    I’m trying to install shrewsoft on the latest MacOS Sierra but I’m running into a problem. I’ve followed all steps above to get ruby, hombrew, tun tap etc all installed but when going to install shew it comes up with following error:

    $ brew install shrewsoft-vpn-client
    ==> Auto-updated Homebrew!
    Updated 1 tap (homebrew/core).
    ==> Updated Formulae
    libyaml

    ==> Installing shrewsoft-vpn-client from homebrew/boneyard
    qt: This formula either does not compile or function as expected on macOS
    versions newer than El Capitan due to an upstream incompatibility.
    Error: An unsatisfied requirement failed this build.

    Any ideas what this could be?

    Thank you for your question. That must be because of qt library not available for newer MacOS operating system version. You may look for that separately, or, if we were you, we would try the following sequence in your situation:

    brew tap homebrew/boneyard

    brew install shrewsoft-vpn-client

    Then repeat the normal install in a new terminal session (when brew would default to its regular repository):

    brew install shrewsoft-vpn-client

    Please do let us know what would be outcome of your situation. Thank you.

    ” This formula either does not compile or function as expected on macOS
    versions newer than El Capitan due to an upstream incompatibility.
    Error: An unsatisfied requirement failed this build.”

    There is no solution for Sierra MacOS release available yet. We are truly sorry about that.

    You don’t have to 🙂 Is there another vpn-client for mac os which allows me to import my shrew soft settings (it’s a .vpn format file)?

    thanks for your help!

    Still the same I’m afraid 🙁 , I’ve tried reinstalling everything, installing different versions of Qt and it’s still throwing up the same message. I opened a new terminal session with homebrew as default and still same error 🙁

    Same QT4 problem here.
    At the link below some bad news.
    Any help would be appreciated!
    Thanks

    I was just able to use this workaround on a fresh install of macOS Sierra.

    It appears that despite the message, qt.rb runs fine under Sierra however you just need to comment out the line that calls El Capitan out as the maximum requirement.

    comment out the following line ( line 36 in my case )

    depends_on MaximumMacOSRequirement => :el_capitan

    I would be interested to hear if others have the same experience.

    Thanks a bunch, Kelly. That seems to be obvious, yet very interesting solution. We have not thought of that! We will conduct a test on our freshly installed MacOS Sierra and if that works fine in our setup, we will publish a recipe duly crediting you as the source of the solution! So, other users may enjoy it as well. Thank you again!

    After line 70 in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qt.rb you need to add the following too:
    args = “8.0”

    otherwise, the compiler breaks with qt4 on sierra (on my second mac with el capitan it was no problem).

    Hi. Thanks all for keeping this thread alive.
    I have a fresh install of Sierra and it failed to compile just as described above. So I got this far: I commented out the line Kelly Martin suggested.
    Timothys-MBP:/ tim$ sudo vim /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qt.rb

    Then I ran it again from this point:
    Timothys-MBP:/ tim$ brew install shrewsoft-vpn-client
    ==> Installing shrewsoft-vpn-client from homebrew/boneyard
    ==> Installing dependencies for homebrew/boneyard/shrewsoft-vpn-client: cmake, openssl, qt
    ==> Installing homebrew/boneyard/shrewsoft-vpn-client dependency: cmake
    ==> Downloading https://homebrew.bintray.com/bottles/cmake-3.7.0.sierra.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Pouring cmake-3.7.0.sierra.bottle.tar.gz
    ==> Caveats
    Emacs Lisp files have been installed to:
    /usr/local/share/emacs/site-lisp/cmake
    ==> Summary
    /usr/local/Cellar/cmake/3.7.0: 2,140 files, 29M
    ==> Installing homebrew/boneyard/shrewsoft-vpn-client dependency: openssl
    ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2j.sierra.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Pouring openssl-1.0.2j.sierra.bottle.tar.gz
    ==> Using the sandbox
    ==> Caveats
    A CA file has been bootstrapped using certificates from the SystemRoots
    keychain. To add additional certificates (e.g. the certificates added in
    the System keychain), place .pem files in
    /usr/local/etc/openssl/certs

    and run
    /usr/local/opt/openssl/bin/c_rehash

    This formula is keg-only, which means it was not symlinked into /usr/local.

    Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

    Generally there are no consequences of this for you. If you build your
    own software and it requires this formula, you’ll need to add to your
    build variables:

    LDFLAGS: -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

    Here it got stuck. ^T revealed it was continuing for some time going back and forth between moc clang ruby clang++. it’s been running for over 5 minutes now and I don’t think there’s an end to it.

    After about 30 minutes, it stopped with an error and printed out the last 15 lines of the make file and then this:
    make: *** [sub-plugins-make_default-ordered] Error 2

    you need to patch the /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/qt.rb like shown in https://github.com/Homebrew/homebrew-core/pull/5216 , comment from ilovezfs commented on 25 Sep , klick on link under comment “qt: fix building on Sierra and Xcode 8 by disabling phonon”, add the shown line 74 on right position in these diff-file.

    I had same error and this patch clear the compiling problem:
    make: *** [sub-plugins-make_default-ordered] Error 2

    The patch clear the problem, compiling after patch is possible.

    If you want to see what “brew” is doing, call it with parameters “brew install -v -d shrewsoft-vpn-client” (debug and verbose on). It shows the compiler output.

    Thank you so much for this info – I installed it yesterday on Sierra 10.12.1 just fine (but my brew environment has been set up for some years so it was by no means a clean install).

    I just thought I’d share this with you, obviously only do this if you are happy to put your user name and password into a script…

    Automated Start / Stop from command line:

    PROFILE=MyProfile
    USER=me
    PASS=mypass

    STARTCMD=”/Applications/Shrew*Connect.app/Contents/MacOS/Shrew*”
    # I never could work this out and I was in a hurry!
    #STOPGREP=”Shrew\\ Soft\\ VPN\\ CLient”

    case “$1” in
    start)
    $STARTCMD -r $PROFILE -u $USER -p $PASS -a > /dev/null 2>&1 &
    osascript

      Martin

    The blog completely removed all formatting from that. Try this…

    Hi Martin, how do I use this script? I’m sorry to ask, I’m not much into this stuff, I just wanna use the client on sierra as I did all the time before 🙁 I’d really appreciate your help. Thanx!

    My ShrewSoft VPN had been working just fine and then just yesterday it stopped working, every time I try to connect – I am receiving the following message:

    bringing up tunnel …
    negotiation timout occurred
    tunnel disabled
    detached from key daemon

    It sits on the “brining up tunnel …” line for about 15-20 secs and then times out.

    Any help would be greatly appreciated, I have tried uninstalling and reinstalling several time to no avail.

    I am on OS 10.12.2, on a MacBook Air.

    Thanks in advance,
    Jamie

    Please try usual troubleshooting steps with VPN: reboot your computer, if that does not help power-cycle your router or cable-modem (or other ISP device). Sometimes, VPN session information get stale in router and it is impossible to reestablish the VPN connect without these procedures.

    Thanks for the reply, I have tried rebooting laptop several times, but I have not tried power-cycling the router. I will give that a try and let you know.

    I tried the power-cycling of the router, but it did not work. I am still encountering the same error.

    Reviewing my system log, the following 2 lines keep repeating, over and over…

    Dec 19 20:49:32 Jamies-MacBook-Air com.apple.xpc.launchd[1] (homebrew.mxcl.shrewsoft-vpn-client[35070]): Service exited with abnormal code: 255
    Dec 19 20:49:32 Jamies-MacBook-Air com.apple.xpc.launchd[1] (homebrew.mxcl.shrewsoft-vpn-client): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

    Sorry to hear that. It may be that on your laptop XCode or other development library revision is now not compatible with the binary for the VPN daemon. Please read above comments and try a solution that may work (recompiling the original source code with some code changes may be required).

    This does not seem to work anymore… I get:

    — Configuring incomplete, errors occurred!
    See also “/tmp/shrewsoft-vpn-client-20170108-8646-103cuvb/ike/CMakeFiles/CMakeOutput.log”.
    See also “/tmp/shrewsoft-vpn-client-20170108-8646-103cuvb/ike/CMakeFiles/CMakeError.log”.

    Error: shrewsoft-vpn-client was moved to homebrew-boneyard because it has unfixable issues.
    Please do not file any issues about this. Sorry!

    Please look through other comments. They have moved the VPN package into homebrew-boneyard. There are a few workarounds discussed here.

    I see changes with brew since jan 2017. The depencies against qt now will be install qt5. Shrew needs qt4, compiling against qt5 is not possible. But you can install qt4 with brew like here:
    brew tap cartr/qt4
    brew tap-pin cartr/qt4
    brew install qt
    That alone don’t work for me, shrew install again qt5 himself, which don’t compile shrew. My solution was at last in the .rb-file for shrew (search for this) comment out the depencies against qt (but you need to have an installed qt4 correctly like I show at begin of my comment !). After that, shrew compile correct and linked against qt4 correctly (I removed qt5 completly before compiling).
    Now shrew works perfectly with sierra (with my macbook pro, latest sierra and latest xcode, clean installed in jan 2017 on my macbook pro).

    Thanks a bunch for your comment here! We were glad to see that there is a working scenario for Sierra MacOS release. That should be useful for our readers who are struggling to make the VPN software to work.

    So the solution is:
    brew tap cartr/qt4
    brew tap-pin cartr/qt4
    brew install qt
    brew uninstall qt5
    sudo vim /usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard/shrewsoft-vpn-client.rb
    And comment out this line: # depends_on “qt” if build.with? “gui”
    :wq
    brew install shrewsoft-vpn-client
    brew linkapps shrewsoft-vpn-client
    🙂

    yes tothis, that’s my way too for build shrew and I confirm this.
    Remark: In addition, sometimes you will need switch off the build-in vpn daemon in macos named racoon, maybe the iked (the shrew vpn daemon) will not be working if racoon is running. There’s a graphical gui tool named lingonx for control the launchd (which starts system-wide daemons) or do it with command line (“launchctl”). I saw this effect if you ever use the macos build-in vpn-support. Check this out, on one of my macs was this problem real. after stopping racoon shrew’s iked works again correctly.

    I am on a MacBook Air running OS Sierra – I followed all of the steps above in regards qt4 and updating the .rb file as well. I have executed “sudo killall racoon” but I still cannot get Shrewsoft to connect successfully. The message I receive in ShrewSoft is “negotiation timout occurred
    tunnel disabled
    detached from key daemon”

    Additionally, if I look at the Console system.log, I see the following message repeated indefinitely:

    Jan 31 18:25:49 Jamies-MacBook-Air com.apple.xpc.launchd[1] (homebrew.mxcl.shrewsoft-vpn-client[48116]): Service exited with abnormal code: 255
    Jan 31 18:25:49 Jamies-MacBook-Air com.apple.xpc.launchd[1] (homebrew.mxcl.shrewsoft-vpn-client): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

    Any assistance you could provide would be greatly appreciated. Thanks in advance.
    jmkurt

    I got the same timeout occured 🙁

    Works like a charm!

    The only thing I have to to before is

    This comment thread is the best answer I’ve found to this problem in about an hour. This needs to be duplicated somewhere.

    Sorry to be a pain, but really am a novice at this. I am the only one who has a mac at work and they are telling me I have to go to a PC as we need to use Shrew for VPN access for some new software.

    I tried some of the above steps but I can not get it to work.

    Can someone post exact steps to start again and post the exact steps. I am using Sierra MacOS release.

    It would be useful for me too

    Still doesn’t work with boneyard:

    $ brew install shrewsoft-vpn-client
    Error: No available formula with the name “shrewsoft-vpn-client”
    ==> Searching for a previously deleted formula…
    Warning: homebrew/core is shallow clone. To get complete history run:
    git -C “$(brew –repo homebrew/core)” fetch –unshallow

    Error: No previously deleted formula found.
    ==> Searching for similarly named formulae…
    ==> Searching local taps…
    Error: No similarly named formulae found.
    ==> Searching taps…
    ==> Searching taps on GitHub…
    Error: No formulae found in taps.

    Now we have more than one limitations with the shrewsoft-vpn client. Here is a possible way run work with shrew in 10.13 too. First I need to say, I had tested a lot in the last time – but compile the GUI with the old QT4 and Xcode 9 seems to be no more working in any way. BUT, to use the shrew with the command line I have found a way to work in 10.13 too. Problem 1: tap homebrew/boneyard is deprecated, thats fact. I found an old copy of shrewsoft-vpn-client.rb here: https://github.com/Homebrew/homebrew-boneyard/blob/f0f4e1219768afd52d2c6e0d809d7f98ea3ee961/shrewsoft-vpn-client.rb. You need to grab/download these file. So you have the shrewsoft-vpn-client.rb which we need. Problem 2: Shrew-Soft WITH GUI we can’t compile, but WITHOUT GUI (and without the old qt4-stuff) compiling is possible. After Step 1 you need to do: “brew install ./shrewsoft-vpn-client.rb –without-gui” , where ./shrewsoft-vpn-client.rb is the location where you have downloaded or generated the shrewsoft-vpn-client.rb from Step 1. The compiling should be sucessfully running, after this you should in addition do this: “sudo brew services start shrewsoft-vpn-client” . This starts the iked with the launchd, alternatively you can run this with “sudo /usr/local/sbin/iked”. You can start now the shrew in a terminal session with the following: ‘ikec -r “VPNFILE.vpn” -a’ , where the file VPNFILE.vpn is located under ˜/.ike/sites/VPNFILE.vpn in your home-folder. It’s a text file, but without GUI you cannot really edit the settings of these file. That’s at the moment the limitation. A more comfortable option can be this: https://github.com/mejmo/mac-shrew . It’s a small gui for manage the connection more comfortable. Please read there the ISSUES-section, there are important notices, if it not will be running. That’s the situation at the moment.

    In addition of my last comment here is an notice: Better you edit the shrewsoft-vpn-client.rb and comment out the line ‘depends_on “qt” if build.with? “gui”‘ with the ‘#’ at begin of line. This bypassing the qt-check. With the command line tool ikec I have sucessfully a working shrew-vpn-client with 10.12.6 on my iMac and 10.13 with my MBP. The configuration files I modify with my windows-version of shrew and transfer after edit to the Macs ˜/.ike/sites/[Name_of_VPN_file].vpn . Not so comfortable, but a possible way at the moment. You can edit the .vpn-Files, these are simply text-files with a specific syntax. The main problem ist generate the password hashes, because it’s not plain text password – it’s hashed. I think really about to program a new gui for shrew-vpn-client – but at moment I haven’t enough time for those. Maybe later – maybe never…
    For me and my work the shrew-soft is an essential and basic tool for me because my work, data exchange between win and mac for the vpn-files (I have over 200 access-files for shrew to work remotely with my customers and I won’t definitively use alternative clients) has high priority. I know other clients like NCP and so on, but after testing the results were not so positive for me and my requirements. Thats fact for me – so there is for me no option at this time.

    YEAH SUCCESS ! From this point now I have again a full-working ShrewSoft-VPN-client with 10.12 and 10.13 too. Please be patient, I will be prepare a complete documentation for this at my company website. Here as comment are not enough opportunities to publish the things you need to do. The point is – you need to compile direct from the sources. But with help of homebrew, we need this for QT4, openssl, cmake. But shrew itself – we need to build from scratch with modified things in the source package. With homebrew I had only success with the command line tools iked and ikec, NOT with the GUI-Tools. It seems to be limitations with homebrew (brew link and sudo-things work there no more) and operating system (writing in some of the system folders are limited now). Fact is, the shrew works with compiling from scratch with 10.12 AND 10.13 too. I will here communicate, if I have my website ready for documentation.

    Источник

    Добавить комментарий

    Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Showexif для mac os
  • Show hidden files finder mac os
  • Shortcuts for mac os x
  • Shareman для mac os
  • Share desktop mac os