-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtr02-vyos-config.yaml
132 lines (132 loc) · 2.84 KB
/
rtr02-vyos-config.yaml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
cluster {
dead-interval 1100
group exabit.io {
auto-failback false
primary rtr01
secondary rtr02
service 10.0.0.254/24/bond1
service 192.168.0.2/24/eth3
}
interface bond1
keepalive-interval 500
mcast-group 239.1.0.254
monitor-dead-interval 1100
pre-shared-secret ****************
}
interfaces {
bonding bond1 {
address 10.0.0.2/24
description LAN
member {
interface eth0
interface eth2
}
mode active-backup
primary eth0
}
ethernet eth3 {
address dhcp
}
wireguard wg0 {
address 10.1.0.2/24
description "Wireguard VPN Service"
peer nbritton {
allowed-ips 10.0.0.0/8
persistent-keepalive 15
pubkey ****************
}
port 31459
}
}
nat {
source {
rule 100 {
outbound-interface eth3
source {
address 10.0.0.0/24
}
translation {
address masquerade
}
}
}
}
service {
dhcp-server {
shared-network-name exabit.io {
subnet 10.0.0.0/24 {
default-router 10.0.0.254
dns-server 8.8.8.8
dns-server 1.1.1.1
dns-server 8.8.4.4
dns-server 1.0.0.1
domain-name exabit.io
domain-search exabit.io
failover {
local-address 10.0.0.2
name dhcp-failover
peer-address 10.0.0.1
status secondary
}
lease 10800
ntp-server 10.0.0.1
ntp-server 10.0.0.2
ntp-server 10.0.0.3
range 1 {
start 10.0.0.100
stop 10.0.0.200
}
}
}
}
lldp {
interface all {
}
management-address 10.0.0.2
}
ssh {
port 22
}
}
system {
config-management {
commit-revisions 100
}
console {
device ttyS0 {
speed 115200
}
}
domain-name exabit.io
host-name rtr02
login {
user vyos {
authentication {
encrypted-password ****************
plaintext-password ****************
}
level admin
}
}
ntp {
allow-clients {
address 10.0.0.0/8
}
listen-address 10.0.0.2
server 0.us.pool.ntp.org {
}
server 1.us.pool.ntp.org {
}
server 2.us.pool.ntp.org {
}
server 3.us.pool.ntp.org {
}
}
syslog {
global {
facility all {
level info
}
}
}
}