I try to set up a local redirection through tor as described here: https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy
My system is Ubuntu 15.04. Fresh Tor installation works fine. However, when I add 'DNSPort 53' line to torrc, Tor Browser refuses to launch and quits with an error 'Tor unexpectedly exited. This might be due to a bug in Tor itself...'. What could be the possible cause of this?
torrc looks as follows:
# This file was generated by Tor; if you edit it, comments will not be preserved
# The old torrc file was renamed to torrc.orig.1 or similar, and Tor will ignore it
VirtualAddrNetworkIPv4 10.192.0.0/10
AutomapHostsOnResolve 1
TransPort 9040
DNSPort 53
DataDirectory /home/bart/Desktop/tor-browser_en-US/Browser/TorBrowser/Data/Tor
GeoIPFile /home/bart/Desktop/tor-browser_en-US/Browser/TorBrowser/Data/Tor/geoip
GeoIPv6File /home/bart/Desktop/tor-browser_en-US/Browser/TorBrowser/Data/Tor/geoip6
Now, start-tor-browser -v gives the following result:
./start-tor-browser -v
(process:3177): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Nov 07 11:18:23.001 [notice] Tor v0.2.6.10 (git-cab52fe998909e08) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1p and Zlib 1.2.8.
Nov 07 11:18:23.001 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Nov 07 11:18:23.001 [notice] Read configuration file "/home/bart/Desktop/tor-browser_en-US/Browser/TorBrowser/Data/Tor/torrc-defaults".
Nov 07 11:18:23.001 [notice] Read configuration file "/home/bart/Desktop/tor-browser_en-US/Browser/TorBrowser/Data/Tor/torrc".
Nov 07 11:18:23.004 [notice] Opening Socks listener on 127.0.0.1:9150
Nov 07 11:18:23.004 [notice] Opening DNS listener on 127.0.0.1:53
Nov 07 11:18:23.004 [warn] Could not bind to 127.0.0.1:53: Permission denied
Nov 07 11:18:23.004 [notice] Opening Transparent pf/netfilter listener on 127.0.0.1:9040
Nov 07 11:18:23.004 [notice] Opening Control listener on 127.0.0.1:9151
Nov 07 11:18:23.004 [notice] Closing partially-constructed Socks listener on 127.0.0.1:9150
Nov 07 11:18:23.004 [notice] Closing partially-constructed Transparent pf/netfilter listener on 127.0.0.1:9040
Nov 07 11:18:23.004 [notice] Closing partially-constructed Control listener on 127.0.0.1:9151
Nov 07 11:18:23.004 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Nov 07 11:18:23.004 [err] Reading config failed--see warnings above.
Thanks!
torrc
file? JustDNSPort 53
, or some other lines as well (as specified on that page)? Can you edit your question to include a copy of your completetorrc
?start-tor-browser -v
to give a full set of syslogs. Your error will probably beCould not bind to 127.0.0.1:53: Permission denied
. That is the next place to start from :)