移动云手机安装Derp模块,实现异地组网

Derp是Tailscale异地组网的中转服务,网上大多数教程都是讲用服务器纯IP搭建Derp,但是国内服务器大家都清楚,带宽很小还贵,但是用海外服务器搭建的话延迟又高

今天用的是移动云手机安装Derp模块,移动云手机是G口NAT,速度不用讲了

Derper_for_Magisk下载

直接用Magisk安装模块,用的是10003端口

图片[1]|移动云手机安装Derp模块,实现异地组网 - 5v|5v

tailscale用户控制台找到Acces controls,直接贴我的配置如下

// Example/default ACLs for unrestricted connections.
{
	// Declare static groups of users. Use autogroups for all users or users with a specific role.
	// "groups": {
	//  	"group:example": ["[email protected]", "[email protected]"],
	// },
	"derpMap": {
		"OmitDefaultRegions": true,
		"Regions": {
			"900": {
				"RegionID":   900,
				"RegionCode": "myderp",
				"Nodes": [
					{
						"Name":             "a",
						"RegionID":         900,
						"DERPPort":         10003对应的外网端口,
						"IPv4":             "IP",
						"InsecureForTests": true,
					},
				],
			},
		},
	},

	// Define the tags which can be applied to devices and by which users.
	// "tagOwners": {
	//  	"tag:example": ["autogroup:admin"],
	// },

	// Define access control lists for users, groups, autogroups, tags,
	// Tailscale IP addresses, and subnet ranges.
	"acls": [
		// Allow all connections.
		// Comment this section out if you want to define specific restrictions.
		{"action": "accept", "src": ["*"], "dst": ["*:*"]},

		// Allow users in "group:example" to access "tag:example", but only from
		// devices that are running macOS and have enabled Tailscale client auto-updating.
		// {"action": "accept", "src": ["group:example"], "dst": ["tag:example:*"], "srcPosture":["posture:autoUpdateMac"]},
	],

	// Define postures that will be applied to all rules without any specific
	// srcPosture definition.
	// "defaultSrcPosture": [
	//      "posture:anyMac",
	// ],

	// Define device posture rules requiring devices to meet
	// certain criteria to access parts of your system.
	// "postures": {
	//      // Require devices running macOS, a stable Tailscale
	//      // version and auto update enabled for Tailscale.
	// 	"posture:autoUpdateMac": [
	// 	    "node:os == 'macos'",
	// 	    "node:tsReleaseTrack == 'stable'",
	// 	    "node:tsAutoUpdate",
	// 	],
	//      // Require devices running macOS and a stable
	//      // Tailscale version.
	// 	"posture:anyMac": [
	// 	    "node:os == 'macos'",
	// 	    "node:tsReleaseTrack == 'stable'",
	// 	],
	// },

	// Define users and devices that can use Tailscale SSH.
	"ssh": [
		// Allow all users to SSH into their own devices in check mode.
		// Comment this section out if you want to define specific restrictions.
		{
			"action": "check",
			"src":    ["autogroup:member"],
			"dst":    ["autogroup:self"],
			"users":  ["autogroup:nonroot", "root"],
		},
	],

	// Test access rules every time they're saved.
	// "tests": [
	//  	{
	//  		"src": "[email protected]",
	//  		"accept": ["tag:example"],
	//  		"deny": ["100.101.102.103:443"],
	//  	},
	// ],
}

延迟很低

图片[2]|移动云手机安装Derp模块,实现异地组网 - 5v|5v

连接一下我的魔云腾盒子

图片[3]|移动云手机安装Derp模块,实现异地组网 - 5v|5v

即使操作组网的安卓容器都很顺畅

 

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享