Comments (5)
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.
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.
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.
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.
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)
- Max Speed using IP over ICMP on Unlimited Bandiwidth Intenet HOT 5
- How adopt hans with openvpn HOT 3
- Windows Cliedt, Get right IP Address, But not ping. HOT 6
- Android Package HOT 30
- Supplying password through stdin
- Not dropping other groups when doing setuid HOT 2
- [MacOS client] Could not create tunnel device: No such file or directory HOT 3
- windows : Hans cannot assign requested address
- src/tun.cpp:45:9: warning: array index 20 is past the end of the array HOT 1
- connection is not created HOT 1
- It's alive? HOT 3
- Ifconfig is not always in /sbin/ifconfig
- Use HMAC for authentication
- Add IPv6 support HOT 2
- Constant No route to host while running the Windows version HOT 4
- Add site-to-site support
- How do I start hanstunnel in iOS 7.1? HOT 1
- Compile on windows HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hans.