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

should bind on ipv4 and ipv6 per default #54

Open
yonghan opened this issue Oct 2, 2020 · 4 comments
Open

should bind on ipv4 and ipv6 per default #54

yonghan opened this issue Oct 2, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@yonghan
Copy link

yonghan commented Oct 2, 2020

I have having a hard time joining the mesh network started by the designated VPS.

The error message is always either 'connection refused', or 'i/o timeout'.

I was connecting both through IPv4 and IPv6 and got the same results.

Ports are opened.

@costela
Copy link
Owner

costela commented Oct 2, 2020

This sounds a lot like a firewall issue. What do you mean "ports are opened"? Can you try something like the following:

On hostA:
nc -l -u 51820

On hostB:
nc hostA -u 51820

This should allow you to type stuff in one terminal and see it appear in the second. If that doesn't work, then you have a network issue and something is filtering the packets. You should also try the same for port 7946.

@yonghan
Copy link
Author

yonghan commented Oct 2, 2020

I realized that nc over IPv4 works perfectly, so I tried connecting wesher through IPv4 and it connects and I can ping the two hosts using the in-tunnel IPv4 address.

Here's what I did:

On Host A:
# wesher --cluster-key XXXX

On Host B:
# wesher --cluster-key XXXX --join 1.23.45.67

They connect. (Not sure what happened when I posted my OP stating it doesn't work over IPv4)

However connecting through IPv6 still yielded the same errors as above.
On Host B:
# wesher --cluster-key XXXX --join 2001:db8::3
yields
* Failed to join 2001:db8::3: dial tcp [2001:db8::3]:7946: connect: connection refused

I double checked the firewalls on both hosts and the have been set up to allow connections on ports 7946 and 51820.

@yonghan
Copy link
Author

yonghan commented Oct 2, 2020

I have to specifically bind wesher on Host A to use IPv6 address in order to let Host B to connect via IPv6.

@costela costela changed the title Failed to join should bind on ipv4 and ipv6 per default Oct 3, 2020
@costela
Copy link
Owner

costela commented Oct 3, 2020

Indeed, the automatic binding isn't picking up ipv6. Will have to look into it.

@costela costela added the bug Something isn't working label Oct 3, 2020
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