summarylogtreecommitdiffstats
path: root/config.toml
blob: 0b8d2b063f424ddc2d245f13fa38b69b662a949a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Instance name, used to identify this VPN node on the same machine
instance_name = ""
# Hostname, used to identify the hostname of this device
hostname = ""
# Instance ID, generally a UUID, unique within the same VPN network
instance_id = ""
# IPv4 address of this VPN node, if empty, this node will only forward packets and will not create a TUN device
ipv4 = ""
# Automatically determined and set IP address by Easytier, default starts from 10.0.0.1. Warning: When using DHCP, if there is an IP conflict in the network, the IP will automatically change
dhcp = false

# List of listeners, used to accept connections
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 node list
exit_nodes = [
]

# RPC portal address for management
rpc_portal = "127.0.0.1:15888"

[network_identity]
# Network name, used to identify the VPN network
network_name = ""
# Network secret, used to verify that this node belongs to the VPN network
network_secret = ""

# Peer connection node configuration, can have multiple configurations
[[peer]]
uri = ""

[[peer]]
uri = ""

# Subnet proxy node configuration, can have multiple configurations
[[proxy_network]]
cidr = "10.0.1.0/24"

[[proxy_network]]
cidr = "10.0.2.0/24"

[flags]
# Default protocol used to connect to peer nodes
default_protocol = "tcp"
# TUN device name, if empty, the default name will be used
dev_name = ""
# Enable encryption
enable_encryption = true
# Enable IPv6 support
enable_ipv6 = true
# MTU of the TUN device
mtu = 1380
# Latency-first mode, will attempt to forward traffic using the lowest latency path, default is to use the shortest path
latency_first = false
# Configure this node as an exit node
enable_exit_node = false
# Disable TUN device
no_tun = false
# Enable smoltcp stack for subnet proxy
use_smoltcp = false
# Only forward traffic for whitelisted networks, supports wildcard strings. Multiple network names can be separated by spaces. If this parameter is empty, forwarding is disabled. Default allows all networks. For example: '*' (all networks), 'def*' (networks prefixed with def), 'net1 net2' (only allow net1 and net2)
foreign_network_whitelist = "*"