easytier提交

This commit is contained in:
rj
2025-11-17 15:10:38 +08:00
commit 0480e6ad25
2 changed files with 53 additions and 0 deletions

35
easytier/data/config.yaml Normal file
View File

@@ -0,0 +1,35 @@
hostname = "easytier"
instance_name = "default"
instance_id = "373d5d6d-b08a-456c-afc4-5d163f27b1d8"
dhcp = true
listeners = [
"tcp://0.0.0.0:11010",
"udp://0.0.0.0:11010",
]
[network_identity]
network_name = "default"
network_secret = ""
[flags]
[acl.acl_v1.group]
members = ["vicro-group"]
[[acl.acl_v1.group.declares]]
group_name = "vicro-group"
group_secret = "unh3b8Vf3sk5zU9yRSO6"
[[acl.acl_v1.chains]]
name = "default_inbound"
chain_type = 1
enabled = true
default_action = 2
[[acl.acl_v1.chains.rules]]
name = "allow_whole_group"
description = "允许组内所有流量"
priority = 1000
action = 1
source_groups = ["vicro-group"]
destination_groups = ["vicro-group"]
protocol = 1
enabled = true

View File

@@ -0,0 +1,18 @@
services:
easytier:
image: easytier/easytier:latest # 国内用户可以使用 m.daocloud.io/docker.io/easytier/easytier:latest
hostname: easytier
container_name: easytier
restart: unless-stopped
network_mode: host
cap_add:
- CAP_NET_ADMIN
- CAP_NET_RAW
environment:
- TZ=Asia/Shanghai
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- /etc/easytier:/home/dockerprojects/easytier
- /etc/machine-id:/etc/machine-id:ro # 映射宿主机机器码
command: