CMoncur / tor_box

An all-inclusive Tor configuration for Raspberry Pi, serves as both a relay and personal Tor network
114 stars 16 forks source link

Tor cannot bind to the address in your script #2

Closed brimur closed 7 years ago

brimur commented 7 years ago

Hi, I am not sure what is happening here but I did a clean install of Raspbian on my Pi and ran your script but it will not start. I get this error...

Dec 01 18:54:06.125 [notice] Tor v0.2.5.12 (git-605987c74c0d2430) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1t and Zlib 1.2.8.
Dec 01 18:54:06.126 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Dec 01 18:54:06.126 [notice] Read configuration file "/etc/tor/torrc".
Dec 01 18:54:06.147 [notice] You configured a non-loopback address '192.168.42.1:53' for DNSPort. This allows everybody on your local network to use your machine as a proxy. Make sure this is what you wanted.
Dec 01 18:54:06.147 [notice] You configured a non-loopback address '192.168.42.1:9040' for TransPort. This allows everybody on your local network to use your machine as a proxy. Make sure this is what you wanted.
Dec 01 18:54:06.155 [notice] You configured a non-loopback address '192.168.42.1:53' for DNSPort. This allows everybody on your local network to use your machine as a proxy. Make sure this is what you wanted.
Dec 01 18:54:06.155 [notice] You configured a non-loopback address '192.168.42.1:9040' for TransPort. This allows everybody on your local network to use your machine as a proxy. Make sure this is what you wanted.
Dec 01 18:54:06.155 [notice] Opening DNS listener on 192.168.42.1:53
Dec 01 18:54:06.155 [warn] Could not bind to 192.168.42.1:53: Cannot assign requested address
Dec 01 18:54:06.156 [notice] Opening Transparent pf/netfilter listener on 192.168.42.1:9040
Dec 01 18:54:06.156 [warn] Could not bind to 192.168.42.1:9040: Cannot assign requested address
Dec 01 18:54:06.157 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Dec 01 18:54:06.157 [err] Reading config failed--see warnings above.

The only ip range I have is on my wifi usb dongle and that is an ip from my wireless router 192.168.1.105

brimur commented 7 years ago

Ah I see now that your script is dependent on the dhcp setup from the adafruit article!