tomeshnet / prototype-cjdns-pi

Prototype system for mesh networks on single board computers
https://chat.tomesh.net/#/room/#software:tomesh.net
GNU General Public License v3.0
218 stars 42 forks source link

ssb peer announcement over cjdns #350

Open darkdrgn2k opened 5 years ago

darkdrgn2k commented 5 years ago

sbot does not listen on ::8008

need to bridge ::8008 and 0.0.0.0:8008

darkdrgn2k commented 5 years ago

Forward udp6 to udp4 socat UDP6-LISTEN:8008,fork,su=nobody UDP4:127.0.0.1:8008

needs to look if sbot actually picks this up

makew0rld commented 5 years ago

What's the status on this atm?

darkdrgn2k commented 5 years ago

socat UDP6-LISTEN:8008,fork,su=nobody UDP4:127.0.0.1:8008 may be the solution to re-route ipv6 packets to the ipv4 port

testing needed

  "type": "discover",
  "peer": {
    "address": "net:fc60:d4da:573d:b600:77f6:3c71:ba42:690a:8008~shs:6PGB2xFmki1pUJloCRVXNPn838sl9N/XB1UZR9V6Qco=",
    "key": "@6PGB2xFmki1pUJloCRVXNPn838sl9N/XB1UZR9V6Qco=.ed25519",
    "source": "local",
    "announcers": 1,
    "duration": null
  },
  "source": "local"
}

{
  "type": "connect",
  "peer": {
    "address": "net:fc60:d4da:573d:b600:77f6:3c71:ba42:690a:8008~shs:6PGB2xFmki1pUJloCRVXNPn838sl9N/XB1UZR9V6Qco=",
    "key": "@6PGB2xFmki1pUJloCRVXNPn838sl9N/XB1UZR9V6Qco=.ed25519",
    "source": "local",
    "announcers": 1,
    "duration": null,
    "stateChange": 1563579030323,
    "state": "connected",
    "client": true,
    "ping": {
      "rtt": {
        "mean": 0,
        "stdev": 0,
        "count": 0,
        "sum": 0,
        "sqsum": 0
      },
      "skew": {
        "mean": 0,
        "stdev": 0,
        "count": 0,
        "sum": 0,
        "sqsum": 0
      }
    }
  }
}

{
  "type": "remove",
  "peer": {
    "address": "net:fc60:d4da:573d:b600:77f6:3c71:ba42:690a:8008~shs:6PGB2xFmki1pUJloCRVXNPn838sl9N/XB1UZR9V6Qco=",
    "key": "@6PGB2xFmki1pUJloCRVXNPn838sl9N/XB1UZR9V6Qco=.ed25519",
    "source": "local",
    "announcers": 1,
    "duration": null,
    "stateChange": 1563579030323,
    "state": "connected",
    "client": true,
    "ping": {
      "rtt": {
        "mean": 401,
        "stdev": 0,
        "count": 1,
        "sum": 401,
        "sqsum": 160801
      },
      "skew": {
        "mean": -3.5,
        "stdev": 0,
        "count": 1,
        "sum": -3.5,
        "sqsum": 12.25
      }
    },
    "failure": 0
  }
}