Giter Site home page Giter Site logo

multiple clients fail about hans HOT 5 OPEN

friedrich avatar friedrich commented on August 23, 2024
multiple clients fail

from hans.

Comments (5)

raidenii avatar raidenii commented on August 23, 2024

I can confirm this issue. This sounds like a NAT traversal issue to me, seems that hans cannot handle multiple IPs behind the same NAT box.

from hans.

friedrich avatar friedrich commented on August 23, 2024

Thanks for reporting this! Hans identifies clients by their IP. This means it cannot handle multiple clients with one public IP. I will address this issue in the upcoming releases.

from hans.

raidenii avatar raidenii commented on August 23, 2024

Given the fact that NAT uses ICMP query ID to identify the machines behind NAT box, is it possible to do the same on hans? https://tools.ietf.org/html/rfc3022

from hans.

Masaq- avatar Masaq- commented on August 23, 2024

Implemented in #16

Identifying clients by ICMP Query ID is a fine idea. However I use a carrier grade NAT which rewrites the Query ID too frequently. In my case the Sequence Number remains untouched instead. So I have added options to identify clients either by Query ID or by Sequence Number.

from hans.

Masaq- avatar Masaq- commented on August 23, 2024

RFC 5508 says, "An ICMP Query session timer MUST NOT expire in less than 60 seconds. It is RECOMMENDED that the ICMP Query session timer be made configurable."

Apparently my carrier configured the carrier grade NAT to expire an ICMP session after one second. Ping still works with a one second timeout.

Hans default polling interval of 2000 ms is too long. I have made it configurable, and a polling interval of 900 ms maintains a Query ID mapping on my carrier grade NAT.

However I prefer not to use polling, and I still find the Sequence Number to be generally better suited as a client identifier.

from hans.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.