💌Tips: 玩法比较多样,可以用来打内网。
VPS:
easytier-core -c /opt/easytier/config/default.conf
配置文件
instance_name = "default"
dhcp = true
listeners = [
"tcp://0.0.0.0:11010",
"udp://0.0.0.0:11010",
"wg://0.0.0.0:11011",
"ws://0.0.0.0:11011/",
"wss://0.0.0.0:11012/",
]
exit_nodes = []
peer = []
rpc_portal = "0.0.0.0:15888"[network_identity]
network_name = "default"
network_secret = "xxxx"
# WireGuard 配置信息
[vpn_portal_config]
# WireGuard 客户端所在的网段,下面为示例
client_cidr = "10.14.14.0/24"
#wg所监听的端口(请勿和listeners的wg冲突)
wireguard_listen = "0.0.0.0:11013"
[flags]
default_protocol = "wss"
dev_name = ""
enable_encryption = true
enable_ipv6 = true
mtu = 1380
latency_first = true
enable_exit_node = false
no_tun = false
use_smoltcp = false
foreign_network_whitelist = "*"
disable_p2p = false
relay_all_peer_rpc = false
sudo easytier-core --ipv4 192.168.1.2 --peers udp://vpsip:11010 --network-secret xxxx -n 家里内网网段(192.168.1.1/24)
easytier-core --ipv4 192.12.1.1 --peers udp://vpsip:11010 --network-secret xxxx
或者 GUI 配置
在 vps 上执行
easytier-cli vpn-portal
https://www.wireguardconfig.com/qrcode 生成二维码扫码配置。
改天再尝试网对网,双内网互通。
https://www.easytier.top/guide/network/two-node-networking.html