lokinet icon indicating copy to clipboard operation
lokinet copied to clipboard

lokinet lacks network blocking resistance

Open null3dt0m opened this issue 2 years ago • 12 comments

Describe the bug Unable to connect to lokinet, no matter what. I tried to wait even half a day to get a valid path and still got nothing. I also tried to put exit.loki as exit address, but still getting that error, i tried others and still nothing.

i wonder if i'm doing something wrong or not.

To Reproduce I used the Linux setup instructions, all good until i started the service

Screenshots Or Logs

debug [oxenmq/oxenmq.cpp:214] generating x25519 keypair for remote-only OxenMQ instance
info [oxenmq/oxenmq.cpp:237] Initializing OxenMQ remote-only with pubkey 68f558c1f90f03afc4e19b10b625274cbe7730c07effcafab5ad1fd464e0cb32
debug [oxenmq/oxenmq.cpp:253] Waiting for proxy thread to initialize...
debug [oxenmq/proxy.cpp:398] Reserving space for 13 max workers = 8 general plus reservations for:
debug [oxenmq/proxy.cpp:401]     - (batch jobs): 4
debug [oxenmq/proxy.cpp:402]     - (reply jobs): 1
debug [oxenmq/proxy.cpp:403] Plus 0 tagged worker threads
debug [oxenmq/oxenmq.cpp:256] Waiting for proxy thread to get ready...
debug [oxenmq/oxenmq.cpp:268] Proxy thread is ready
debug [oxenmq/connections.cpp:324] Establishing remote connection to tcp://127.0.0.1:1190 (NULL auth)
debug [oxenmq/connections.cpp:340] Opened new zmq socket to tcp://127.0.0.1:1190, conn_id 2; sending HI
debug [oxenmq/proxy.cpp:675] Got initial HELLO server response from 127.0.0.1
debug [oxenmq/worker.cpp:67] New worker thread w0 (w) started
debug [oxenmq/proxy.cpp:202] Added new pending request 4f7044a5791d617993b30e6fc3f3b4
debug [oxenmq/connections.cpp:281] pending request 4f7044a5791d617993b30e6fc3f3b4 expired, invoking callback with failure status and removing
could not add exit
info [oxenmq/oxenmq.cpp:426] OxenMQ shutting down proxy thread
debug [oxenmq/worker.cpp:37] Worker w0 received QUIT command, shutting down
debug [oxenmq/worker.cpp:263] Worker w exited normally
debug [oxenmq/proxy.cpp:25] Received quit command, shutting down proxy thread
debug [oxenmq/proxy.cpp:43] Proxy thread teardown complete
info [oxenmq/oxenmq.cpp:429] OxenMQ proxy thread has stopped

Device and Operating system (please complete the following information):

  • OS: Ubuntu Mate 22.04
  • Device: Laptot Huwawei
  • Lokinet Version number or Git commit hash: lokinet 0.9.9-deb0.9.9-2~ubuntu2204

null3dt0m avatar Jul 15 '22 09:07 null3dt0m

need status of lokinet itself

systemctl status lokinet

and logs if possible

journalctl -fu lokinet

majestrate avatar Jul 15 '22 10:07 majestrate

systemctl status lokinet

● lokinet.service - LokiNET: Anonymous Network layer thingydoo, client
     Loaded: loaded (/lib/systemd/system/lokinet.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-07-15 12:18:52 CEST; 45min ago
    Process: 56530 ExecStartPost=/usr/sbin/lokinet-resolvconf add /var/lib/lokinet/lokinet.ini (code=exited, status=0/SUCCESS)
   Main PID: 56363 (lokinet)
     Status: "v0.9.9 client | known/connected: 1600/4 | paths/endpoints 33/0"
      Tasks: 14 (limit: 18826)
     Memory: 18.2M
        CPU: 53.813s
     CGroup: /system.slice/lokinet.service
             └─56363 /usr/bin/lokinet /var/lib/lokinet/lokinet.ini

lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:56:21.253 GMT [+37m29.160s] /llarp/path/path.cpp:471        TX=2e654e81478057f6c18a1a3167c02787 RX=1c0170e3e94b3c2d99313453fd7b64b7 waited for 30.243s and path looks de>
lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:56:21.266 GMT [+37m29.173s] /llarp/path/pathset.cpp:348        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki path [path n4szgdrz-74] died
lug 15 12:58:30 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:58:30.840 GMT [+39m38.747s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate
lug 15 12:58:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:58:32.091 GMT [+39m39.998s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate
lug 15 12:59:01 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:01.863 GMT [+40m09.770s] /llarp/path/path.cpp:471        TX=8fc1f267cb154e27324ed4cb9556e8c7 RX=4b6c07d4d3bc25642ed92ae50aea803c waited for 30.118s and path looks de>
lug 15 12:59:01 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:01.875 GMT [+40m09.782s] /llarp/path/pathset.cpp:348        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki path [path n4szgdrz-76] died
lug 15 12:59:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:32.628 GMT [+40m40.535s] /llarp/path/path.cpp:471        TX=92a348aeb1872a6fad6a6cd18efeb997 RX=e4ab330342d2b448d63b5b38dbc3ce00 waited for 30.042s and path looks de>
lug 15 12:59:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:32.642 GMT [+40m40.549s] /llarp/path/pathset.cpp:348        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki path [path n4szgdrz-55] died
lug 15 13:03:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 11:03:32.541 GMT [+44m40.448s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate
lug 15 13:03:33 universe lokinet[56363]: [WRN] [](782) 2022-07-15 11:03:33.791 GMT [+44m41.698s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate

journalctl -fu lokinet

lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:56:21.253 GMT [+37m29.160s] /llarp/path/path.cpp:471        TX=2e654e81478057f6c18a1a3167c02787 RX=1c0170e3e94b3c2d99313453fd7b64b7 waited for 30.243s and path looks dead
lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:56:21.266 GMT [+37m29.173s] /llarp/path/pathset.cpp:348        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki path [path n4szgdrz-74] died
lug 15 12:58:30 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:58:30.840 GMT [+39m38.747s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate
lug 15 12:58:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:58:32.091 GMT [+39m39.998s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate
lug 15 12:59:01 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:01.863 GMT [+40m09.770s] /llarp/path/path.cpp:471        TX=8fc1f267cb154e27324ed4cb9556e8c7 RX=4b6c07d4d3bc25642ed92ae50aea803c waited for 30.118s and path looks dead
lug 15 12:59:01 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:01.875 GMT [+40m09.782s] /llarp/path/pathset.cpp:348        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki path [path n4szgdrz-76] died
lug 15 12:59:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:32.628 GMT [+40m40.535s] /llarp/path/path.cpp:471        TX=92a348aeb1872a6fad6a6cd18efeb997 RX=e4ab330342d2b448d63b5b38dbc3ce00 waited for 30.042s and path looks dead
lug 15 12:59:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:32.642 GMT [+40m40.549s] /llarp/path/pathset.cpp:348        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki path [path n4szgdrz-55] died
lug 15 13:03:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15 11:03:32.541 GMT [+44m40.448s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate
lug 15 13:03:33 universe lokinet[56363]: [WRN] [](782) 2022-07-15 11:03:33.791 GMT [+44m41.698s] /llarp/path/pathbuilder.cpp:347        endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki has no first hop candidate

null3dt0m avatar Jul 15 '22 11:07 null3dt0m

On Fri, 15 Jul 2022 04:06:07 -0700 null3dt0m @.***> wrote:

systemctl status lokinet

● lokinet.service - LokiNET: Anonymous Network layer thingydoo, client
     Loaded: loaded (/lib/systemd/system/lokinet.service; enabled;
vendor preset: enabled) Active: active (running) since Fri 2022-07-15
12:18:52 CEST; 45min ago Process: 56530
ExecStartPost=/usr/sbin/lokinet-resolvconf add
/var/lib/lokinet/lokinet.ini (code=exited, status=0/SUCCESS) Main
PID: 56363 (lokinet) Status: "v0.9.9 client | known/connected: 1600/4
| paths/endpoints 33/0" Tasks: 14 (limit: 18826) Memory: 18.2M
        CPU: 53.813s
     CGroup: /system.slice/lokinet.service
             └─56363 /usr/bin/lokinet /var/lib/lokinet/lokinet.ini

lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782) 2022-07-15
10:56:21.253 GMT [+37m29.160s] /llarp/path/path.cpp:471
TX=2e654e81478057f6c18a1a3167c02787
RX=1c0170e3e94b3c2d99313453fd7b64b7 waited for 30.243s and path looks
de> lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782) 2022-07-15
de> 10:56:21.266 GMT [+37m29.173s] /llarp/path/pathset.cpp:348
de> endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
de> path [path n4szgdrz-74] died lug 15 12:58:30 universe
de> lokinet[56363]: [WRN] [](782) 2022-07-15 10:58:30.840 GMT
de> [+39m38.747s] /llarp/path/pathbuilder.cpp:347
de> endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
de> has no first hop candidate lug 15 12:58:32 universe
de> lokinet[56363]: [WRN] [](782) 2022-07-15 10:58:32.091 GMT
de> [+39m39.998s] /llarp/path/pathbuilder.cpp:347
de> endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
de> has no first hop candidate lug 15 12:59:01 universe
de> lokinet[56363]: [WRN] [](782) 2022-07-15 10:59:01.863 GMT
de> [+40m09.770s] /llarp/path/path.cpp:471
de> TX=8fc1f267cb154e27324ed4cb9556e8c7
de> RX=4b6c07d4d3bc25642ed92ae50aea803c waited for 30.118s and path
de> looks de>
lug 15 12:59:01 universe lokinet[56363]: [WRN] [](782) 2022-07-15
10:59:01.875 GMT [+40m09.782s] /llarp/path/pathset.cpp:348
endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
path [path n4szgdrz-76] died lug 15 12:59:32 universe lokinet[56363]:
[WRN] [](782) 2022-07-15 10:59:32.628 GMT [+40m40.535s]
/llarp/path/path.cpp:471        TX=92a348aeb1872a6fad6a6cd18efeb997
RX=e4ab330342d2b448d63b5b38dbc3ce00 waited for 30.042s and path looks
de> lug 15 12:59:32 universe lokinet[56363]: [WRN] [](782) 2022-07-15
de> 10:59:32.642 GMT [+40m40.549s] /llarp/path/pathset.cpp:348
de> endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
de> path [path n4szgdrz-55] died lug 15 13:03:32 universe
de> lokinet[56363]: [WRN] [](782) 2022-07-15 11:03:32.541 GMT
de> [+44m40.448s] /llarp/path/pathbuilder.cpp:347
de> endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
de> has no first hop candidate lug 15 13:03:33 universe
de> lokinet[56363]: [WRN] [](782) 2022-07-15 11:03:33.791 GMT
de> [+44m41.698s] /llarp/path/pathbuilder.cpp:347
de> endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
de> has no first hop candidate

journalctl -fu lokinet

lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782) 2022-07-15
10:56:21.253 GMT [+37m29.160s] /llarp/path/path.cpp:471
TX=2e654e81478057f6c18a1a3167c02787
RX=1c0170e3e94b3c2d99313453fd7b64b7 waited for 30.243s and path looks
dead lug 15 12:56:21 universe lokinet[56363]: [WRN] [](782)
2022-07-15 10:56:21.266 GMT [+37m29.173s] /llarp/path/pathset.cpp:348
       endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
path [path n4szgdrz-74] died lug 15 12:58:30 universe lokinet[56363]:
[WRN] [](782) 2022-07-15 10:58:30.840 GMT [+39m38.747s]
/llarp/path/pathbuilder.cpp:347
endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
has no first hop candidate lug 15 12:58:32 universe lokinet[56363]:
[WRN] [](782) 2022-07-15 10:58:32.091 GMT [+39m39.998s]
/llarp/path/pathbuilder.cpp:347
endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
has no first hop candidate lug 15 12:59:01 universe lokinet[56363]:
[WRN] [](782) 2022-07-15 10:59:01.863 GMT [+40m09.770s]
/llarp/path/path.cpp:471        TX=8fc1f267cb154e27324ed4cb9556e8c7
RX=4b6c07d4d3bc25642ed92ae50aea803c waited for 30.118s and path looks
dead lug 15 12:59:01 universe lokinet[56363]: [WRN] [](782)
2022-07-15 10:59:01.875 GMT [+40m09.782s] /llarp/path/pathset.cpp:348
       endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
path [path n4szgdrz-76] died lug 15 12:59:32 universe lokinet[56363]:
[WRN] [](782) 2022-07-15 10:59:32.628 GMT [+40m40.535s]
/llarp/path/path.cpp:471        TX=92a348aeb1872a6fad6a6cd18efeb997
RX=e4ab330342d2b448d63b5b38dbc3ce00 waited for 30.042s and path looks
dead lug 15 12:59:32 universe lokinet[56363]: [WRN] [](782)
2022-07-15 10:59:32.642 GMT [+40m40.549s] /llarp/path/pathset.cpp:348
       endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
path [path n4szgdrz-55] died lug 15 13:03:32 universe lokinet[56363]:
[WRN] [](782) 2022-07-15 11:03:32.541 GMT [+44m40.448s]
/llarp/path/pathbuilder.cpp:347
endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
has no first hop candidate lug 15 13:03:33 universe lokinet[56363]:
[WRN] [](782) 2022-07-15 11:03:33.791 GMT [+44m41.698s]
/llarp/path/pathbuilder.cpp:347
endpoint:u11f78y6coj4ratnazn5akoyfz7coo36yzubwakur599yt6bn3to.loki
has no first hop candidate ```

try the following (as root):

systemctl stop lokinet rm -f /var/lib/lokinet/profiles.dat systemctl start lokinet

if this fixes it then this is a known issue.

majestrate avatar Jul 15 '22 11:07 majestrate

Same result even after it:

debug [oxenmq/oxenmq.cpp:214] generating x25519 keypair for remote-only OxenMQ instance
info [oxenmq/oxenmq.cpp:237] Initializing OxenMQ remote-only with pubkey bc914e0ae000d31edba437b80fbd986da669a809dd58b313458f4100962f6000
debug [oxenmq/oxenmq.cpp:253] Waiting for proxy thread to initialize...
debug [oxenmq/proxy.cpp:398] Reserving space for 13 max workers = 8 general plus reservations for:
debug [oxenmq/proxy.cpp:401]     - (batch jobs): 4
debug [oxenmq/proxy.cpp:402]     - (reply jobs): 1
debug [oxenmq/proxy.cpp:403] Plus 0 tagged worker threads
debug [oxenmq/oxenmq.cpp:256] Waiting for proxy thread to get ready...
debug [oxenmq/oxenmq.cpp:268] Proxy thread is ready
debug [oxenmq/connections.cpp:324] Establishing remote connection to tcp://127.0.0.1:1190 (NULL auth)
debug [oxenmq/connections.cpp:340] Opened new zmq socket to tcp://127.0.0.1:1190, conn_id 2; sending HI
debug [oxenmq/proxy.cpp:675] Got initial HELLO server response from 127.0.0.1
debug [oxenmq/worker.cpp:67] New worker thread w0 (w) started
debug [oxenmq/proxy.cpp:202] Added new pending request cc31a455ee5dd50bac83ec45417e90
debug [oxenmq/connections.cpp:281] pending request cc31a455ee5dd50bac83ec45417e90 expired, invoking callback with failure status and removing
could not add exit
info [oxenmq/oxenmq.cpp:426] OxenMQ shutting down proxy thread
debug [oxenmq/worker.cpp:37] Worker w0 received QUIT command, shutting down
debug [oxenmq/worker.cpp:263] Worker w exited normally
debug [oxenmq/proxy.cpp:25] Received quit command, shutting down proxy thread
debug [oxenmq/proxy.cpp:43] Proxy thread teardown complete
info [oxenmq/oxenmq.cpp:429] OxenMQ proxy thread has stopped

Maybe is something wrong from my side?

null3dt0m avatar Jul 15 '22 11:07 null3dt0m

On Fri, 15 Jul 2022 04:40:15 -0700 null3dt0m @.***> wrote:

Same result even after it:

debug [oxenmq/oxenmq.cpp:214] generating x25519 keypair for
remote-only OxenMQ instance info [oxenmq/oxenmq.cpp:237] Initializing
OxenMQ remote-only with pubkey
bc914e0ae000d31edba437b80fbd986da669a809dd58b313458f4100962f6000
debug [oxenmq/oxenmq.cpp:253] Waiting for proxy thread to
initialize... debug [oxenmq/proxy.cpp:398] Reserving space for 13 max
workers = 8 general plus reservations for: debug
[oxenmq/proxy.cpp:401]     - (batch jobs): 4 debug
[oxenmq/proxy.cpp:402]     - (reply jobs): 1 debug
[oxenmq/proxy.cpp:403] Plus 0 tagged worker threads debug
[oxenmq/oxenmq.cpp:256] Waiting for proxy thread to get ready...
debug [oxenmq/oxenmq.cpp:268] Proxy thread is ready debug
[oxenmq/connections.cpp:324] Establishing remote connection to
tcp://127.0.0.1:1190 (NULL auth) debug [oxenmq/connections.cpp:340]
Opened new zmq socket to tcp://127.0.0.1:1190, conn_id 2; sending HI
debug [oxenmq/proxy.cpp:675] Got initial HELLO server response from
127.0.0.1 debug [oxenmq/worker.cpp:67] New worker thread w0 (w)
started debug [oxenmq/proxy.cpp:202] Added new pending request
cc31a455ee5dd50bac83ec45417e90 debug [oxenmq/connections.cpp:281]
pending request cc31a455ee5dd50bac83ec45417e90 expired, invoking
callback with failure status and removing could not add exit info
[oxenmq/oxenmq.cpp:426] OxenMQ shutting down proxy thread debug
[oxenmq/worker.cpp:37] Worker w0 received QUIT command, shutting down
debug [oxenmq/worker.cpp:263] Worker w exited normally debug
[oxenmq/proxy.cpp:25] Received quit command, shutting down proxy
thread debug [oxenmq/proxy.cpp:43] Proxy thread teardown complete
info [oxenmq/oxenmq.cpp:429] OxenMQ proxy thread has stopped ```

Maybe is something wrong from my side?

it is possible your isp is dropping udp connectivity.

majestrate avatar Jul 15 '22 11:07 majestrate

ooof, any ideas on how to circumvent it? If i use a vpn (kinda useless i know) i think it will work, but does lokinet offers a way to circumvent this ?

null3dt0m avatar Jul 15 '22 12:07 null3dt0m

On Fri, 15 Jul 2022 05:08:28 -0700 null3dt0m @.***> wrote:

ooof, any ideas on how to circumvent it? If i use a vpn (kinda useless i know) i think it will work, but does lokinet offers a way to circumvent this ?

this is a roadmap item. i've wanted to bump it up in priority for a long time before it was an actual issue to preempt an issue like this...

majestrate avatar Jul 15 '22 12:07 majestrate

Is wrapping Lokinet over obfs4/Meek Tor possible?

ghost avatar Aug 07 '22 15:08 ghost

Is wrapping Lokinet over obfs4/Meek Tor possible?

the requirements for lokinet traffic is being able to provide bidirectional transport of udp packets between you and service node IPs with a rtt under 500ms. can obfs4/meek+tor do this at the moment?

majestrate avatar Aug 07 '22 15:08 majestrate

Do we have a Matrix room for Lokinet?

ghost avatar Aug 07 '22 16:08 ghost

Do we have a Matrix room for Lokinet?

not at this time.

majestrate avatar Aug 07 '22 17:08 majestrate

#2006

planetoryd avatar Oct 06 '22 15:10 planetoryd