-
Notifications
You must be signed in to change notification settings - Fork 334
Patchwork listens on IPv6 but advertises IPv4 address #979
Comments
Sorry this is causing trouble for you, networking can be a pain. Could you run the latest commit from |
|
my patchbay from master also does this so i guess the issue lies more in the direction of multiserver/getAddress? the src ip address of the broadcast packets is the ipv4 one it is listening on btw. |
Maybe relevant: I have a PR open that would have us explicitly bind to each address, which reduces the amount of multiserver/getAddress magic: ssbc/multiserver#42. Also relevant: a PR to switch us back to IPv4 by default: ssbc/ssb-config#47. |
I've pushed a new branch to Patchwork called |
Hi @christianbundy, this seems to work 👍. However there is another port being listened on by the app on [::]:8989 which is inconsistent with what's being done here.
|
8989 is the default for ssb-ws |
@PragmaticCypher Thanks for that! I was able to reproduce the issue locally and merged a fix into multiserver 3.3.2. Here's what I'm seeing now:
Once this PR is merged the problem should be resolved. 👍 |
I was patching Patchwork v3.11.6 with these changes, and npm is notifying me there's 3 high vulnerabilites. Should this be a concern? |
I'm not sure, could you run |
I seem to have the exact opposite problem. See also here: https://gitlab.com/staltz/manyverse/issues/374 This is the output of Wireshark.
I tried to start |
Which version of Patchwork? If possible, it would be helpful if you could verify whether this is a problem in master (or the latest prerelease). Thanks for your help debugging!
|
It may be easier to use netcat to check the advertisements ;)
or
|
@christianbundy On the contrary, I have to thank you for working on this great project! I was on the latest version. I built from master and the problem seems to persist. @PragmaticCypher I have nc installed on mac but I cannot seem to get it to work. Wireshark might be overpowered but it works ;-) |
Re-reading your comment, I think you'll need to edit {
"incoming": {
"net": [{ "scope": "device", "transform": "noauth", "port": 8009, "host": "your-ipv4-host-here" }]
},
"outgoing": {
"net": [{ "transform": "shs" }]
}
} If that doesn't work, please create an issue in either the ssb-server or ssb-config repos. Good luck! |
To be explicit: I think the |
Ok, so running master with the following config:
returns the following output: }
]
},
"outgoing": {
"net": [
{
"transform": "shs"
}
]
},
"plugins": {
"ssb-device-address": true,
"ssb-identities": true,
"ssb-peer-invites": true
},
"host": "192.168.99.181",
"_": [],
"configs": [
"/Users/georg/.ssb/config"
],
"config": "/Users/georg/.ssb/config",
"ws": {
"host": "192.168.99.181",
"port": 8989,
"scope": [
"device",
"local",
"public"
],
"transform": "shs"
},
"keys": {
"curve": "ed25519",
"public": "CEIxM/rjo9kKYTunBTzZG8/SV49dGM7McCFG5NZm80I=.ed25519",
"private": null,
"id": "@CEIxM/rjo9kKYTunBTzZG8/SV49dGM7McCFG5NZm80I=.ed25519"
},
"remote": "unix:/Users/georg/.ssb/socket:~noauth:CEIxM/rjo9kKYTunBTzZG8/SV49dGM7McCFG5NZm80I="
} Wireshark tells me the multicasts have not changed. |
Oops, it looks like I forgot to add {
"connections": {
"incoming": {
"net": [{ "port": 8008, "scope": "public", "transform": "shs", "host": "192.168.99.181" }]
},
"outgoing": {
"net": [{ "transform": "shs" }]
}
},
"plugins": {
"ssb-device-address": true,
"ssb-identities": true,
"ssb-peer-invites": true
},
"host": "192.168.99.181"
} If that doesn't work, please create an issue in either the ssb-server or ssb-config repos. |
Ok, thanks for the effort anyway, I will open the issue on those repos. |
It works for me on the latest master without any config file |
Woop! This should be resolved by ssbc/multiserver#48, here's what I'm seeing in
Please let me know if you still have any issues! |
On a dual stack network, Patchwork seems to be listening on [::]:8008 but advertises on the IPv4 stack instead.
System: Slackware64 14.2
The text was updated successfully, but these errors were encountered: