Skip to content

Instantly share code, notes, and snippets.

@tpai
Last active December 19, 2024 06:55
Show Gist options
  • Save tpai/e7717bad169a8401f6ee to your computer and use it in GitHub Desktop.
Save tpai/e7717bad169a8401f6ee to your computer and use it in GitHub Desktop.
use both Tor and Privoxy on Mac OS

1. install

brew install tor
brew install privoxy

2. copy and modify config file

# x86
cp /usr/local/etc/privoxy/config /usr/local/opt/privoxy/sbin/
# arm64
cp /opt/homebrew/etc/privoxy/config /opt/homebrew/opt/privoxy/sbin/
# add the following line into config file, it means forward filtered data to Tor.
forward-socks4a / 127.0.0.1:9050 .

3. launch

# x86
./usr/local/opt/tor/sbin/tor
./usr/local/opt/privoxy/sbin/privoxy
# arm64
./opt/homebrew/opt/tor/sbin/tor
./opt/homebrew/opt/privoxy/sbin/privoxy

4. check if listen

netstat -an | grep 9050
127.0.0.1:9050 LISTEN

netstat -an | grep 8118
127.0.0.1:8118 LISTEN

5. web browser settings

Manually set your proxy configuration, fill HTTP and SSL Proxy column up with "127.0.0.1:8118".

6. try

Ref: Use both Tor and Privoxy

@azhar22k
Copy link

Agree with @Zettt
I Followed followed commands
brew install tor
brew install privoxy
cp /usr/local/etc/privoxy/config /usr/local/opt/privoxy/sbin/

open /usr/local/opt/privoxy/sbin/config
add this following line into config file in the end, it means forward filtered data to Tor.
forward-socks4a / 127.0.0.1:9050 .

cp /usr/local/opt/privoxy/sbin/config $HOME
open /usr/local/opt/tor/bin/tor
open /usr/local/opt/privoxy/sbin/privoxy

@caffeineg
Copy link

I'm also wondering where to place the forward-socks4a / 127.0.0.1:9050

@byaruhaf
Copy link

byaruhaf commented Oct 9, 2017

You uncomment the line you don't need to add a line

@yonatanhf
Copy link

To modify the steps for your Apple Silicon Mac, it needs some path changes, i.e. use /opt/homebrew rather than /usr/local.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment