Use experience of NAT hole drilling networking software (ZeroTier)

Summarized the experience of using ZeroTier and other NAT hole drilling and networking software recently, including the use effect of official services and the use experience of self built Planet+Moon.

reason

It has been said before that Mobile has cancelled the public IPv6 of rental housing:

Sad News: China Mobile Broadband no longer assigns me an IPv6 address
https://www.azimiao.com/9357.html

Returning home during the Spring Festival, in order to maintain the management of rental equipment and meet the data transmission needs, we investigated a wave of common intranet penetration and NAT hole drilling networking software solutions, and finally chose two mature solutions to deploy for mutual backup, while adding a Fallback:

  • Scheme 1: ZeroTier networking
  • Scheme 2: Tailscale networking
  • Fallback: peanut shell

In the initial test, Tailscale's hole drilling effect was not good, so it was abandoned. Later, it mainly struggled with ZeroTier.

I have been living in the company dormitory in recent working days, and also use ZeroTier and rental houses for virtual networking. Therefore, this article covers the following application scenarios:

  • Non local Telecom/China Unicom and Beijing Mobile
  • Local Beijing Mobile makes holes for networking

I will record the usage for others' reference.

topological structure

This is the simple topology of my network equipment in the rental house:

I installed the ZeroTier client on OpenWrtVM, and enabled NAT, firewall and other devices that should be opened. The release of this release enables them to forward traffic to other devices in the intranet.

In order to achieve traffic forwarding, you also need to forward the 192.168.5.0/24 traffic to the OpenWrtVM ZeroTier IP in the router settings of the ZeroTier management panel.

Use Results

Provincial Unicom/Telecom

During the Spring Festival, on the first day of networking, China Unicom in its hometown and Beijing Mobile in the rented house failed to get through. The two exchanged data through ZeroTier's official Planet and Moon, with a high delay.

On the second day of networking, China Unicom and Beijing Mobile got through to each other (the reason is unknown), and the data exchange can reach the maximum value of one side's uplink:

Using ZeroTier in the App Store, the mobile phone can also communicate with Beijing Mobile, which rents the house, by borrowing the data of China Telecom Mobile.

Beijing Mobile Exchange Visit

Recently, I lived in the company dormitory, which is also Beijing Mobile.

In the dormitory of Beijing Mobile, I tried ZeroTier to establish a network with Beijing Mobile in the rental house, but I couldn't get through. I had to go through the official direct connection, with a delay of 500+ms, and the data exchange bandwidth was only more than 200 KiB.

Repeated attempts to network and replace other types of software (such as Tailscale, self built Headscale, etc.) have failed.

Finally, the scheme of self built ZeroTier Planet+self built ZeroTier Moon was selected. Planet uses overseas servers and Moon uses domestic servers.

Through the transfer of the domestic server Moon, the delay of two Beijing Mobile that are physically not more than 40 kilometers away is as follows:

Due to the principle, the bandwidth is limited by the maximum uplink/downlink bandwidth of the national Moon node.

Of course, it is not necessary to build a Planet server by yourself. You only need to build a Moon by yourself to reduce latency.

Zimiao haunting blog (azimiao. com) All rights reserved. Please note the link when reprinting: https://www.azimiao.com/10452.html
Welcome to the Zimiao haunting blog exchange group: three hundred and thirteen million seven hundred and thirty-two thousand

Comment

*

*