-
Install Homebrew from http://brew.sh and make sure it works
-
Install openconnect with stoken support
brew install openconnect --with-stoken
-
Install stoken
brew install stoken
#!/bin/sh | |
while true; do | |
if kextstat | grep -si secure; then kextunload /Library/Extensions/PulseSecureFirewall.kext && date | |
fi | |
sleep 10 | |
done; |
Install Homebrew from http://brew.sh and make sure it works
Install openconnect with stoken support
brew install openconnect --with-stoken
Install stoken
brew install stoken
#!/bin/bash | |
# From https://gist.github.com/moklett/3170636#gistcomment-827700 | |
PATTERN="State:/Network/Service/utun[0-9]+/DNS" | |
REMOVE_RECORD_CMD="" | |
REMOVE_RECORD_MSG="RECORDS TO REMOVE:\n" | |
sudo pkill openconnect | |
RECORDS=`scutil <<EOF | |
list $PATTERN |
This guide helps you build OpenConnect 7.x on OS X. You might want to do this if you want a newer version than the openconnect
package in homebrew provides, or if you want to use libstoken
support (for having an RSA soft token on your machine be used automatically by OpenConnect).
The version of OpenConnect on Homebrew has been updated, and so this whole guide can now be replaced with:
brew install openconnect --with-stoken
brew install stoken
(See the "Using OpenConnect" section below for information about using stoken
to set up soft tokens)