Hello,
I have had a bridge up for a few months now, running off of a FreedomBox. There is a GUI which helps complete a basic setup very easily. I haven’t done much with it except take a peek from time to time in nyx
, and once a day or so I’ll check on Relay Search to make sure it is still up and being useful.
It doesn’t do much; it’s just a little single-board computer with a gig of RAM. On the metrics page it shows my bandwidth is usually around a modest 1.5 MiB/s or so (the limit in my configuration is much higher, but I don’t think the box can support a lot of traffic–I’m not sure to be honest). It seems really low, but I have no idea how normal or abnormal the bandwidth is with this kind of hardware.
Last week at some point I had connected to the box over SSH and had nyx
running when I noticed there were a lot of systemd
error messages showing up. After a little investigation I realized the error messages are basically constant. The CPU usage is now running very high, pretty much at all time because it is getting spammed with these errors.
Here are some examples from the journal from this morning (these are typical, so similar messages are being written to the journal at all times every day):
-- Journal begins at Wed 2022-08-17 17:22:54 EDT, ends at Sat 2022-10-22 11:43:15 EDT. --
Oct 22 11:42:56 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:56 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:56 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:54 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:54 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:53 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:53 freedombox Tor-plinth[564]: Your application (using socks4 to port 25461) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:53 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:53 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:50 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:50 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:48 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:48 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:31 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:31 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:19 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:0. Giving up. (waiting for socks info)
Oct 22 11:42:16 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:16 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:08 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:08 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:08 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:06 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:05 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:05 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:05 freedombox Tor-plinth[564]: Your application (using socks4 to port 25461) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:04 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:04 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:04 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:02 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:02 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:01 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:42:00 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:42:00 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:42:00 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:41:59 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:59 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:59 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:41:58 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:58 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:43 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:43 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:39 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:39 freedombox Tor-plinth[564]: Your application (using socks4 to port 25461) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:37 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:37 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:36 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:36 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:30 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:30 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:07 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:07 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:41:02 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:41:02 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:40:58 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:40:58 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:40:27 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:40:24 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:40:24 freedombox Tor-plinth[564]: Your application (using socks4 to port 25461) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:40:24 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:40:24 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:40:24 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:40:24 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:40:23 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:40:23 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Oct 22 11:40:23 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:40:21 freedombox Tor-plinth[564]: Fetching socks handshake failed. Closing.
Oct 22 11:40:21 freedombox Tor-plinth[564]: Your application (using socks4 to port 1234) gave Tor a malformed hostname: [scrubbed]. Rejecting the connection.
Here is another recurring set of messages:
Oct 22 11:16:23 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:16:21 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:16:19 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:15:57 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:51 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:13:51 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:13:33 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:13:25 freedombox Tor-plinth[564]: Tried for 130 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:15 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:15 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:15 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:15 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:14 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:14 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:14 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:14 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:14 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:14 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:13 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:13 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:13 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Oct 22 11:13:12 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:12 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:12 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:12 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:12 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:12 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:11 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:13:11 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:11:14 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:11:13 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:11:11 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:11:09 freedombox Tor-plinth[564]: Have tried resolving or connecting to address '[scrubbed]' at 3 different places. Giving up.
Oct 22 11:10:58 freedombox Tor-plinth[564]: Tried for 126 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:10:58 freedombox Tor-plinth[564]: Tried for 123 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:10:54 freedombox Tor-plinth[564]: Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up.
Oct 22 11:10:50 freedombox Tor-plinth[564]: Tried for 121 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Those are just snippets from the journal; if it would be useful to set up a pastebin with more of the journal I would be happy to do that.
I’ve done some searching around to try to figure out what the problem is, but I haven’t found a good explanation for what is happening. I have restarted the service, restarted the FreedomBox, restarted the gateway, and even uninstalled/reinstalled Tor altogether. Once I had it set back up, it immediately started throwing errors again.
At some point I did add SafeLogging 0
to try to help debug the issue, but it just showed a ton of random-seeming IPs and URLs that are completely meaningless to me (I’m not sure what I am supposed to do with that information). I took it back out so the log would go back to being scrubbed.
Here is my torrc
(nickname and contact info values have been removed):
# This is the tor configuration file for tor instance plinth.
#
# To start/reload/etc this instance, run "systemctl start tor@plinth" (or reload, or..).
# This instance will run as user _tor-plinth; its data directory is /var/lib/tor-instances/plinth.
#
# Append to the list of socks interfaces configured via
# /usr/share/tor/tor-service-defaults-torrc-instances
# which is unix:/run/tor-instances/plinth/socks
Nickname [**********]
ContactInfo [**********]
SocksPort [::]:9050
SocksPort 0.0.0.0:9050
ControlPort 9051
ORPort 9009
ORPort [::]:9009
BridgeRelay 1
ServerTransportPlugin obfs3,obfs4 exec /usr/bin/obfs4proxy
ExtORPort auto
ExitPolicy reject *:*
ExitPolicy reject6 *:*
VirtualAddrNetworkIPv4 10.192.0.0/10
AutomapHostsOnResolve 1
TransPort 127.0.0.1:9040
TransPort [::1]:9040
DNSPort 127.0.0.1:9053
DNSPort [::1]:9053
# Cookie stuff to get nyx working non-root
CookieAuthentication 1
CookieAuthFile /run/tor-instances/plinth/control.authcookie
CookieAuthFileGroupReadable 1
DataDirectoryGroupReadable 1
The bridge does appear to still be up and in use despite all this. At one point I tried connecting to my own bridge with Android Tor and it worked fine.
Thanks for taking a look.