-
Notifications
You must be signed in to change notification settings - Fork 2
/
utt.yml
97 lines (77 loc) · 2.75 KB
/
utt.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# This is configuration file of UTT overlay network daemon.
#
# Overlay L2/L3 network router, designed for connecting cloud network infrastructure.
#
# for more information, see: https://github.com/Sunmxt/utt
#
# RPC endpoint used by Control Plane.
control:
# RPC network type.
type: unix
# network endpoint.
endpoint: /var/run/utt_control.sock
# enable debug
debug: false
# Virtual networks
link:
vnet1: # network name
# region tag of peer.
region: cn1
# The minimum number of peer to maintain for a region.
# Used for automatically recovering from network partition.
# minRegionPeer: 2 # (default: 2)
# Timeout (in second) for gossip quiting process.
# Gossip daemon will be forced to quit when quitTimeout is reached despite incompleted spreading of `leave` state.
# Specially, 0 means infinite timeout.
quitTimeout: 30
# [required] network mode. (could be: ethernet, overlay)
# ethernet:
# UTT works as a switch, relaying frames according to hardware address (MAC) via tunnels between network router peers.
# It forms a virtual large flat layer 2 ethernet.
#
# overlay:
# UTT works as a router, relaying packets according to IP and subnet settings via tunnels between network router peers.
# Multiple routers may exists within a same subnet to balance network traffic.
#
# for more details, see: https://github.com/Sunmxt/utt
mode: ethernet
iface: # VTEP config.
# [required] VTEP interface name.
name: tap2
# (ethernet only) VTEP Hardware address (or MAC Address)
mac: 12:38:ab:40:00:12
# [optional] IP CIDR assigned to VTEP.
address: 10.240.3.1/24
# [optional] CIDR range of whole virtual network.
network: 10.240.0.0/20
# multiqueue tuntap. (default: true)
multiqueue: true
# max forward threads. (default: 8)
# maxConcurrency: 8
# Backends that forming network underlay (or Data Plane).
backends:
-
# pre-shared key for encryption.
psk: 123456
# backend driver. only TCP supported yet.
type: tcp
# backend specific parameters. TCP parameters here.
params:
# listening endpoint.
bind: 0.0.0.0:3880
# publish endpoint.
publish: 192.168.0.161:80
# priority.
priority: 1
# encryption enable.
encrypt: true
# packet sending timeout.
# sendTimeout: 50
# TCP send buffer (in byte).
# sendBuffer: 0
# TCP Keepalive period (in second).
# keepalivePeriod: 60
# Timeout for establishing peer connection.
# connectTimeout: 15
# leading bytes of connection. May be used to identify UTT underlay connection.
startCode: "EA30B674"