Skip to content

Instantly share code, notes, and snippets.

@enilsen16
Last active September 28, 2018 17:58
Show Gist options
  • Save enilsen16/1948623f08baa928049f to your computer and use it in GitHub Desktop.
Save enilsen16/1948623f08baa928049f to your computer and use it in GitHub Desktop.

Revisions

  1. Erik Nilsen created this gist Jan 14, 2016.
    6 changes: 6 additions & 0 deletions enable_tor.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash
    INTERFACE=Wi-Fi
    networksetup -setsocksfirewallproxy $INTERFACE 127.0.0.1 9050 off
    networksetup -setsocksfirewallproxystate $INTERFACE on
    tor
    networksetup -setsocksfirewallproxystate $INTERFACE off