Install killswitch


cli tools brew

killswitch a CLI tool for creating & loading pf rules.

To install on Mac OS X:

$ brew install killswitch

killswitch helps to find the active interfaces and creates a .killswitch.pf.conf file.

Automatically will try to find your VPN peer endpoint IP or you can specify the VPN endpoint IP by using the option -ip

$ killswitch -h
Usage of killswitch:
  -d Disable
      Disable load /etc/pf.conf rules
  -e Enable
        Enable load the pf rules
  -ip IPv4
        VPN peer IPv4
  -p Print
        Print the pf rules
  -v    Print version

If using option -e or -d sudo may be required:

$ sudo killswitch -e

This will load the autogenerated rules located at /tmp/killswitch.pf.conf

comments powered by Disqus