Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not listening on rfc4193 address on macos #210

Open
laduke opened this issue Mar 16, 2023 · 8 comments
Open

not listening on rfc4193 address on macos #210

laduke opened this issue Mar 16, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@laduke
Copy link
Contributor

laduke commented Mar 16, 2023

Hmm,
for me at the moment, it should be listening on a v4 and v6 address, but it's not listening on v6. 🤔

Mar 16 16:22:10.282  INFO zeronsd::init: Welcome to ZeroNS!
Mar 16 16:22:10.792  INFO zeronsd::init: Your IP for this network: fd15:9924:d630:f690:3d99:93e7:50c5:1646
Mar 16 16:22:10.792  INFO zeronsd::init: Your IP for this network: 172.24.8.153

lsof is strange on mac

here's a command that shows something like the right output

sudo lsof -aP -iUDP  | grep zeronsd
zeronsd   20631           root   12u  IPv4 0x6caae65784840593      0t0  UDP 172.24.8.153:53

if i start it without rfc4193 enabled, it still works on ipv4. not sure if related to #199

@erikh
Copy link
Contributor

erikh commented Mar 17, 2023 via email

@laduke
Copy link
Contributor Author

laduke commented Mar 17, 2023

pertty sure. I can bind nc on a zerotier interface on 53/udp and then talk to it.

@erikh
Copy link
Contributor

erikh commented Mar 17, 2023 via email

@laduke
Copy link
Contributor Author

laduke commented Mar 17, 2023

Thanks! I don't think this is hurting many users. So no worries.

It works sometimes but not others! Most often not.

It's failing at TcpListener::bind(sa).await?

error Os { code: 49, kind: AddrNotAvailable, message: "Can't assign requested address" } - fd15:9924:d630:f690:3d99:93e7:50c5:1646

That's fun.

200 listnetworks 159924d630f6903d lonely_szpakowski 3e:77:a6:f5:c0:62 OK PRIVATE feth3122 fd15:9924:d630:f690:3d99:93e7:50c5:1646/88,172.24.8.153/16
ifconfig feth3122
feth3122: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 5000 mtu 2800
        ether 3e:77:a6:f5:c0:62 
        inet 172.24.8.153 netmask 0xffff0000 broadcast 172.24.255.255
        inet6 fe80::3c77:a6ff:fef5:c062%feth3122 prefixlen 64 scopeid 0x15c 
        inet6 fd15:9924:d630:f690:3d99:93e7:50c5:1646 prefixlen 88 
        peer: feth8122
        nd6 options=201<PERFORMNUD,DAD>
        media: autoselect
        status: active

it could just be that macos is bad

@erikh
Copy link
Contributor

erikh commented Mar 17, 2023 via email

@laduke
Copy link
Contributor Author

laduke commented Mar 17, 2023

try multiple times! this is on main btw.

yeah. this isn't via the tests. using the actual app. so the address has be up and running for a long time, i can ping it, zeronsd does work on it sometimes.

@erikh
Copy link
Contributor

erikh commented Mar 18, 2023 via email

@laduke
Copy link
Contributor Author

laduke commented Mar 23, 2023

I can't reproduce this lately btw. 🤷
Might be some rare side effect only triggered by running tests and restarting the app 100s of times

@laduke laduke added the bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants