OS X: Using scutils to discover whether/what a web proxy is in use

When looking for ways to discover whether a proxy is being used by OS X, you will be typically pointed to networksetup -getwebproxy However that does not always work – for example when using “Auto Proxy Discovery” and/or “Automatic Proxy Configuration” with a proxy.pac file. scutils –proxy seems to detect all these cases (though itContinue reading “OS X: Using scutils to discover whether/what a web proxy is in use”

Connect Tunnelblick to VPN automatically after wake up

Need: Make sure that VPN is always running except when at work. Partial solution: Make sure VPN is always running with “connect when computer starts” and using an AppleScript to connect after waking up from sleep. Disconnect manually when at work. Future: Check the current location (wifi name? IP?) and do not connect when atContinue reading “Connect Tunnelblick to VPN automatically after wake up”