-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.boot
330 lines (330 loc) · 7.87 KB
/
config.boot
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
firewall {
interface eth0 {
in {
ipv6-name "OUTSIDE-IN6"
name "OUTSIDE-IN"
}
local {
ipv6-name "OUTSIDE-LOCAL6"
name "OUTSIDE-LOCAL"
}
}
ipv6-name OUTSIDE-IN6 {
default-action "drop"
description "WAN inbound traffic forwarded to LAN"
enable-default-log { }
rule 10 {
action "accept"
description "Allow established/related sessions"
state {
established "enable"
related "enable"
}
}
rule 20 {
action "drop"
description "Drop invalid state"
state {
invalid "enable"
}
}
}
ipv6-name OUTSIDE-LOCAL6 {
default-action "drop"
description "WAN inbound traffic to the router"
enable-default-log { }
rule 10 {
action "accept"
description "Allow established/related sessions"
state {
established "enable"
related "enable"
}
}
rule 20 {
action "drop"
description "Drop invalid state"
state {
invalid "enable"
}
}
rule 30 {
action "accept"
description "Allow IPv6 icmp"
protocol "ipv6-icmp"
}
rule 40 {
action "accept"
description "allow dhcpv6"
destination {
port "546"
}
protocol "udp"
source {
port "547"
}
}
}
name OUTSIDE-IN {
default-action "drop"
rule 10 {
action "accept"
state {
established "enable"
related "enable"
}
}
rule 20 {
action "drop"
description "Drop invalid state"
state {
invalid "enable"
}
}
rule 30 {
action "accept"
description "Firewall: PiVPN"
destination {
address "192.168.1.210"
port "1194"
}
protocol "udp"
state {
new "enable"
}
}
rule 40 {
action "accept"
description "Firewall: Plex"
destination {
address "192.168.1.250"
port "32400"
}
disable { }
protocol "tcp"
state {
new "enable"
}
}
}
name OUTSIDE-LOCAL {
default-action "drop"
rule 10 {
action "accept"
description "Allow established/related"
state {
established "enable"
related "enable"
}
}
rule 20 {
action "drop"
description "Drop invalid state"
state {
invalid "enable"
}
}
}
}
interfaces {
ethernet eth0 {
address "dhcp"
address "dhcpv6"
description "OUTSIDE"
dhcpv6-options {
pd 0 {
interface eth1 {
address "1"
sla-id "0"
}
length "64"
}
rapid-commit { }
}
ipv6 {
address {
autoconf { }
}
}
offload {
gro { }
gso { }
sg { }
tso { }
}
}
ethernet eth1 {
address "192.168.1.1/24"
description "INSIDE"
offload {
gro { }
gso { }
sg { }
tso { }
}
}
loopback lo { }
}
nat {
destination {
rule 11 {
description "Port Forward: xxxx"
destination {
port "xxxxx"
}
inbound-interface "eth0"
protocol "tcp"
translation {
address "192.168.1.xxx"
}
}
rule 12 {
description "Port Forward: xxxxx"
destination {
port "xxx"
}
inbound-interface "eth0"
protocol "udp"
translation {
address "192.168.1.xxx"
}
}
}
source {
rule 100 {
outbound-interface "eth0"
source {
address "192.168.1.0/24"
}
translation {
address "masquerade"
}
}
}
}
qos {
interface eth0 {
egress "CAKE_UP"
}
interface eth1 {
egress "CAKE_DOWN"
}
policy {
cake CAKE_DOWN {
bandwidth "900mbit"
}
cake CAKE_UP {
bandwidth "22mbit"
}
}
}
service {
dhcp-server {
shared-network-name LAN {
subnet 192.168.1.0/24 {
default-router "192.168.1.1"
domain-name "vyos.net"
lease "86400"
name-server "192.168.1.xxx"
range 0 {
start "192.168.1.9"
stop "192.168.1.254"
}
static-mapping OmadaController {
ip-address "192.168.1.xxx"
mac-address "xx:xx:xx:xx:xx:xx"
}
static-mapping PiHole {
ip-address "192.168.1.xxx"
mac-address "xx:xx:xx:xx:xx:xx"
}
static-mapping PiVPN {
ip-address "192.168.1.xxx"
mac-address "xx:xx:xx:xx:xx:xx"
}
static-mapping TrueNAS {
ip-address "192.168.1.xxx"
mac-address "xx:xx:xx:xx:xx:xx"
}
}
}
}
dns {
forwarding {
allow-from "192.168.1.0/24"
cache-size "0"
listen-address "192.168.1.1"
}
}
ntp {
allow-client {
address "0.0.0.0/0"
address "::/0"
}
server time1.vyos.net { }
server time2.vyos.net { }
server time3.vyos.net { }
}
router-advert {
interface eth1 {
default-lifetime "300"
default-preference "high"
hop-limit "64"
interval {
max "30"
}
link-mtu "1500"
name-server "xxxx::xxxx:xxxx:xxxx:xxxx"
other-config-flag { }
prefix ::/64 {
preferred-lifetime "300"
valid-lifetime "900"
}
reachable-time "900000"
retrans-timer "0"
}
}
ssh {
port "22"
}
}
system {
config-management {
commit-revisions "100"
}
conntrack {
modules {
ftp { }
h323 { }
nfs { }
pptp { }
sip { }
sqlnet { }
tftp { }
}
}
console {
device ttyS0 {
speed "115200"
}
}
host-name "vyos"
login {
user {Your name Here} {
authentication {
encrypted-password ""
}
}
}
name-server "eth0"
syslog {
global {
facility all {
level "info"
}
facility local7 {
level "debug"
}
}
}
}