0

When you run Tor Browser you can connect applications through its proxy on port 9150. I have done this for a small command line script to check the uptime status of some web service. I don't want my IP to show, so I use tor.

I wanted to run the tor command (installed with brew install tor on mac) instead of having to run the Tor Browser, but for some reason when using tor with the config below I (and switching to 9050 in my script) only get 403 Forbidden errors whereas with the proxy created by Tor Browser I don't get 403 Forbidden that often. So there must be some configuration difference, but using the Tor Browser's torrc-default doesn't solve my issue.

Can someone point me in the right direction?

My torrc:

# torrc-defaults for Tor Browser
#
# DO NOT EDIT THIS FILE
#
# This file is distributed with Tor Browser and SHOULD NOT be modified (it
# may be overwritten during the next Tor Browser update). To customize your
# Tor configuration, shut down Tor Browser and edit the torrc file.
#
# If non-zero, try to write to disk less frequently than we would otherwise.
AvoidDiskWrites 1
# Where to send logging messages.  Format is minSeverity[-maxSeverity]
# (stderr|stdout|syslog|file FILENAME).
Log notice stdout
## obfs4proxy configuration
ClientTransportPlugin obfs2,obfs3,obfs4,scramblesuit exec PluggableTransports/obfs4proxy

## The port on which Tor will listen for local connections from Tor
## controller applications, as documented in control-spec.txt.
ControlPort 9051
## If you enable the controlport, be sure to enable one of these
## authentication methods, to prevent attackers from accessing it.
HashedControlPassword 16:SOMEHASHOFSOMEPASSWORD
#CookieAuthentication 1

## meek configuration
ClientTransportPlugin meek exec PluggableTransports/meek-client-torbrowser -- PluggableTransports/meek-client

## snowflake configuration
ClientTransportPlugin snowflake exec PluggableTransports/snowflake-client -url https://snowflake-broker.azureedge.net/ -front ajax.aspnetcdn.com -ice stun:stun.l.google.com:19302

As you can see I have opened up the control port in order to telnet to it to get a new identity whenever I get a 403 (I only get 403, so I constantly try new identities).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.