I have installed tor on Ubuntu 16.04. It seems to be running
$> ps aux |grep to debian-+ 1300 0.0 0.2 89504 44416 ? Ss Feb24 0:12 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0
But if I try to tell Firefox to connect to a socks5 proxy via localhost:9150, when I navigate to any page, I get
Firefox is configured to use a proxy server that is refusing connections.
(NOTE: please don't advise me to use a "browser bundle", I want to configure other programs to use tor, Firefox is just a proof-of-life test case.)
Checking the port
$> sudo ss -l | grep tor -w u_str LISTEN 0 128 /var/run/tor/socks 27033 * 0 u_str LISTEN 0 128 /var/run/tor/control 27034 * 0
Looks like tor is listening on a different port, but if I configure Firefox to use 27033 instead of 9150, I get the same error message.
Using this port in Firefox configuration also doesn't work. The file
/etc/tor/torrc contains nothing but comments.
What's going on?