Skip to content

Instantly share code, notes, and snippets.

@tpai
Last active September 22, 2022 11:20
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • 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 with Mac OSX

1. install

brew install tor
brew install privoxy

2. copy and modify config file

cp /usr/local/etc/privoxy/config /usr/local/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

./usr/local/opt/tor/sbin/tor
./usr/local/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

@Zettt
Copy link

Zettt commented Feb 1, 2017

I think there's a typo. It should be:

cp /usr/local/etc/privoxy/config /usr/local/opt/privoxy/sbin/

instead of

cp /usr/local/Cellar/config /usr/local/opt/privoxy/sbin/

Also the instructions where to add the line in config is unclear. Maybe under 5.2. forward-socks4, forward-socks4a, forward-socks5 and forward-socks5t?

@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

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