This bash script automates the setup of a SOCKS proxy using Tor on macOS, utilizing Homebrew.
-
Open a terminal window.
-
Run the following command to download and execute the script:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/mar0ls/tor_proxy_mac/main/tor-proxy.sh)"
-
Follow the on-screen instructions to install Homebrew, Tor, and configure the SOCKS proxy.
-
Run the script:
./tor-proxy.sh
-
Follow the prompts to install Homebrew, Tor, and configure the SOCKS proxy.
-
Choose your network interface when prompted (Wi-Fi or Ethernet).
-
The script will enable a SOCKS proxy on
127.0.0.1:9050
using the selected network interface.
To disable the SOCKS proxy, press Ctrl+C
in the terminal where the script is running.
You can customize the script by modifying the following parameters:
INTERFACE
: The network interface to use for the proxy (default: Wi-Fi or Ethernet).
Edit these variables directly in the script to suit your preferences.