Post

This will autoconnect and disconnect mullvad on macOS based on white- and blacklisted wifi SSIDs

Make local binary directory if not existent:

mkdir -p ~/.local/bin

Get the script and make it executable:

1
2
wget -O ~/.local/bin/mullvad-wifi-connect-on-demand https://gist.githubusercontent.com/n-stone/d0388cfc3229435ff315a473d76686e6/raw/mullvad-wifi-connect-on-demand
chmod +x ~/.local/bin/mullvad-wifi-connect-on-demand

Get the service, load it and start it:

1
2
3
wget -O ~/Library/LaunchAgents/net.mullvad.wifi-connect-on-demand.plist https://gist.githubusercontent.com/n-stone/d0388cfc3229435ff315a473d76686e6/raw/net.mullvad.wifi-connect-on-demand.plist
launchctl load -w ~/Library/LaunchAgents/net.mullvad.wifi-connect-on-demand.plist
launchctl start net.mullvad.wifi-connect-on-demand.plist

Now Edit your wifi black / white list:

  • in CLI
    1
    2
    
    nano $HOME/.config/mullvad/wifi-white-list.txt
    nano $HOME/.config/mullvad/wifi-black-list.txt
    
  • or use Finder
    1
    
    open $HOME/.config/mullvad
    

Show comments

Gist-Source: autoconnect-and-disconnect-mullvad-on-macOS.md

This post is licensed under CC BY 4.0 by the author.

Trending Tags