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

Hairpin Mode #24

Open
zhouhaibing089 opened this issue Jul 3, 2017 · 0 comments
Open

Hairpin Mode #24

zhouhaibing089 opened this issue Jul 3, 2017 · 0 comments

Comments

@zhouhaibing089
Copy link
Owner

zhouhaibing089 commented Jul 3, 2017

Put it simply: NAT Loopback.

举例说:

              C
         65.102.10.35
              |
              |
              |
         65.102.10.34
          R(router)
         192.168.1.1     
          /      \
         /        \
        /          \
       /            \
      A              B
192.168.1.2    192.168.1.3

当A和B都和公网上的机器通信(比如说C)时, 路由器会给A和B做NAT, 比如说A(65.102.10.34:8888), B(65.102.10.34:9999).

当A给65.102.10.34:9999发包时, 路由器的公网port会loopback. 此为hairpin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant