Skip to content

Instantly share code, notes, and snippets.

@seelengut
seelengut / fix-pulse.sh
Created June 27, 2019 12:41
While Pulse kext keeps crashing mac, run this script as sudo to reduce the risk of having such issue.
#!/bin/sh
while true; do
if kextstat | grep -si secure; then kextunload /Library/Extensions/PulseSecureFirewall.kext && date
fi
sleep 10
done;
@seelengut
seelengut / openconnect.md
Last active March 6, 2019 22:06
Openconnect Config

Install Openconnect and stoken

  1. Install Homebrew from http://brew.sh and make sure it works

  2. Install openconnect with stoken support

    brew install openconnect --with-stoken

  3. 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
@seelengut
seelengut / openconnect_osx_howto.md
Last active October 18, 2018 17:19 — forked from darrenpmeyer/openconnect_osx_howto.md
Building OpenConnect for OS X with stoken and GnuTLS

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).

Shortcut

The version of OpenConnect on Homebrew has been updated, and so this whole guide can now be replaced with:

  1. Install Homebrew from http://brew.sh and make sure it works
  2. brew install openconnect --with-stoken
  3. brew install stoken (See the "Using OpenConnect" section below for information about using stoken to set up soft tokens)