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

Custom network overlay does not work for all ip addresses #703

Closed
n9iels opened this issue Mar 16, 2020 · 5 comments
Closed

Custom network overlay does not work for all ip addresses #703

n9iels opened this issue Mar 16, 2020 · 5 comments
Labels
priority: low Should be addressed at some point in the future

Comments

@n9iels
Copy link
Contributor

n9iels commented Mar 16, 2020

General

After having troubles with following the "Creating your first overlay" tutorial (see: #698) I noticed that my laptop was not able to find any peers on the office network, but that it was working at my home network. The main difference is that my home network gives my laptop a IP in the range of 192.168.2.x, while the office network gives my laptop a IP in the range of 10.x.x.x. I can also reproduce this issue when using a mobile hotspot which gives me a IP in t he range of 192.168.43.x.

Reproducing the issue

  1. Implement the "Printing the known peers" section of the "Creating your first overlay" tutorial
  2. Verify that the output is as expected (the described output in the tutorial)
  3. Connect to a mobile hotspot
  4. Re-run the script and verify that no peer could be found anymore

System information

  • Latest version of master (f9afbb94f710717b6cf40e1a228cb3168dd2ce68)
  • Python 3.7.5
@qstokkink
Copy link
Collaborator

Interesting, do you have netifaces installed?

@n9iels
Copy link
Contributor Author

n9iels commented Mar 16, 2020

Yes, I used the provided requirements.txt and I verified that the corresponding methods are used. For example in endpoint.py the get_lan_address_without_netifaces() method is not used.

@qstokkink
Copy link
Collaborator

Reproducing this will probably take a little while, sounds like an issue with the type of NAT (though it really should work). At some point we'll have to patch up and systematically test configurations with our NAT setup. I'll try to reproduce your setup and hope the problem occurs.

@synctext official request for another student on NAT traversal 😃

@qstokkink qstokkink added the priority: medium Enhancements, features or exotic bugs label Mar 17, 2020
@qstokkink
Copy link
Collaborator

qstokkink commented May 1, 2020

I actually managed to reproduce this today. For some reason the WAN->LAN address translation/estimation is broken when two machines are behind the same WAN address.

EDIT: nevermind, I was running an experiment that changed the walking.

@qstokkink qstokkink added the priority: low Should be addressed at some point in the future label Oct 29, 2020
@qstokkink qstokkink removed the priority: medium Enhancements, features or exotic bugs label Nov 24, 2021
@qstokkink
Copy link
Collaborator

This should have been fixed by #1133, at least to the point that it can reasonably be fixed by IPv8's NAT puncturing approach. Different approaches than the current one are discussed in Tribler/tribler#2754 (superseding this issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Should be addressed at some point in the future
Development

No branches or pull requests

2 participants