Git Product home page Git Product logo

onioncat's People

Contributors

rahra avatar shulyaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onioncat's Issues

onioncat 0.4.7 build issue

๐Ÿ‘‹ trying to build the latest release, but run into some build issue. The error log is as below:

build error
  In file included from ./ocat.h:136:
  ./ocatresolv.h:76:13: error: use of undeclared identifier 'PACKETSZ'
     char msg[PACKETSZ];
              ^
  1 error generated.
  make[1]: *** [ocatlog.o] Error 1
  make[1]: *** Waiting for unfinished jobs....
  In file included from ocattun.c:27:
  In file included from ./ocat.h:136:
  ./ocatresolv.h:76:13: error: use of undeclared identifier 'PACKETSZ'
     char msg[PACKETSZ];
              ^
  In file included from ocatv6conv.c:28:
  In file included from ./ocat.h:136:
  ./ocatresolv.h:76:13: error: use of undeclared identifier 'PACKETSZ'
     char msg[PACKETSZ];
              ^
  In file included from ocatroute.c:27:
  In file included from ./ocat.h:136:
  ./ocatresolv.h:76:13: error: use of undeclared identifier 'PACKETSZ'
     char msg[PACKETSZ];
              ^
  1 error generated.

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/2985775159/jobs/4787102904
relates to Homebrew/homebrew-core#109579

no route to destination ff02::1:3, dropping frame

Hello! I want to try onioncat in a windows 7 VMware virtual machine. To set up onioncat, I used this instruction: https://www.onioncat.org/2019/08/onioncat-on-windows/.

I installed the TAP adapter from here: http://build.openvpn.net/downloads/releases/tap-windows-9.24.2-I601-Win7.exe
Rename adapter as "taplan".

Configured TOR:

DataDirectory C:\ProgramData\tor\Data\Tor
GeoIPFile C:\ProgramData\tor\Data\Torr\geoip
GeoIPv6File C:\ProgramData\tor\Data\Tor\geoip6
Log notice file C:\ProgramData\tor\Data\Tor\notice.log
#Socks5Proxy 127.0.0.1:8119
HTTPTunnelPort 8118

HiddenServiceDir C:\ProgramData\tor\Site\onioncat_hsv2
HiddenServiceVersion 2
HiddenServicePort 8060 127.0.0.1:8060
HiddenServiceDir C:\ProgramData\tor\Site\onioncat_hsv3
HiddenServiceVersion 3
HiddenServicePort 8060 127.0.0.1:8060

SocksListenAddress 0.0.0.0
SocksPort 0.0.0.0:9999
SocksPort 0.0.0.0:9150
#SocksPolicy accept 10.0.0.0/8
#SocksPolicy accept 192.0.0.0/8
#SocksPolicy accept 127.0.0.0/8
#SocksPolicy reject *

I downloaded and unpacked onioncat, launched it with the following parameters in cmd:
"%cd%\ocat_debug.exe" -L ocat.log -4 -t 9150 -U aqoidrlyym3gpntr.onion

But my adapter is not getting the address and apparently the routes are not working, what am I doing wrong?
ocat.log: https://gist.github.com/opiums9/7410ba700bd179d57a0d2c3ad643b9af

new branches

what branches to test next ? direct_connect or in6_ifreq ?

IP address configuration failure on Windows 10

OnionCat does not configure IP addresses correctly on Win10

Symptoms:

ping fd87:d87e:eb43:4506:3bbb:9faf:5877:4319

Pinging fd87:d87e:eb43:4506:3bbb:9faf:5877:4319 with 32 bytes of data:
PING: transmit failed. General failure. 
PING: transmit failed. General failure.
PING: transmit failed. General failure.
PING: transmit failed. General failure.

Cause:

OnionCat tries to add a route to Windows 10 for the IPv6 addresses, however, no route is needed due to all addresses being in the same subnet. Correct approach would be to specify the subnet with the IP address setting.

I'll submit a PR soon with the changes.

Torifying Wireguard

Hi, I'm interested in the use-cases that onioncat looks to address. I was just wondering if you've ever considered using torify plus wireguard (or openvpn for that matter) as means to achieve the same result?

The "simple" implementation might involve having the server have a clearnet IP address, and the traffic come out of Tor Exit Nodes. The "advanced" implementation would be of course to hide all IP addresses by using Tor Hidden Services, which would make the traffic never leave the Tor network and I guess would increase network speeds.

Here's an example using wireguard + shadowsocks. It's not tor but it's a SOCKS proxy, which tor provides.

Looking forward to hearing your thoughts.

Link to windows precompiled onioncat is dead

The link @ cypherpunk.at for the Windows precompiled Onioncat is dead. I'd like to mirror a host to it, if you'd permit. Otherwise, we can have it on github as well along with the compilation script and dependencies? Thanks.

onioncat segfaults within ident_loopback() on receiving traffic debian 9.x and 10.x

onioncat segfaults within ident_loopback() when getting traffic from another onioncat address, testing with ping6

Server-1 attempting to ping Server-2's onioncat address

[root@server-1(~)]> ping6 fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932
PING fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932(fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932) 56 data bytes
^C
--- fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932 ping statistics ---
20 packets transmitted, 0 received, 100% packet loss, time 19467ms

Server 2 where the onion cat crashes

[root@server-2(~/onioncat)]> gdb --args ocat -B g23eug3elvodqkjs.onion
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ocat...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/bin/ocat -B g23eug3elvodqkjs.onion
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Wed, 26 Feb 2020 11:16:20.880 -0700 [0:main      : debug] _init_ thread 0
Wed, 26 Feb 2020 11:16:20.882 -0700 [0:main      : debug] thread detached
Wed, 26 Feb 2020 11:16:20.882 -0700 [0:main      : debug] argv[2] = "g23eug3elvodqkjs.onion"
Wed, 26 Feb 2020 11:16:20.883 -0700 [0:main      :  info] onioncat 0.3.4a (c) Bernhard R. Fischer (OnionCat mode)
Wed, 26 Feb 2020 11:16:20.883 -0700 [0:main      : debug] opening tun "/dev/net/tun"
Wed, 26 Feb 2020 11:16:20.883 -0700 [0:main      : debug] tun base config
Wed, 26 Feb 2020 11:16:20.885 -0700 [0:main      : debug] trying to find ifname
Wed, 26 Feb 2020 11:16:20.885 -0700 [0:main      : debug] ifname already set: "tun0"
Wed, 26 Feb 2020 11:16:20.885 -0700 [0:main      : debug] setting up IPv6 address
Wed, 26 Feb 2020 11:16:20.885 -0700 [0:main      :  info] setting interface IPv6 address fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932/48
Wed, 26 Feb 2020 11:16:20.885 -0700 [0:main      : debug] calling ioctl(SIOCSIFADDR)
Wed, 26 Feb 2020 11:16:20.885 -0700 [0:main      :  info] bringing up interface
Wed, 26 Feb 2020 11:16:20.886 -0700 [0:main      :  info] IPv6 address fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932
Wed, 26 Feb 2020 11:16:20.886 -0700 [0:main      :  info] TUN/TAP device tun0
Wed, 26 Feb 2020 11:16:20.886 -0700 [0:main      : debug] tun frameheader v6 = 0x000086dd, v4 = 0x00000800
Wed, 26 Feb 2020 11:16:20.886 -0700 [0:main      : debug] reallocating sockaddr list to 1 elements
Wed, 26 Feb 2020 11:16:20.886 -0700 [0:main      : debug] allocating sockaddr mem for "127.0.0.1:8060"
Wed, 26 Feb 2020 11:16:20.886 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:20.886 -0700 [0:main      : debug] starting [receiver]
[New Thread 0x7ffff7fed700 (LWP 20947)]
Wed, 26 Feb 2020 11:16:20.887 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:20.889 -0700 [0:main      : debug] starting [acceptor]
Wed, 26 Feb 2020 11:16:20.890 -0700 [1:receiver  : debug] _init_ thread 1
Wed, 26 Feb 2020 11:16:20.890 -0700 [1:receiver  : debug] calling thread entry
Wed, 26 Feb 2020 11:16:20.891 -0700 [1:receiver  : debug] timeout 11.820209
Wed, 26 Feb 2020 11:16:20.891 -0700 [1:receiver  : debug] selecting (maxfd = 5)
[New Thread 0x7ffff7fac700 (LWP 20949)]
Wed, 26 Feb 2020 11:16:20.894 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:20.894 -0700 [0:main      : debug] starting [cleaner]
Wed, 26 Feb 2020 11:16:20.894 -0700 [2:acceptor  : debug] _init_ thread 2
Wed, 26 Feb 2020 11:16:20.894 -0700 [2:acceptor  : debug] calling thread entry
Wed, 26 Feb 2020 11:16:20.895 -0700 [2:acceptor  : debug] create listener
Wed, 26 Feb 2020 11:16:20.895 -0700 [2:acceptor  : debug] created listener, fd = 7
Wed, 26 Feb 2020 11:16:20.895 -0700 [2:acceptor  : debug] set_thread_ready()
Wed, 26 Feb 2020 11:16:20.896 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:20.896 -0700 [2:acceptor  : debug] timeout 10.266356
Wed, 26 Feb 2020 11:16:20.897 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
[New Thread 0x7ffff7f6b700 (LWP 20950)]
Wed, 26 Feb 2020 11:16:20.897 -0700 [0:main      : debug] getting user info for "tor"
Wed, 26 Feb 2020 11:16:20.899 -0700 [3:cleaner   : debug] _init_ thread 3
Wed, 26 Feb 2020 11:16:20.901 -0700 [3:cleaner   : debug] calling thread entry
Wed, 26 Feb 2020 11:16:20.918 -0700 [0:main      :warning] can't get information for user "tor": "user not found", defaulting to uid 65534
Wed, 26 Feb 2020 11:16:20.918 -0700 [0:main      :notice] disabling connect log
Wed, 26 Feb 2020 11:16:20.918 -0700 [0:main      :  info] running as root, changing uid/gid to (unknown) (uid 65534/gid 65534)
Wed, 26 Feb 2020 11:16:20.919 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] select returned: "Interrupted system call"
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] timeout 10.800758
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:20.919 -0700 [1:receiver  :   err] select encountered error: "Interrupted system call", restarting
Wed, 26 Feb 2020 11:16:20.919 -0700 [1:receiver  : debug] timeout 10.328056
Wed, 26 Feb 2020 11:16:20.919 -0700 [1:receiver  : debug] selecting (maxfd = 5)
Wed, 26 Feb 2020 11:16:20.919 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] select returned: "Interrupted system call"
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] timeout 11.828633
Wed, 26 Feb 2020 11:16:20.919 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:20.919 -0700 [1:receiver  :   err] select encountered error: "Interrupted system call", restarting
Wed, 26 Feb 2020 11:16:20.919 -0700 [1:receiver  : debug] timeout 10.882212
Wed, 26 Feb 2020 11:16:20.919 -0700 [1:receiver  : debug] selecting (maxfd = 5)
Wed, 26 Feb 2020 11:16:20.919 -0700 [0:main      : debug] uid/gid = 65534/65534
Wed, 26 Feb 2020 11:16:20.919 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:20.919 -0700 [0:main      : debug] starting [connector]
[New Thread 0x7ffff7f2a700 (LWP 20957)]
Wed, 26 Feb 2020 11:16:20.919 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:20.919 -0700 [0:main      : debug] starting [controller]
Wed, 26 Feb 2020 11:16:20.920 -0700 [4:connector : debug] _init_ thread 4
Wed, 26 Feb 2020 11:16:20.920 -0700 [4:connector : debug] calling thread entry
Wed, 26 Feb 2020 11:16:20.920 -0700 [4:connector : debug] timeout 11.891425
Wed, 26 Feb 2020 11:16:20.920 -0700 [4:connector : debug] selecting (maxfd = 8)
[New Thread 0x7ffff7ee9700 (LWP 20958)]
Wed, 26 Feb 2020 11:16:20.921 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:20.921 -0700 [0:main      : debug] starting [lloopback]
Wed, 26 Feb 2020 11:16:20.921 -0700 [5:controller: debug] _init_ thread 5
Wed, 26 Feb 2020 11:16:20.921 -0700 [5:controller: debug] calling thread entry
Wed, 26 Feb 2020 11:16:20.921 -0700 [5:controller: debug] create listener
Wed, 26 Feb 2020 11:16:20.921 -0700 [5:controller: debug] created listener, fd = 10
Wed, 26 Feb 2020 11:16:20.922 -0700 [5:controller: debug] create listener
Wed, 26 Feb 2020 11:16:20.922 -0700 [5:controller: debug] created listener, fd = 11
Wed, 26 Feb 2020 11:16:20.922 -0700 [5:controller: debug] set_thread_ready()
Wed, 26 Feb 2020 11:16:20.923 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:16:20.923 -0700 [5:controller: debug] timeout 11.632273
Wed, 26 Feb 2020 11:16:20.923 -0700 [5:controller: debug] selecting (maxfd = 11)
[New Thread 0x7ffff7ea8700 (LWP 20961)]
Wed, 26 Feb 2020 11:16:20.924 -0700 [0:main      : debug] adding feed:beef route
Wed, 26 Feb 2020 11:16:20.924 -0700 [0:main      : debug] installing signal handler
Wed, 26 Feb 2020 11:16:20.924 -0700 [0:main      :  info] starting packet forwarder
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:20.925 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:20.925 -0700 [6:lloopback : debug] _init_ thread 6
Wed, 26 Feb 2020 11:16:20.925 -0700 [6:lloopback : debug] calling thread entry
Wed, 26 Feb 2020 11:16:20.925 -0700 [6:lloopback : debug] initializing dead_beef_responder
Wed, 26 Feb 2020 11:16:20.926 -0700 [6:lloopback : debug] waiting for [acceptor] to become ready
Wed, 26 Feb 2020 11:16:20.926 -0700 [6:lloopback : debug] [acceptor] ready
Wed, 26 Feb 2020 11:16:20.926 -0700 [6:lloopback : debug] connecting...
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] select returned 1 fds ready
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] checking fd 7 (maxfd = 1, i = 0)
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] accepting connection on 7
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  :  info] connection 13 [0] accepted on listener 7 from 127.0.0.1 port 52126
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  :  info] inserting peer fd 13 to active peer list
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] O_NONBLOCK currently is 0
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] waking up socket_receiver
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] timeout 10.237248
Wed, 26 Feb 2020 11:16:20.926 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:20.926 -0700 [1:receiver  : debug] timeout 11.748531
Wed, 26 Feb 2020 11:16:20.926 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:16:20.926 -0700 [6:lloopback : debug] starting loopback_handler
Wed, 26 Feb 2020 11:16:20.927 -0700 [6:lloopback : debug] clearing unidirectional mode and sending packet
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] reading from 13
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] received 40 bytes on 13
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] identified IPv6 packet
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] packet seems to be keepalive
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  :  info] incoming connection on 13 from fd87:d87e:eb43::dead:beef is now identified
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] writing to tun 4 framesize 40 + 4
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] fragbuf empty
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] timeout 11.052077
Wed, 26 Feb 2020 11:16:20.927 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:16:20.927 -0700 [6:lloopback : debug] sent 40 of 40 bytes to fd 12
Wed, 26 Feb 2020 11:16:20.927 -0700 [6:lloopback : debug] resetting unidirectional mode to 1 and setting peer parameters
Wed, 26 Feb 2020 11:16:20.927 -0700 [6:lloopback : debug] set_thread_ready()
Wed, 26 Feb 2020 11:16:20.927 -0700 [6:lloopback :  info] loopback_handler ready listening on fd87:d87e:eb43::dead:beef
Wed, 26 Feb 2020 11:16:20.927 -0700 [6:lloopback : debug] starting loopback loop on fd 12
Wed, 26 Feb 2020 11:16:20.928 -0700 [6:lloopback : debug] selecting in fd 12
Wed, 26 Feb 2020 11:16:21.326 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:21.326 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:21.326 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:30.919 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:31.174 -0700 [2:acceptor  : debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:31.174 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:31.174 -0700 [2:acceptor  : debug] timeout 10.735432
Wed, 26 Feb 2020 11:16:31.174 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:31.990 -0700 [1:receiver  : debug] timeout 11.715267
Wed, 26 Feb 2020 11:16:31.990 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:16:32.561 -0700 [5:controller: debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:32.562 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:16:32.562 -0700 [5:controller: debug] timeout 11.501441
Wed, 26 Feb 2020 11:16:32.562 -0700 [5:controller: debug] selecting (maxfd = 11)
Wed, 26 Feb 2020 11:16:32.824 -0700 [4:connector : debug] select returned 0
Wed, 26 Feb 2020 11:16:32.824 -0700 [4:connector : debug] timeout 11.306705
Wed, 26 Feb 2020 11:16:32.824 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:16:37.253 -0700 [2:acceptor  : debug] select returned 1 fds ready
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  : debug] checking fd 7 (maxfd = 1, i = 0)
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  : debug] accepting connection on 7
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  :  info] connection 14 [0] accepted on listener 7 from 127.0.0.1 port 52128
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  :  info] inserting peer fd 14 to active peer list
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  : debug] O_NONBLOCK currently is 0
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  : debug] waking up socket_receiver
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  : debug] timeout 11.889519
Wed, 26 Feb 2020 11:16:37.254 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:37.254 -0700 [1:receiver  : debug] timeout 11.229205
Wed, 26 Feb 2020 11:16:37.254 -0700 [1:receiver  : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:16:38.540 -0700 [1:receiver  : debug] reading from 14
Wed, 26 Feb 2020 11:16:38.540 -0700 [1:receiver  : debug] received 144 bytes on 14
Wed, 26 Feb 2020 11:16:38.540 -0700 [1:receiver  : debug] identified IPv6 packet
Wed, 26 Feb 2020 11:16:38.540 -0700 [1:receiver  : debug] packet seems to be keepalive
Wed, 26 Feb 2020 11:16:38.540 -0700 [1:receiver  : debug] found peer to myself

Thread 2 "ocat" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7fed700 (LWP 20947)]
0x0000555555558cfb in ident_loopback ()
(gdb) bt
#0  0x0000555555558cfb in ident_loopback ()
#1  0x00005555555592b8 in socket_receiver ()
#2  0x000055555555acc1 in thread_run ()
#3  0x00007ffff7bc34a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007ffff7905d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) quit
A debugging session is active.

        Inferior 1 [process 20942] will be killed.

Quit anyway? (y or n) y

[root@server-2(~/onioncat)]>

Server-1's onioncat

[root@server-1(~/onioncat)]> gdb --args ocat -B 6lkjqrqysdqpkn34.onion
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ocat...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/local/bin/ocat -B 6lkjqrqysdqpkn34.onion
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Wed, 26 Feb 2020 11:16:18.274 -0700 [0:main      : debug] _init_ thread 0
Wed, 26 Feb 2020 11:16:18.275 -0700 [0:main      : debug] thread detached
Wed, 26 Feb 2020 11:16:18.275 -0700 [0:main      : debug] argv[2] = "6lkjqrqysdqpkn34.onion"
Wed, 26 Feb 2020 11:16:18.276 -0700 [0:main      :  info] onioncat 0.3.4a (c) Bernhard R. Fischer (OnionCat mode)
Wed, 26 Feb 2020 11:16:18.276 -0700 [0:main      : debug] opening tun "/dev/net/tun"
Wed, 26 Feb 2020 11:16:18.276 -0700 [0:main      : debug] tun base config
Wed, 26 Feb 2020 11:16:18.277 -0700 [0:main      : debug] trying to find ifname
Wed, 26 Feb 2020 11:16:18.278 -0700 [0:main      : debug] ifname already set: "tun0"
Wed, 26 Feb 2020 11:16:18.278 -0700 [0:main      : debug] setting up IPv6 address
Wed, 26 Feb 2020 11:16:18.278 -0700 [0:main      :  info] setting interface IPv6 address fd87:d87e:eb43:f2d4:9846:1890:e0f5:377c/48
Wed, 26 Feb 2020 11:16:18.278 -0700 [0:main      : debug] calling ioctl(SIOCSIFADDR)
Wed, 26 Feb 2020 11:16:18.278 -0700 [0:main      :  info] bringing up interface
Wed, 26 Feb 2020 11:16:18.278 -0700 [0:main      :  info] IPv6 address fd87:d87e:eb43:f2d4:9846:1890:e0f5:377c
Wed, 26 Feb 2020 11:16:18.279 -0700 [0:main      :  info] TUN/TAP device tun0
Wed, 26 Feb 2020 11:16:18.279 -0700 [0:main      : debug] tun frameheader v6 = 0x000086dd, v4 = 0x00000800
Wed, 26 Feb 2020 11:16:18.279 -0700 [0:main      : debug] reallocating sockaddr list to 1 elements
Wed, 26 Feb 2020 11:16:18.279 -0700 [0:main      : debug] allocating sockaddr mem for "127.0.0.1:8060"
Wed, 26 Feb 2020 11:16:18.279 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:18.281 -0700 [0:main      : debug] starting [receiver]
[New Thread 0x7ffff7fed700 (LWP 20995)]
Wed, 26 Feb 2020 11:16:18.283 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:18.283 -0700 [0:main      : debug] starting [acceptor]
Wed, 26 Feb 2020 11:16:18.283 -0700 [1:receiver  : debug] _init_ thread 1
Wed, 26 Feb 2020 11:16:18.285 -0700 [1:receiver  : debug] calling thread entry
Wed, 26 Feb 2020 11:16:18.285 -0700 [1:receiver  : debug] timeout 10.312054
Wed, 26 Feb 2020 11:16:18.286 -0700 [1:receiver  : debug] selecting (maxfd = 5)
[New Thread 0x7ffff7fac700 (LWP 20996)]
Wed, 26 Feb 2020 11:16:18.286 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:18.286 -0700 [0:main      : debug] starting [cleaner]
Wed, 26 Feb 2020 11:16:18.287 -0700 [2:acceptor  : debug] _init_ thread 2
Wed, 26 Feb 2020 11:16:18.290 -0700 [2:acceptor  : debug] calling thread entry
Wed, 26 Feb 2020 11:16:18.290 -0700 [2:acceptor  : debug] create listener
Wed, 26 Feb 2020 11:16:18.290 -0700 [2:acceptor  : debug] created listener, fd = 7
Wed, 26 Feb 2020 11:16:18.291 -0700 [2:acceptor  : debug] set_thread_ready()
Wed, 26 Feb 2020 11:16:18.293 -0700 [2:acceptor  : debug] [New Thread 0x7ffff7f6b700 (LWP 20998)]
setting up fd_set
Wed, 26 Feb 2020 11:16:18.293 -0700 [0:main      : debug] getting user info for "tor"
Wed, 26 Feb 2020 11:16:18.295 -0700 [2:acceptor  : debug] timeout 10.298096
Wed, 26 Feb 2020 11:16:18.296 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:18.294 -0700 [3:cleaner   : debug] _init_ thread 3
Wed, 26 Feb 2020 11:16:18.296 -0700 [3:cleaner   : debug] calling thread entry
Wed, 26 Feb 2020 11:16:18.315 -0700 [0:main      :warning] can't get information for user "tor": "user not found", defaulting to uid 65534
Wed, 26 Feb 2020 11:16:18.315 -0700 [0:main      :notice] disabling connect log
Wed, 26 Feb 2020 11:16:18.315 -0700 [0:main      :  info] running as root, changing uid/gid to (unknown) (uid 65534/gid 65534)
Wed, 26 Feb 2020 11:16:18.316 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:18.316 -0700 [2:acceptor  : debug] select returned: "Interrupted system call"
Wed, 26 Feb 2020 11:16:18.316 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:18.316 -0700 [2:acceptor  : debug] timeout 11.334501
Wed, 26 Feb 2020 11:16:18.316 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:18.316 -0700 [1:receiver  :   err] select encountered error: "Interrupted system call", restarting
Wed, 26 Feb 2020 11:16:18.316 -0700 [1:receiver  : debug] timeout 11.731617
Wed, 26 Feb 2020 11:16:18.316 -0700 [1:receiver  : debug] selecting (maxfd = 5)
Wed, 26 Feb 2020 11:16:18.316 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:18.317 -0700 [2:acceptor  : debug] select returned: "Interrupted system call"
Wed, 26 Feb 2020 11:16:18.317 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:18.317 -0700 [2:acceptor  : debug] timeout 11.390651
Wed, 26 Feb 2020 11:16:18.317 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:18.317 -0700 [1:receiver  :   err] select encountered error: "Interrupted system call", restarting
Wed, 26 Feb 2020 11:16:18.317 -0700 [1:receiver  : debug] timeout 11.193133
Wed, 26 Feb 2020 11:16:18.317 -0700 [1:receiver  : debug] selecting (maxfd = 5)
Wed, 26 Feb 2020 11:16:18.317 -0700 [0:main      : debug] uid/gid = 65534/65534
Wed, 26 Feb 2020 11:16:18.317 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:18.317 -0700 [0:main      : debug] starting [connector]
[New Thread 0x7ffff7f2a700 (LWP 21007)]
Wed, 26 Feb 2020 11:16:18.317 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:18.317 -0700 [0:main      : debug] starting [controller]
Wed, 26 Feb 2020 11:16:18.317 -0700 [4:connector : debug] _init_ thread 4
Wed, 26 Feb 2020 11:16:18.318 -0700 [4:connector : debug] calling thread entry
Wed, 26 Feb 2020 11:16:18.319 -0700 [4:connector : debug] timeout 10.219980
Wed, 26 Feb 2020 11:16:18.319 -0700 [4:connector : debug] selecting (maxfd = 8)
[New Thread 0x7ffff7ee9700 (LWP 21008)]
Wed, 26 Feb 2020 11:16:18.320 -0700 [0:main      : debug] default thread stack size 8192k, setting to 256k
Wed, 26 Feb 2020 11:16:18.320 -0700 [0:main      : debug] starting [lloopback]
Wed, 26 Feb 2020 11:16:18.320 -0700 [5:controller: debug] _init_ thread 5
Wed, 26 Feb 2020 11:16:18.321 -0700 [5:controller: debug] calling thread entry
Wed, 26 Feb 2020 11:16:18.321 -0700 [5:controller: debug] create listener
Wed, 26 Feb 2020 11:16:18.321 -0700 [5:controller: debug] created listener, fd = 10
Wed, 26 Feb 2020 11:16:18.322 -0700 [5:controller: debug] create listener
Wed, 26 Feb 2020 11:16:18.322 -0700 [5:controller: debug] created listener, fd = 11
Wed, 26 Feb 2020 11:16:18.322 -0700 [5:controller: debug] set_thread_ready()
Wed, 26 Feb 2020 11:16:18.322 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:16:18.322 -0700 [5:controller: debug] timeout 10.818092
Wed, 26 Feb 2020 11:16:18.322 -0700 [5:controller: debug] selecting (maxfd = 11)
[New Thread 0x7ffff7ea8700 (LWP 21009)]
Wed, 26 Feb 2020 11:16:18.323 -0700 [0:main      : debug] adding feed:beef route
Wed, 26 Feb 2020 11:16:18.323 -0700 [0:main      : debug] installing signal handler
Wed, 26 Feb 2020 11:16:18.323 -0700 [0:main      :  info] starting packet forwarder
Wed, 26 Feb 2020 11:16:18.323 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:18.323 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:18.324 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:18.324 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:18.324 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:18.324 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:18.324 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:18.324 -0700 [6:lloopback : debug] _init_ thread 6
Wed, 26 Feb 2020 11:16:18.324 -0700 [6:lloopback : debug] calling thread entry
Wed, 26 Feb 2020 11:16:18.325 -0700 [6:lloopback : debug] initializing dead_beef_responder
Wed, 26 Feb 2020 11:16:18.325 -0700 [6:lloopback : debug] waiting for [acceptor] to become ready
Wed, 26 Feb 2020 11:16:18.325 -0700 [6:lloopback : debug] [acceptor] ready
Wed, 26 Feb 2020 11:16:18.325 -0700 [6:lloopback : debug] connecting...
Wed, 26 Feb 2020 11:16:18.325 -0700 [2:acceptor  : debug] select returned 1 fds ready
Wed, 26 Feb 2020 11:16:18.325 -0700 [2:acceptor  : debug] checking fd 7 (maxfd = 1, i = 0)
Wed, 26 Feb 2020 11:16:18.325 -0700 [2:acceptor  : debug] accepting connection on 7
Wed, 26 Feb 2020 11:16:18.326 -0700 [2:acceptor  :  info] connection 13 [0] accepted on listener 7 from 127.0.0.1 port 36582
Wed, 26 Feb 2020 11:16:18.326 -0700 [2:acceptor  :  info] inserting peer fd 13 to active peer list
Wed, 26 Feb 2020 11:16:18.326 -0700 [2:acceptor  : debug] O_NONBLOCK currently is 0
Wed, 26 Feb 2020 11:16:18.326 -0700 [2:acceptor  : debug] waking up socket_receiver
Wed, 26 Feb 2020 11:16:18.326 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:18.326 -0700 [2:acceptor  : debug] timeout 10.528120
Wed, 26 Feb 2020 11:16:18.326 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:18.326 -0700 [1:receiver  : debug] timeout 11.288485
Wed, 26 Feb 2020 11:16:18.326 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:16:18.326 -0700 [6:lloopback : debug] starting loopback_handler
Wed, 26 Feb 2020 11:16:18.326 -0700 [6:lloopback : debug] clearing unidirectional mode and sending packet
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] reading from 13
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] received 40 bytes on 13
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] identified IPv6 packet
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] packet seems to be keepalive
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  :  info] incoming connection on 13 from fd87:d87e:eb43::dead:beef is now identified
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] writing to tun 4 framesize 40 + 4
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] fragbuf empty
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] timeout 10.201876
Wed, 26 Feb 2020 11:16:18.328 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:16:18.328 -0700 [6:lloopback : debug] sent 40 of 40 bytes to fd 12
Wed, 26 Feb 2020 11:16:18.328 -0700 [6:lloopback : debug] resetting unidirectional mode to 1 and setting peer parameters
Wed, 26 Feb 2020 11:16:18.328 -0700 [6:lloopback : debug] set_thread_ready()
Wed, 26 Feb 2020 11:16:18.328 -0700 [6:lloopback :  info] loopback_handler ready listening on fd87:d87e:eb43::dead:beef
Wed, 26 Feb 2020 11:16:18.328 -0700 [6:lloopback : debug] starting loopback loop on fd 12
Wed, 26 Feb 2020 11:16:18.328 -0700 [6:lloopback : debug] selecting in fd 12
Wed, 26 Feb 2020 11:16:18.457 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:18.457 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:18.457 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:18.461 -0700 [0:main      : debug] received on tunfd 4, framesize 76 + 4
Wed, 26 Feb 2020 11:16:18.461 -0700 [0:main      :   err] no route to destination ff02::16, dropping frame.
Wed, 26 Feb 2020 11:16:18.461 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:28.317 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:28.533 -0700 [1:receiver  : debug] timeout 11.493091
Wed, 26 Feb 2020 11:16:28.533 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:16:28.549 -0700 [4:connector : debug] select returned 0
Wed, 26 Feb 2020 11:16:28.549 -0700 [4:connector : debug] timeout 10.883482
Wed, 26 Feb 2020 11:16:28.549 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:16:28.864 -0700 [2:acceptor  : debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:28.865 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:28.865 -0700 [2:acceptor  : debug] timeout 11.475459
Wed, 26 Feb 2020 11:16:28.865 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:29.145 -0700 [5:controller: debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:29.145 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:16:29.145 -0700 [5:controller: debug] timeout 11.322635
Wed, 26 Feb 2020 11:16:29.145 -0700 [5:controller: debug] selecting (maxfd = 11)
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] queueing new SOCKS connection request
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] signalling connector
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] selecting until socks request pipe gets ready
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] selecting (maxfd = 9)
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] select returned 1
Wed, 26 Feb 2020 11:16:34.774 -0700 [0:main      : debug] writing 64 bytes to fd 9
Wed, 26 Feb 2020 11:16:34.775 -0700 [0:main      : debug] wrote 64 bytes to SOCKS request pipe fd 9
Wed, 26 Feb 2020 11:16:34.775 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:34.775 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:16:34.775 -0700 [4:connector : debug] received 64 bytes on SOCKS request pipe fd 8
Wed, 26 Feb 2020 11:16:34.775 -0700 [4:connector : debug] SOCKS queuing request received
Wed, 26 Feb 2020 11:16:34.775 -0700 [4:connector : debug] queueing new SOCKS connection request
Wed, 26 Feb 2020 11:16:34.775 -0700 [4:connector : debug] creating socket for unconnected SOCKS request
Wed, 26 Feb 2020 11:16:34.775 -0700 [4:connector : debug] O_NONBLOCK currently is 0
Wed, 26 Feb 2020 11:16:34.775 -0700 [4:connector : debug] queueing fd 14 for connect
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector : debug] connection in progress
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector : debug] timeout 11.630919
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector : debug] check socket error
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector : debug] SOCKS_BUFLEN = 1099, NI_MAXHOST = 1025
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector :  info] trying to connect to "g23eug3elvodqkjs.onion" [fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932] on 14
Wed, 26 Feb 2020 11:16:34.776 -0700 [4:connector : debug] doing SOCKS4a handshake
Wed, 26 Feb 2020 11:16:34.777 -0700 [4:connector : debug] SOCKS request sent successfully
Wed, 26 Feb 2020 11:16:34.778 -0700 [4:connector : debug] timeout 11.630693
Wed, 26 Feb 2020 11:16:34.778 -0700 [4:connector : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:16:35.797 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:35.797 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:35.797 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:35.797 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:35.797 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:36.821 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:36.821 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:36.821 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:36.821 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:36.821 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:37.746 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:16:37.746 -0700 [4:connector : debug] SOCKS response received
Wed, 26 Feb 2020 11:16:37.746 -0700 [4:connector :  info] SOCKS connection successfully opened on fd 14
Wed, 26 Feb 2020 11:16:37.746 -0700 [4:connector : debug] activating peer fd 14
Wed, 26 Feb 2020 11:16:37.746 -0700 [4:connector :  info] inserting peer fd 14 to active peer list
Wed, 26 Feb 2020 11:16:37.746 -0700 [4:connector : debug] O_NONBLOCK currently is 800
Wed, 26 Feb 2020 11:16:37.746 -0700 [4:connector : debug] waking up socket_receiver
Wed, 26 Feb 2020 11:16:37.746 -0700 [1:receiver  : debug] timeout 11.214611
Wed, 26 Feb 2020 11:16:37.747 -0700 [1:receiver  : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:16:37.747 -0700 [4:connector : debug] sending 40 bytes keepalive to fd 14
Wed, 26 Feb 2020 11:16:37.747 -0700 [4:connector : debug] freeing SOCKS queue element at 0x7fffe00008e0
Wed, 26 Feb 2020 11:16:37.747 -0700 [4:connector : debug] last entry deleted, breaking loop
Wed, 26 Feb 2020 11:16:37.747 -0700 [4:connector : debug] timeout 11.701893
Wed, 26 Feb 2020 11:16:37.747 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:16:37.845 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:37.845 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:37.846 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:38.317 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:38.869 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:38.869 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:38.869 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:39.893 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:39.893 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:39.893 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:40.341 -0700 [2:acceptor  : debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:40.341 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:40.341 -0700 [2:acceptor  : debug] timeout 10.306512
Wed, 26 Feb 2020 11:16:40.341 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:40.469 -0700 [5:controller: debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:40.469 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:16:40.469 -0700 [5:controller: debug] timeout 10.167696
Wed, 26 Feb 2020 11:16:40.469 -0700 [5:controller: debug] selecting (maxfd = 11)
Wed, 26 Feb 2020 11:16:40.917 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:40.917 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:40.917 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:41.941 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:41.941 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:41.942 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:42.965 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:42.965 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:42.965 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:43.989 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:43.989 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:43.989 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:45.013 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:45.013 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:45.014 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:46.037 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:46.037 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:46.038 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:47.061 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:47.061 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:47.062 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:48.085 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:48.085 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:48.086 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:48.317 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:48.969 -0700 [1:receiver  : debug] timeout 11.109701
Wed, 26 Feb 2020 11:16:48.969 -0700 [1:receiver  : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:16:49.109 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:49.109 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:49.110 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:49.460 -0700 [4:connector : debug] select returned 0
Wed, 26 Feb 2020 11:16:49.461 -0700 [4:connector : debug] timeout 11.950093
Wed, 26 Feb 2020 11:16:49.461 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:16:50.133 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:50.133 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:50.134 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:50.642 -0700 [5:controller: debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:50.642 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:16:50.642 -0700 [5:controller: debug] timeout 10.531628
Wed, 26 Feb 2020 11:16:50.642 -0700 [5:controller: debug] selecting (maxfd = 11)
Wed, 26 Feb 2020 11:16:50.658 -0700 [2:acceptor  : debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:16:50.658 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:16:50.658 -0700 [2:acceptor  : debug] timeout 11.374483
Wed, 26 Feb 2020 11:16:50.658 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:16:51.157 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:51.157 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:51.157 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:52.181 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:52.181 -0700 [0:main      : debug] forwarding 104 bytes to TCP fd 14
Wed, 26 Feb 2020 11:16:52.182 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:52.869 -0700 [1:receiver  : debug] reading from 14
Wed, 26 Feb 2020 11:16:52.870 -0700 [1:receiver  : debug] received 0 bytes on 14
Wed, 26 Feb 2020 11:16:52.870 -0700 [1:receiver  :  info] fd 14 reached EOF, closing.
Wed, 26 Feb 2020 11:16:52.870 -0700 [1:receiver  : debug] closing 14
Wed, 26 Feb 2020 11:16:52.870 -0700 [1:receiver  : debug] going to delete peer at 0x7fffe0000930
Wed, 26 Feb 2020 11:16:52.870 -0700 [1:receiver  : debug] timeout 11.091943
Wed, 26 Feb 2020 11:16:52.870 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:16:53.205 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:53.205 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:53.205 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:53.206 -0700 [0:main      : debug] queueing new SOCKS connection request
Wed, 26 Feb 2020 11:16:53.206 -0700 [0:main      : debug] signalling connector
Wed, 26 Feb 2020 11:16:53.206 -0700 [0:main      : debug] selecting until socks request pipe gets ready
Wed, 26 Feb 2020 11:16:53.206 -0700 [0:main      : debug] selecting (maxfd = 9)
Wed, 26 Feb 2020 11:16:53.206 -0700 [0:main      : debug] select returned 1
Wed, 26 Feb 2020 11:16:53.206 -0700 [0:main      : debug] writing 64 bytes to fd 9
Wed, 26 Feb 2020 11:16:53.206 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:16:53.206 -0700 [4:connector : debug] received 64 bytes on SOCKS request pipe fd 8
Wed, 26 Feb 2020 11:16:53.206 -0700 [4:connector : debug] SOCKS queuing request received
Wed, 26 Feb 2020 11:16:53.206 -0700 [4:connector : debug] queueing new SOCKS connection request
Wed, 26 Feb 2020 11:16:53.206 -0700 [4:connector : debug] creating socket for unconnected SOCKS request
Wed, 26 Feb 2020 11:16:53.206 -0700 [4:connector : debug] O_NONBLOCK currently is 0
Wed, 26 Feb 2020 11:16:53.206 -0700 [4:connector : debug] queueing fd 14 for connect
Wed, 26 Feb 2020 11:16:53.207 -0700 [4:connector : debug] connection in progress
Wed, 26 Feb 2020 11:16:53.207 -0700 [4:connector : debug] timeout 11.055709
Wed, 26 Feb 2020 11:16:53.207 -0700 [4:connector : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:16:53.207 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:16:53.207 -0700 [4:connector : debug] check socket error
Wed, 26 Feb 2020 11:16:53.207 -0700 [4:connector : debug] SOCKS_BUFLEN = 1099, NI_MAXHOST = 1025
Wed, 26 Feb 2020 11:16:53.207 -0700 [4:connector :  info] trying to connect to "g23eug3elvodqkjs.onion" [fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932] on 14
Wed, 26 Feb 2020 11:16:53.208 -0700 [4:connector : debug] doing SOCKS4a handshake
Wed, 26 Feb 2020 11:16:53.208 -0700 [4:connector : debug] SOCKS request sent successfully
Wed, 26 Feb 2020 11:16:53.208 -0700 [4:connector : debug] timeout 10.141408
Wed, 26 Feb 2020 11:16:53.208 -0700 [4:connector : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:16:53.209 -0700 [0:main      : debug] wrote 64 bytes to SOCKS request pipe fd 9
Wed, 26 Feb 2020 11:16:53.209 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector : debug] SOCKS response received
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector :   err] SOCKS request failed, reason = 91
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector :   err] rescheduling SOCKS request
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector : debug] closing 14
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector : debug] SOCKS request is scheduled for connection not before 30s
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector : debug] timeout 11.584833
Wed, 26 Feb 2020 11:16:53.958 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:16:54.229 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:54.230 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:54.230 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:54.230 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:54.230 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:55.253 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:55.253 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:55.253 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:55.253 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:55.253 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:56.277 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:56.277 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:56.277 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:56.278 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:56.278 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:57.301 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:57.301 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:57.301 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:57.302 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:57.302 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:58.318 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:16:58.325 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:58.325 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:58.325 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:58.325 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:58.325 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:16:59.349 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:16:59.349 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:16:59.350 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:16:59.350 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:16:59.350 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:00.373 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:00.373 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:00.373 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:00.373 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:00.374 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:01.184 -0700 [5:controller: debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:17:01.184 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:17:01.184 -0700 [5:controller: debug] timeout 11.367763
Wed, 26 Feb 2020 11:17:01.184 -0700 [5:controller: debug] selecting (maxfd = 11)
Wed, 26 Feb 2020 11:17:01.397 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:01.397 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:01.397 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:01.397 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:01.397 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:02.044 -0700 [2:acceptor  : debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:17:02.044 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:17:02.044 -0700 [2:acceptor  : debug] timeout 11.955857
Wed, 26 Feb 2020 11:17:02.044 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:17:02.421 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:02.421 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:02.421 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:02.421 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:02.421 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:03.445 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:03.445 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:03.445 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:03.445 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:03.445 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:03.973 -0700 [1:receiver  : debug] timeout 11.435687
Wed, 26 Feb 2020 11:17:03.973 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:17:04.469 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:04.469 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:04.469 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:04.469 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:04.470 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:05.493 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:05.493 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:05.493 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:05.494 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:05.494 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:05.555 -0700 [4:connector : debug] select returned 0
Wed, 26 Feb 2020 11:17:05.555 -0700 [4:connector : debug] SOCKS request is scheduled for connection not before 18s
Wed, 26 Feb 2020 11:17:05.555 -0700 [4:connector : debug] timeout 10.099380
Wed, 26 Feb 2020 11:17:05.555 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:17:06.517 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:06.517 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:06.517 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:06.517 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:06.518 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:07.541 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:07.541 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:07.541 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:07.541 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:07.542 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:08.318 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:17:08.565 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:08.565 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:08.565 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:08.565 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:08.566 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:09.589 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:09.590 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:09.590 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:09.590 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:09.590 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:10.613 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:10.613 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:10.613 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:10.613 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:10.613 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:11.637 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:11.637 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:11.637 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:11.637 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:11.637 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:12.563 -0700 [5:controller: debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:17:12.564 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:17:12.564 -0700 [5:controller: debug] timeout 10.862860
Wed, 26 Feb 2020 11:17:12.564 -0700 [5:controller: debug] selecting (maxfd = 11)
Wed, 26 Feb 2020 11:17:12.661 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:12.661 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:12.661 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:12.661 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:12.661 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:13.685 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:13.685 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:13.685 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:13.685 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:13.685 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:14.001 -0700 [2:acceptor  : debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:17:14.001 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:17:14.001 -0700 [2:acceptor  : debug] timeout 10.628820
Wed, 26 Feb 2020 11:17:14.001 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:17:14.709 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:14.709 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:14.709 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:14.709 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:14.709 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:15.421 -0700 [1:receiver  : debug] timeout 10.835712
Wed, 26 Feb 2020 11:17:15.421 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:17:15.664 -0700 [4:connector : debug] select returned 0
Wed, 26 Feb 2020 11:17:15.664 -0700 [4:connector : debug] SOCKS request is scheduled for connection not before 8s
Wed, 26 Feb 2020 11:17:15.664 -0700 [4:connector : debug] timeout 11.197305
Wed, 26 Feb 2020 11:17:15.664 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:17:15.733 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:15.733 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:15.733 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:15.733 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:15.733 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:16.757 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:16.757 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:16.757 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:16.758 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:16.758 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:17.781 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:17.781 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:17.781 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:17.781 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:17.782 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:18.318 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:17:18.319 -0700 [3:cleaner   : debug] sending 40 bytes keepalive to fd 13
Wed, 26 Feb 2020 11:17:18.319 -0700 [6:lloopback : debug] read 40 bytes
Wed, 26 Feb 2020 11:17:18.319 -0700 [6:lloopback : debug] swapping IPs and sending back
Wed, 26 Feb 2020 11:17:18.319 -0700 [6:lloopback : debug] selecting in fd 12
Wed, 26 Feb 2020 11:17:18.319 -0700 [1:receiver  : debug] reading from 13
Wed, 26 Feb 2020 11:17:18.319 -0700 [1:receiver  : debug] received 40 bytes on 13
Wed, 26 Feb 2020 11:17:18.319 -0700 [1:receiver  : debug] identified IPv6 packet
Wed, 26 Feb 2020 11:17:18.319 -0700 [1:receiver  : debug] writing to tun 4 framesize 40 + 4
Wed, 26 Feb 2020 11:17:18.319 -0700 [1:receiver  : debug] fragbuf empty
Wed, 26 Feb 2020 11:17:18.319 -0700 [1:receiver  : debug] timeout 11.263731
Wed, 26 Feb 2020 11:17:18.319 -0700 [1:receiver  : debug] selecting (maxfd = 13)
Wed, 26 Feb 2020 11:17:18.805 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:18.805 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:18.806 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:18.806 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:18.806 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:19.829 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:19.829 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:19.829 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:19.829 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:19.829 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:20.853 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:20.853 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:20.853 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:20.853 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:20.854 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:21.877 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:21.877 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:21.877 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:21.877 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:21.877 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:22.901 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:22.901 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:22.901 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:22.901 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:22.901 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:23.429 -0700 [5:controller: debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:17:23.429 -0700 [5:controller: debug] setting up fd_set
Wed, 26 Feb 2020 11:17:23.429 -0700 [5:controller: debug] timeout 11.640549
Wed, 26 Feb 2020 11:17:23.429 -0700 [5:controller: debug] selecting (maxfd = 11)
Wed, 26 Feb 2020 11:17:23.925 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:23.925 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:23.925 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:23.926 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:23.926 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:24.641 -0700 [2:acceptor  : debug] select returned 0 fds ready
Wed, 26 Feb 2020 11:17:24.641 -0700 [2:acceptor  : debug] setting up fd_set
Wed, 26 Feb 2020 11:17:24.641 -0700 [2:acceptor  : debug] timeout 11.241777
Wed, 26 Feb 2020 11:17:24.641 -0700 [2:acceptor  : debug] selecting (maxfd = 7)
Wed, 26 Feb 2020 11:17:24.949 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:24.949 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:24.949 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:24.949 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:24.949 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:25.973 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:25.973 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:25.973 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:25.974 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:25.974 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:26.873 -0700 [4:connector : debug] select returned 0
Wed, 26 Feb 2020 11:17:26.873 -0700 [4:connector : debug] creating socket for unconnected SOCKS request
Wed, 26 Feb 2020 11:17:26.873 -0700 [4:connector : debug] O_NONBLOCK currently is 0
Wed, 26 Feb 2020 11:17:26.873 -0700 [4:connector : debug] queueing fd 14 for connect
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector : debug] connection in progress
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector : debug] timeout 11.981959
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector : debug] check socket error
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector : debug] SOCKS_BUFLEN = 1099, NI_MAXHOST = 1025
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector :  info] trying to connect to "g23eug3elvodqkjs.onion" [fd87:d87e:eb43:36b6:4a1b:645d:5c38:2932] on 14
Wed, 26 Feb 2020 11:17:26.874 -0700 [4:connector : debug] doing SOCKS4a handshake
Wed, 26 Feb 2020 11:17:26.875 -0700 [4:connector : debug] SOCKS request sent successfully
Wed, 26 Feb 2020 11:17:26.875 -0700 [4:connector : debug] timeout 10.133640
Wed, 26 Feb 2020 11:17:26.875 -0700 [4:connector : debug] selecting (maxfd = 14)
Wed, 26 Feb 2020 11:17:26.997 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:26.997 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:26.997 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:26.997 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:26.997 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:27.725 -0700 [4:connector : debug] select returned 1
Wed, 26 Feb 2020 11:17:27.725 -0700 [4:connector : debug] SOCKS response received
Wed, 26 Feb 2020 11:17:27.725 -0700 [4:connector :   err] SOCKS request failed, reason = 91
Wed, 26 Feb 2020 11:17:27.725 -0700 [4:connector :   err] rescheduling SOCKS request
Wed, 26 Feb 2020 11:17:27.725 -0700 [4:connector : debug] closing 14
Wed, 26 Feb 2020 11:17:27.726 -0700 [4:connector : debug] SOCKS request is scheduled for connection not before 30s
Wed, 26 Feb 2020 11:17:27.726 -0700 [4:connector : debug] timeout 11.125259
Wed, 26 Feb 2020 11:17:27.726 -0700 [4:connector : debug] selecting (maxfd = 8)
Wed, 26 Feb 2020 11:17:28.021 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:28.021 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:28.021 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:28.021 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:28.021 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:28.319 -0700 [3:cleaner   : debug] wakeup
Wed, 26 Feb 2020 11:17:29.045 -0700 [0:main      : debug] received on tunfd 4, framesize 104 + 4
Wed, 26 Feb 2020 11:17:29.045 -0700 [0:main      : debug] no peer for forwarding
Wed, 26 Feb 2020 11:17:29.045 -0700 [0:main      : debug] adding destination to SOCKS queue
Wed, 26 Feb 2020 11:17:29.045 -0700 [0:main      : debug] connection already exists, not queueing SOCKS connection
Wed, 26 Feb 2020 11:17:29.045 -0700 [0:main      : debug] reading from tunfd[0] = 4
Wed, 26 Feb 2020 11:17:29.585 -0700 [1:receiver  : debug] timeout 10.457418
Wed, 26 Feb 2020 11:17:29.585 -0700 [1:receiver  : debug] selecting (maxfd = 13)
^C
Thread 1 "ocat" received signal SIGINT, Interrupt.
0x00007ffff7bcc22d in read () from /lib/x86_64-linux-gnu/libpthread.so.0
(gdb) quit
A debugging session is active.

        Inferior 1 [process 20990] will be killed.

Quit anyway? (y or n) y

Ignore script for logcheck to filter onioncat syslog messages

If you use logcheck to parse log files for interesting or unusual entries you might like this set of patterns for filtering onioncat log entries that are not really of note.

I put this in the file: /etc/logcheck/ignore.d.server/local-rules, which you will need to create if non-existent.

# onioncat
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[(acceptor|connector|controller)\] select returned 0( fds ready)?$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[(acceptor|connector|controller|receiver)\] selecting \(maxfd = [[:digit:]]+\)$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[(acceptor|controller)\] setting up fd_set$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[(acceptor|connector|controller|receiver)\] timeout [[:digit:].]+$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[cleaner\] wakeup$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[main\] received on tunfd 4, framesize 48 \+ 4$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[main\] destination ff02::2 unreachable$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[main\] dropping frame$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ onioncat\[[[:digit:]]+\]: \[main\] reading from tunfd\[0\] = 4$

i2p host mapping

i2p hostname resolution with -H does not work.
Even if the ipv6 .b32.i2p mapping in /etc/hosts is correct it fails for some reason and does NOT get to the point where it connects to the i2p socks service.
according to the ocat log ipv6 is requested correctly ( as mapped in /etc/hosts) but it fails with error 91.
i tried both notations 16digits.b32.i2p and 16digits.oc.b32.i2p without success
the i2p addressbook method still works wit 16digits.b32.i2p mapping

OnionCat4 discussion notebook

This is a collection of open questions for OnionCat4, to remind me that I do not forget. And of course, open for discussion!

OnionCat4 is developed in the branch hsv3lookup.

  • Which port should the DNS service use? Currently udp6/8060, better udp6/53?
  • How many queries should the resolver do in parallel? And to which hosts? Active sessions 1st?
  • What should happen when the TTL of a hosts expires? Re-lookup?
  • Which and how many of the hosts in the hosts db should be queried for new entries?
  • Should the internal hosts db be saved regularly and restored after a reboot?
  • Shall zone transfers be supported?
  • Is $sysconfdir/etc/tor/onioncat.hosts a good location for the hosts file? (or better /etc/onioncat/hosts, or /etc/onioncat.hosts, or...)

LLVM Clang compile warnings

gcc 8.3.0 is clean
But maybe clang find some potential problems to improve.
onioncat 0.2.8 llvm clang 8.0.0 freebsd 12 x64

ocateth.c:282:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:282:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:324:35: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:324:84: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:331:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:331:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:342:33: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:349:25: warning: taking address of packed member 'nd_ns_target' of class or structure 'nd_neighbor_solicit' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:358:17: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:359:47: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:383:24: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:383:44: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:409:17: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocateth.c:410:47: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocatipv4route.c:166:28: warning: size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination [-Wstrlcpy-strlcat-size]
ocatipv6route.c:135:28: warning: size argument in 'strlcpy' call appears to be size of the source; expected the size of the destination [-Wstrlcpy-strlcat-size]
ocatroute.c:785:12: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocatroute.c:944:19: warning: taking address of packed member 'ip6_dst' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]
ocatroute.c:946:19: warning: taking address of packed member 'ip6_src' of class or structure 'ip6_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]

Shadowsocks, Outline VPN and/or N2N instead the OpenVPN

Hello for all,

What do you think about these mentioned protocols that could replace OpenVPN and thus contribute to better decentralization and privacy? If for some reason it can't, then WireGuard can come in handy. All of the above are FOSS.

Torrc configuration isn't working. Not allowing tor browser bundle to Connect? (Win 10)

image
this pic should explain it... i click retry and then tor gets stuck on connecting... forever.

No onioncat logs are created... I think the problem may be from entering the wrong directory to save the Logs possibly... also whenever i delete tor and reinstall it gives this error unless i start without pasting the onioncat log configs in...

Maybe its a firewall issue?

ocat onion hostname shortening

If it's not too much to ask can we have ocat 56charachterlong.onion on the cli to be internally cut down to the 16 actually used.
This is just for convenience.

Thanks

Onion v2 Deprecated (Question)

Hello, when I trim my onion address from 54 characters to 16 I cannot access them from tor browser anymore, it says connection timed out, I read this article https://blog.torproject.org/v2-deprecation-timeline
and it seems that pretty soon v2 onion address won't be supported.
Is it a problem for onioncat?
My goal is to access my hidden service from an ipv6 on the "Clearnet", using onioncat as a gateway is it possible?
Thank you for your answers.

Obsolete in tree freebsd port

The in tree freebsd port directory is from 10+ years ago, perhaps it can be removed to prevent possible confusion?
Onioncat has been imported and maintained in the freebsd port tree for many years.

onioncat works on OpenBSD

I noticed this line on the TODO list:

  • OpenBSD TAP device might not work (see OpenBSD man page tun(4))

and I think I should report back that this works fine on OpenBSD :)

I used onioncat on OpenBSD with ping and ssh as payload, and there is no problem so far.

hostname registration/lookup via .b32.i2p/.onion

Would it be possible to autocalculate a .b32.i2p/.onion dest and then upload it to an i2p or tor service (manually configured / passed to ocat ) for central lookup ?
Just an idea to be able to deploy onioncat more widely.
The lookup service could be hosted and used by any volunteer - should be easy to do with i2p / tor.

Build failure on Solaris (SmartOS)

FYI, onioncat (great software by the way!) does not currently build on SmartOS, likely Illumos in general:

$ make
make  all-recursive
make[1]: Entering directory '/home/admin/src/onioncat-0.2.2.r534'
Making all in src
make[2]: Entering directory '/home/admin/src/onioncat-0.2.2.r534/src'
source='ocat.c' object='ocat.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -O2 -D_REENTRANT -pthreads -c ocat.c
In file included from ocat.c:19:
ocat.h:258:24: error: 'ETHER_ADDR_LEN' undeclared here (not in a function); did you mean 'ETHERADDRL'?
    uint8_t ocat_hwaddr[ETHER_ADDR_LEN];
                        ^~~~~~~~~~~~~~
                        ETHERADDRL
ocat.c: In function 'main':
ocat.c:463:8: error: too many arguments to function 'getpwnam_r'
    c = getpwnam_r(CNF(usrname), &pwdm, pwdbuf, SIZE_1K, &pwd);
        ^~~~~~~~~~
In file included from ocat.h:29,
                 from ocat.c:19:
/usr/include/pwd.h:167:23: note: declared here
 extern struct passwd *getpwnam_r(const char *, struct passwd *, char *, int);
                       ^~~~~~~~~~
ocat.c:463:6: warning: assignment to 'int' from 'struct passwd *' makes integer from pointer without a cast [-Wint-conversion]                                                                                                               
    c = getpwnam_r(CNF(usrname), &pwdm, pwdbuf, SIZE_1K, &pwd);
      ^
make[2]: *** [Makefile:262: ocat.o] Error 1
make[2]: Leaving directory '/home/admin/src/onioncat-0.2.2.r534/src'
make[1]: *** [Makefile:258: all-recursive] Error 1
make[1]: Leaving directory '/home/admin/src/onioncat-0.2.2.r534'
make: *** [Makefile:179: all] Error 2

Onioncat spitting error, windows 10 config

Pls help, i followed this guide https://www.onioncat.org/2019/08/onioncat-on-windows/
I configured everything, even tried with v3, launched Tor, launched onioncat shortcut with correct paramiters and i get this:

Thu, 14 Oct 2021 12:39:22.541 +0200 [0:main : info] onioncat 0.3.8 (c) Bernhard R. Fischer (OnionCat mode)
Thu, 14 Oct 2021 12:39:22.543 +0200 [0:main : info] MAC address (censored by me in edit)
Thu, 14 Oct 2021 12:39:22.544 +0200 [0:main : info] IPv6 address (censored by me in edit)
Thu, 14 Oct 2021 12:39:22.545 +0200 [0:main : info] TUN/TAP device Local Area Connection 2
Thu, 14 Oct 2021 12:39:22.564 +0200 [0:main :warning] can't get information for user "tor": "user not found", defaulting to uid 65534
Thu, 14 Oct 2021 12:39:22.565 +0200 [0:main :notice] disabling connect log
Thu, 14 Oct 2021 12:39:22.577 +0200 [0:main : info] starting packet forwarder
Thu, 14 Oct 2021 12:39:22.577 +0200 [2:acceptor : info] connection 10 [0] accepted on listener 5 from 127.0.0.1 port 9563
Thu, 14 Oct 2021 12:39:22.578 +0200 [0:main : err] no route to destination ff02::1:2, dropping frame.
Thu, 14 Oct 2021 12:39:22.579 +0200 [2:acceptor : info] inserting peer fd 10 to active peer list
Thu, 14 Oct 2021 12:39:22.589 +0200 [1:receiver : info] incoming connection on 10 from (censored by me in edit) is now identified
Thu, 14 Oct 2021 12:39:22.685 +0200 [6:lloopback : info] loopback_handler ready listening on (censored by me in edit)
Thu, 14 Oct 2021 12:39:22.861 +0200 [0:main : err] no route to destination ff02::2, dropping frame.
Thu, 14 Oct 2021 12:39:22.864 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:23.354 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:23.561 +0200 [0:main : err] no route to destination ff02::1:2, dropping frame.
Thu, 14 Oct 2021 12:39:23.866 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:23.868 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.
Thu, 14 Oct 2021 12:39:23.869 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.
Thu, 14 Oct 2021 12:39:23.870 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:23.871 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.
Thu, 14 Oct 2021 12:39:23.872 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.
Thu, 14 Oct 2021 12:39:24.351 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:25.571 +0200 [0:main : err] no route to destination ff02::1:2, dropping frame.
Thu, 14 Oct 2021 12:39:25.860 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:25.862 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:25.866 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:25.867 +0200 [0:main : err] no route to destination ff02::16, dropping frame.
Thu, 14 Oct 2021 12:39:25.869 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.
Thu, 14 Oct 2021 12:39:25.870 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.
Thu, 14 Oct 2021 12:39:25.871 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.
Thu, 14 Oct 2021 12:39:25.872 +0200 [0:main : err] no route to destination ff02::fb, dropping frame.

Automake

make onioncat work with automake 1.16 or even more current versions - currently it requires 1.15 to ./configure and make

Onioncat tries to create localstatedir outside of DESTDIR

This came up when I was trying to update onioncat packages for openSUSE from version 0.3.9 to 4.10.0.

With version 4.10.0, the build system of onioncat tries to install the oc_statedir into ${prefix}/var outside of DESTDIR (commit 1e3034a). This is a problem in particular when building RPM packages because we compile and install the package with DESTDIR set to a buildroot directory and then package whatever is installed to the buildroot dir in the form of RPMs. Perhaps this is also a problem more generally for folks who would want to install onioncat to some non-standard location using DESTDIR.

Fixed by a one-liner (can make a PR if you want me to):

Index: onioncat-4.10.0/src/Makefile.am
===================================================================
--- onioncat-4.10.0.orig/src/Makefile.am
+++ onioncat-4.10.0/src/Makefile.am
@@ -5,5 +5,5 @@ oc_statedir = $(localstatedir)/onioncat
 AM_CFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" -DSTATEDIR=\"$(oc_statedir)\"
 
 install-data-hook:
-	$(MKDIR_P) $(oc_statedir)
+	$(MKDIR_P) $(DESTDIR)$(oc_statedir)

Thanks for developing this very useful application.

Error: Nexthop device is not up

First of all thanks for the overall updates !
With the latest git checkout b7828d2 i get this message:

/sbin/ip
Error: Nexthop device is not up.

onioncat is working fine though...

What are example use cases?

I am obviously not that tech literate but i have always been really curious what this software is and how people might use it for privacy?

Can people give me examples ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.