/tor_proxy_mac

Tor proxy for macos - script

Primary LanguageShell

Tor Proxy Setup Script

This bash script automates the setup of a SOCKS proxy using Tor on macOS, utilizing Homebrew.

Prerequisites

  • macOS
  • Homebrew
  • Tor all requirment installed automatically if not present

Installation

  1. Open a terminal window.

  2. 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)"
  3. Follow the on-screen instructions to install Homebrew, Tor, and configure the SOCKS proxy.

Usage

  1. Run the script:

    ./tor-proxy.sh
  2. Follow the prompts to install Homebrew, Tor, and configure the SOCKS proxy.

  3. Choose your network interface when prompted (Wi-Fi or Ethernet).

  4. The script will enable a SOCKS proxy on 127.0.0.1:9050 using the selected network interface.

Disabling the Proxy

To disable the SOCKS proxy, press Ctrl+C in the terminal where the script is running.

Configuration Options

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.