[zerotier] Solve the problem of zerotier's intranet penetration and failure to connect to the server

1. Problem description

  • Problem background: The server in the laboratory uses zerotier for networking. In normal experiments, zerotier is used to achieve intranet penetration and then connect to the server.
  • Configuration method: My computer system is Windows 10, and the connection to the server is achieved through "zerotier intranet penetration + VSCode remote development". For specific configuration methods, please refer to the article
  • Problem description: Recently, I was using the server intensively to run experiments. One night (9:00 pm on August 9, 2023), after running the code in the server background, I ran out to eat Haidilao. During this period, VSCode was connected to the server and the computer was not working. close. When I came back at two o'clock in the morning, the computer was in hibernation. When I turned on the computer, I found that VSCode was also disconnected from the server. I thought it was automatically disconnected due to too much standby time as usual, but I didn't expect that I couldn't connect anymore.
  • Specific description: After being unable to connect to the server, the Status on the zerotier UI is "OK", but the server cannot be pinged; I did not use the command line to check the zerotier-cli statuszerotier connection status, but I guess the status should be "OFFLINE", that is, "200 info ### ######## 1.10.6 OFFLINE”

    Insert image description here
    zerotier UI

    Insert image description here
    zerotier virtual LAN management web page

    Insert image description here
    I cry

2. One sentence solution

  1. Checking the post bar, I found that the reason for the problem seems to be that zerotier has been blocked by the operator? ! And it seems like this happens for a period of time every year
  2. The solution is: turn on the IPV6 protocol on the computer, switch to the IPV6 network, and use zerotier under the IPV6 network (networks in many places do not have IPV6 enabled, and my school’s campus network does not. I created IPV6 by opening a hotspot on my mobile phone. network, and can connect to the server again, but the speed is very slow)

    Insert image description here
    How to turn on the computer IPV6 protocol

3. Resolution process

Reinstall zerotier 1.10.6

method

  1. delete directoryC:\ProgramData\ZeroTier\One
  2. windows uninstall zerotier
  3. Install the latest version of zerotier on the official website
  4. Join the network and gain access

Report an error

  1. Status in zerotier UI changed to "REQUESTING_CONFIGURATION"

Downgrade the version and install zerotier 1.6.1

method

  1. Uninstall the current version of zerotier as above
  2. Refer to the article to downgrade the version and reinstall the zerotier1.6.1 version.

Report an error

  1. The Node ID in the zerotier UI is displayed as "unknown" (from Status to "OK" to Status to "REQUESTING_CONFIGURATION", to Node ID "unknown", this is getting worse)

linux installation zerotier 1.10.6

method

  1. Because I have dual systems, I switched to Linux. I installed zerotier under Linux according to the article and joined the network.

Report an error

  1. Still unable to ping the server under linux
  2. At this time, it is found that the zerotier UI under the windows system has displayed the Node ID (the windows zerotier version is 1.6.1 at this time), but the Status has returned to "REQUESTING_CONFIGURATION"

装zerotier 1.8.2

Report an error

  1. Status is still "REQUESTING_CONFIGURATION"

装回zerotier 1.10.6

Install the latest version and let it run its course.

Report an error

  1. At this time, the zerotier UI crash occurs. Refer to the article and install 1.6.1 first, then overwrite and install 1.10.6 to solve the problem.
  2. The Status is "REQUESTING_CONFIGURATION", but it changed to "OK" after a while (it should have changed by itself)

final solution

method

  1. After a while, I had to run the experiment again, so I tried to ping the server on the Linux system. I accidentally zerotier-cli statusfound that zerotier was always in the OFFLINE state through the command line.
  2. Return to the windows system (zerotier version is 1.10.6) and check (open the command line as administrator and execute zerotier-cli status), and find that it is also in the OFFLINE status (although the network status is displayed in the zerotier UI as OK)

    Insert image description here
    OFFLINE

  3. Guess, "200 info ########### 1.10.6 OFFLINE" in the command line indicates the zerotier user connection status, and the Status in the zerotier UI indicates the network configuration status: OK indicates that the configuration is complete, and REQUESTING_CONFIGURATION indicates waiting. Configuration (the reason why REQUESTING_CONFIGURATION appears may be that my zerotier user is not connected and cannot configure the network)
  4. Through the help of Tieba , I learned that currently zerotier can be ONLINE under IPV6 network, and OFFLINE under IPV4. Finally, I checked the campus network and found that the campus network does not support IPV6 (you can check it by opening the web page), and then opened the mobile phone hotspot (set to IPV6: Mobile phone settings – more – mobile network – access point name (APN) – go in and find the APN protocol – set to ipv6), connect the computer to the hotspot, wait a few minutes until ONLINE, and then connect to the server

    Insert image description here
    Network IPV6 detection

    Insert image description here
    ONLINE

Guess you like

Origin blog.csdn.net/qq_61683908/article/details/132395184
Recommended