-
Notifications
You must be signed in to change notification settings - Fork 1
/
struct-xml-opn.go
1163 lines (1161 loc) · 44.1 KB
/
struct-xml-opn.go
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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package opnborg
import "encoding/xml"
// Opnsense xml schema
type Opnsense struct {
XMLName xml.Name `xml:"opnsense"`
Text string `xml:",chardata"`
Theme string `xml:"theme"`
Sysctl struct {
Text string `xml:",chardata"`
Item []struct {
Text string `xml:",chardata"`
Descr string `xml:"descr"`
Tunable string `xml:"tunable"`
Value string `xml:"value"`
} `xml:"item"`
} `xml:"sysctl"`
System struct {
Text string `xml:",chardata"`
Optimization string `xml:"optimization"`
Hostname string `xml:"hostname"`
Domain string `xml:"domain"`
Dnsallowoverride string `xml:"dnsallowoverride"`
Group struct {
Text string `xml:",chardata"`
Name string `xml:"name"`
Description string `xml:"description"`
Scope string `xml:"scope"`
Gid string `xml:"gid"`
Member string `xml:"member"`
Priv string `xml:"priv"`
} `xml:"group"`
User []struct {
Text string `xml:",chardata"`
Name string `xml:"name"`
Descr string `xml:"descr"`
Scope string `xml:"scope"`
Groupname string `xml:"groupname"`
Password string `xml:"password"`
Uid string `xml:"uid"`
Priv []string `xml:"priv"`
Expires string `xml:"expires"`
Authorizedkeys string `xml:"authorizedkeys"`
OtpSeed string `xml:"otp_seed"`
Apikeys struct {
Text string `xml:",chardata"`
Item struct {
Text string `xml:",chardata"`
Key string `xml:"key"`
Secret string `xml:"secret"`
} `xml:"item"`
} `xml:"apikeys"`
} `xml:"user"`
Nextuid string `xml:"nextuid"`
Nextgid string `xml:"nextgid"`
Timezone string `xml:"timezone"`
Timeservers string `xml:"timeservers"`
Webgui struct {
Text string `xml:",chardata"`
Protocol string `xml:"protocol"`
SslCertref string `xml:"ssl-certref"`
} `xml:"webgui"`
Disablenatreflection string `xml:"disablenatreflection"`
Usevirtualterminal string `xml:"usevirtualterminal"`
Disableconsolemenu string `xml:"disableconsolemenu"`
Disablevlanhwfilter string `xml:"disablevlanhwfilter"`
Disablechecksumoffloading string `xml:"disablechecksumoffloading"`
Disablesegmentationoffloading string `xml:"disablesegmentationoffloading"`
Disablelargereceiveoffloading string `xml:"disablelargereceiveoffloading"`
Ipv6allow string `xml:"ipv6allow"`
PowerdAcMode string `xml:"powerd_ac_mode"`
PowerdBatteryMode string `xml:"powerd_battery_mode"`
PowerdNormalMode string `xml:"powerd_normal_mode"`
Bogons struct {
Text string `xml:",chardata"`
Interval string `xml:"interval"`
} `xml:"bogons"`
PfShareForward string `xml:"pf_share_forward"`
LbUseSticky string `xml:"lb_use_sticky"`
Ssh struct {
Text string `xml:",chardata"`
Group string `xml:"group"`
} `xml:"ssh"`
Rrdbackup string `xml:"rrdbackup"`
Netflowbackup string `xml:"netflowbackup"`
Firmware struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Mirror string `xml:"mirror"`
Flavour string `xml:"flavour"`
Plugins string `xml:"plugins"`
Type string `xml:"type"`
Subscription string `xml:"subscription"`
Reboot string `xml:"reboot"`
} `xml:"firmware"`
Dnsserver string `xml:"dnsserver"`
Backup struct {
Text string `xml:",chardata"`
Git struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Enabled string `xml:"enabled"`
URL string `xml:"url"`
Branch string `xml:"branch"`
Privkey string `xml:"privkey"`
User string `xml:"user"`
Password string `xml:"password"`
} `xml:"git"`
} `xml:"backup"`
Language string `xml:"language"`
DnsallowoverrideExclude string `xml:"dnsallowoverride_exclude"`
Dns1gw string `xml:"dns1gw"`
Dns2gw string `xml:"dns2gw"`
Dns3gw string `xml:"dns3gw"`
Dns4gw string `xml:"dns4gw"`
Dns5gw string `xml:"dns5gw"`
Dns6gw string `xml:"dns6gw"`
Dns7gw string `xml:"dns7gw"`
Dns8gw string `xml:"dns8gw"`
} `xml:"system"`
Interfaces struct {
Text string `xml:",chardata"`
Lan struct {
Text string `xml:",chardata"`
Enable string `xml:"enable"`
If string `xml:"if"`
Ipaddr string `xml:"ipaddr"`
Subnet string `xml:"subnet"`
Ipaddrv6 string `xml:"ipaddrv6"`
Subnetv6 string `xml:"subnetv6"`
Media string `xml:"media"`
Mediaopt string `xml:"mediaopt"`
Gateway string `xml:"gateway"`
Gatewayv6 string `xml:"gatewayv6"`
Descr string `xml:"descr"`
} `xml:"lan"`
Lo0 struct {
Text string `xml:",chardata"`
InternalDynamic string `xml:"internal_dynamic"`
Descr string `xml:"descr"`
Enable string `xml:"enable"`
If string `xml:"if"`
Ipaddr string `xml:"ipaddr"`
Ipaddrv6 string `xml:"ipaddrv6"`
Subnet string `xml:"subnet"`
Subnetv6 string `xml:"subnetv6"`
Type string `xml:"type"`
Virtual string `xml:"virtual"`
} `xml:"lo0"`
Wireguard struct {
Text string `xml:",chardata"`
InternalDynamic string `xml:"internal_dynamic"`
Descr string `xml:"descr"`
If string `xml:"if"`
Virtual string `xml:"virtual"`
Enable string `xml:"enable"`
Type string `xml:"type"`
Networks string `xml:"networks"`
} `xml:"wireguard"`
Opt1 struct {
Text string `xml:",chardata"`
Descr string `xml:"descr"`
If string `xml:"if"`
} `xml:"opt1"`
} `xml:"interfaces"`
Dhcpd struct {
Text string `xml:",chardata"`
Lan struct {
Text string `xml:",chardata"`
Range struct {
Text string `xml:",chardata"`
From string `xml:"from"`
To string `xml:"to"`
} `xml:"range"`
} `xml:"lan"`
} `xml:"dhcpd"`
Snmpd struct {
Text string `xml:",chardata"`
Syslocation string `xml:"syslocation"`
Syscontact string `xml:"syscontact"`
Rocommunity string `xml:"rocommunity"`
} `xml:"snmpd"`
Nat struct {
Text string `xml:",chardata"`
Outbound struct {
Text string `xml:",chardata"`
Mode string `xml:"mode"`
} `xml:"outbound"`
} `xml:"nat"`
Filter struct {
Text string `xml:",chardata"`
Rule []struct {
Text string `xml:",chardata"`
Type string `xml:"type"`
Ipprotocol string `xml:"ipprotocol"`
Descr string `xml:"descr"`
Interface string `xml:"interface"`
Source struct {
Text string `xml:",chardata"`
Network string `xml:"network"`
} `xml:"source"`
Destination struct {
Text string `xml:",chardata"`
Any string `xml:"any"`
} `xml:"destination"`
} `xml:"rule"`
} `xml:"filter"`
Rrd struct {
Text string `xml:",chardata"`
Enable string `xml:"enable"`
} `xml:"rrd"`
Ntpd struct {
Text string `xml:",chardata"`
Prefer string `xml:"prefer"`
Logpeer string `xml:"logpeer"`
Logsys string `xml:"logsys"`
Statsgraph string `xml:"statsgraph"`
} `xml:"ntpd"`
Revision struct {
Text string `xml:",chardata"`
Username string `xml:"username"`
Time string `xml:"time"`
Description string `xml:"description"`
} `xml:"revision"`
OPNsense struct {
Text string `xml:",chardata"`
DHCRelay struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
} `xml:"DHCRelay"`
Proxy struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
ErrorPages string `xml:"error_pages"`
IcpPort string `xml:"icpPort"`
Logging struct {
Text string `xml:",chardata"`
Enable struct {
Text string `xml:",chardata"`
AccessLog string `xml:"accessLog"`
StoreLog string `xml:"storeLog"`
} `xml:"enable"`
IgnoreLogACL string `xml:"ignoreLogACL"`
Target string `xml:"target"`
} `xml:"logging"`
AlternateDNSservers string `xml:"alternateDNSservers"`
ForwardedForHandling string `xml:"forwardedForHandling"`
UriWhitespaceHandling string `xml:"uriWhitespaceHandling"`
EnablePinger string `xml:"enablePinger"`
UseViaHeader string `xml:"useViaHeader"`
SuppressVersion string `xml:"suppressVersion"`
Connecttimeout string `xml:"connecttimeout"`
VisibleEmail string `xml:"VisibleEmail"`
VisibleHostname string `xml:"VisibleHostname"`
Cache struct {
Text string `xml:",chardata"`
Local struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Directory string `xml:"directory"`
CacheMem string `xml:"cache_mem"`
MaximumObjectSize string `xml:"maximum_object_size"`
MaximumObjectSizeInMemory string `xml:"maximum_object_size_in_memory"`
MemoryCacheMode string `xml:"memory_cache_mode"`
Size string `xml:"size"`
L1 string `xml:"l1"`
L2 string `xml:"l2"`
CacheLinuxPackages string `xml:"cache_linux_packages"`
CacheWindowsUpdates string `xml:"cache_windows_updates"`
} `xml:"local"`
} `xml:"cache"`
Traffic struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
MaxDownloadSize string `xml:"maxDownloadSize"`
MaxUploadSize string `xml:"maxUploadSize"`
OverallBandwidthTrotteling string `xml:"OverallBandwidthTrotteling"`
PerHostTrotteling string `xml:"perHostTrotteling"`
} `xml:"traffic"`
Parentproxy struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Host string `xml:"host"`
Enableauth string `xml:"enableauth"`
User string `xml:"user"`
Password string `xml:"password"`
Port string `xml:"port"`
Localdomains string `xml:"localdomains"`
Localips string `xml:"localips"`
} `xml:"parentproxy"`
} `xml:"general"`
Forward struct {
Text string `xml:",chardata"`
Interfaces string `xml:"interfaces"`
Port string `xml:"port"`
Sslbumpport string `xml:"sslbumpport"`
Sslbump string `xml:"sslbump"`
Sslurlonly string `xml:"sslurlonly"`
Sslcertificate string `xml:"sslcertificate"`
Sslnobumpsites string `xml:"sslnobumpsites"`
SslCrtdStorageMaxSize string `xml:"ssl_crtd_storage_max_size"`
SslcrtdChildren string `xml:"sslcrtd_children"`
SnmpEnable string `xml:"snmp_enable"`
SnmpPort string `xml:"snmp_port"`
SnmpPassword string `xml:"snmp_password"`
FtpInterfaces string `xml:"ftpInterfaces"`
FtpPort string `xml:"ftpPort"`
FtpTransparentMode string `xml:"ftpTransparentMode"`
AddACLforInterfaceSubnets string `xml:"addACLforInterfaceSubnets"`
TransparentMode string `xml:"transparentMode"`
Acl struct {
Text string `xml:",chardata"`
AllowedSubnets string `xml:"allowedSubnets"`
Unrestricted string `xml:"unrestricted"`
BannedHosts string `xml:"bannedHosts"`
WhiteList string `xml:"whiteList"`
BlackList string `xml:"blackList"`
Browser string `xml:"browser"`
MimeType string `xml:"mimeType"`
Googleapps string `xml:"googleapps"`
Youtube string `xml:"youtube"`
SafePorts string `xml:"safePorts"`
SslPorts string `xml:"sslPorts"`
RemoteACLs struct {
Text string `xml:",chardata"`
Blacklists string `xml:"blacklists"`
UpdateCron string `xml:"UpdateCron"`
} `xml:"remoteACLs"`
} `xml:"acl"`
Icap struct {
Text string `xml:",chardata"`
Enable string `xml:"enable"`
RequestURL string `xml:"RequestURL"`
ResponseURL string `xml:"ResponseURL"`
SendClientIP string `xml:"SendClientIP"`
SendUsername string `xml:"SendUsername"`
EncodeUsername string `xml:"EncodeUsername"`
UsernameHeader string `xml:"UsernameHeader"`
EnablePreview string `xml:"EnablePreview"`
PreviewSize string `xml:"PreviewSize"`
OptionsTTL string `xml:"OptionsTTL"`
Exclude string `xml:"exclude"`
} `xml:"icap"`
Authentication struct {
Text string `xml:",chardata"`
Method string `xml:"method"`
AuthEnforceGroup string `xml:"authEnforceGroup"`
Realm string `xml:"realm"`
Credentialsttl string `xml:"credentialsttl"`
Children string `xml:"children"`
} `xml:"authentication"`
} `xml:"forward"`
Pac string `xml:"pac"`
ErrorPages struct {
Text string `xml:",chardata"`
Template string `xml:"template"`
} `xml:"error_pages"`
} `xml:"proxy"`
Vnstat struct {
Text string `xml:",chardata"`
General struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Enabled string `xml:"enabled"`
Interface string `xml:"interface"`
} `xml:"general"`
} `xml:"vnstat"`
Bind struct {
Text string `xml:",chardata"`
General struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Enabled string `xml:"enabled"`
Disablev6 string `xml:"disablev6"`
Enablerpz string `xml:"enablerpz"`
Listenv4 string `xml:"listenv4"`
Listenv6 string `xml:"listenv6"`
Querysource string `xml:"querysource"`
Querysourcev6 string `xml:"querysourcev6"`
Transfersource string `xml:"transfersource"`
Transfersourcev6 string `xml:"transfersourcev6"`
Port string `xml:"port"`
Forwarders string `xml:"forwarders"`
Filteraaaav4 string `xml:"filteraaaav4"`
Filteraaaav6 string `xml:"filteraaaav6"`
Filteraaaaacl string `xml:"filteraaaaacl"`
Logsize string `xml:"logsize"`
GeneralLogLevel string `xml:"general_log_level"`
Maxcachesize string `xml:"maxcachesize"`
Recursion string `xml:"recursion"`
Allowtransfer string `xml:"allowtransfer"`
Allowquery string `xml:"allowquery"`
Dnssecvalidation string `xml:"dnssecvalidation"`
Hidehostname string `xml:"hidehostname"`
Hideversion string `xml:"hideversion"`
Disableprefetch string `xml:"disableprefetch"`
Enableratelimiting string `xml:"enableratelimiting"`
Ratelimitcount string `xml:"ratelimitcount"`
Ratelimitexcept string `xml:"ratelimitexcept"`
Rndcalgo string `xml:"rndcalgo"`
Rndcsecret string `xml:"rndcsecret"`
} `xml:"general"`
Dnsbl struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Enabled string `xml:"enabled"`
Type string `xml:"type"`
Whitelists string `xml:"whitelists"`
Forcesafegoogle string `xml:"forcesafegoogle"`
Forcesafeduckduckgo string `xml:"forcesafeduckduckgo"`
Forcesafeyoutube string `xml:"forcesafeyoutube"`
Forcestrictbing string `xml:"forcestrictbing"`
} `xml:"dnsbl"`
Domain struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Domains string `xml:"domains"`
} `xml:"domain"`
Record struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Records string `xml:"records"`
} `xml:"record"`
Acl struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Acls string `xml:"acls"`
} `xml:"acl"`
} `xml:"bind"`
HAProxy struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
GracefulStop string `xml:"gracefulStop"`
HardStopAfter string `xml:"hardStopAfter"`
CloseSpreadTime string `xml:"closeSpreadTime"`
SeamlessReload string `xml:"seamlessReload"`
StoreOcsp string `xml:"storeOcsp"`
ShowIntro string `xml:"showIntro"`
Peers struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Name1 string `xml:"name1"`
Listen1 string `xml:"listen1"`
Port1 string `xml:"port1"`
Name2 string `xml:"name2"`
Listen2 string `xml:"listen2"`
Port2 string `xml:"port2"`
} `xml:"peers"`
Tuning struct {
Text string `xml:",chardata"`
Root string `xml:"root"`
MaxConnections string `xml:"maxConnections"`
Nbthread string `xml:"nbthread"`
ResolversPrefer string `xml:"resolversPrefer"`
SslServerVerify string `xml:"sslServerVerify"`
MaxDHSize string `xml:"maxDHSize"`
BufferSize string `xml:"bufferSize"`
SpreadChecks string `xml:"spreadChecks"`
BogusProxyEnabled string `xml:"bogusProxyEnabled"`
LuaMaxMem string `xml:"luaMaxMem"`
CustomOptions string `xml:"customOptions"`
OcspUpdateEnabled string `xml:"ocspUpdateEnabled"`
OcspUpdateMinDelay string `xml:"ocspUpdateMinDelay"`
OcspUpdateMaxDelay string `xml:"ocspUpdateMaxDelay"`
SslDefaultsEnabled string `xml:"ssl_defaultsEnabled"`
SslBindOptions string `xml:"ssl_bindOptions"`
SslMinVersion string `xml:"ssl_minVersion"`
SslMaxVersion string `xml:"ssl_maxVersion"`
SslCipherList string `xml:"ssl_cipherList"`
SslCipherSuites string `xml:"ssl_cipherSuites"`
H2InitialWindowSize string `xml:"h2_initialWindowSize"`
H2InitialWindowSizeOutgoing string `xml:"h2_initialWindowSizeOutgoing"`
H2InitialWindowSizeIncoming string `xml:"h2_initialWindowSizeIncoming"`
H2MaxConcurrentStreams string `xml:"h2_maxConcurrentStreams"`
H2MaxConcurrentStreamsOutgoing string `xml:"h2_maxConcurrentStreamsOutgoing"`
H2MaxConcurrentStreamsIncoming string `xml:"h2_maxConcurrentStreamsIncoming"`
} `xml:"tuning"`
Defaults struct {
Text string `xml:",chardata"`
MaxConnections string `xml:"maxConnections"`
MaxConnectionsServers string `xml:"maxConnectionsServers"`
TimeoutClient string `xml:"timeoutClient"`
TimeoutConnect string `xml:"timeoutConnect"`
TimeoutCheck string `xml:"timeoutCheck"`
TimeoutServer string `xml:"timeoutServer"`
Retries string `xml:"retries"`
Redispatch string `xml:"redispatch"`
InitAddr string `xml:"init_addr"`
CustomOptions string `xml:"customOptions"`
} `xml:"defaults"`
Logging struct {
Text string `xml:",chardata"`
Host string `xml:"host"`
Facility string `xml:"facility"`
Level string `xml:"level"`
Length string `xml:"length"`
} `xml:"logging"`
Stats struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Port string `xml:"port"`
RemoteEnabled string `xml:"remoteEnabled"`
RemoteBind string `xml:"remoteBind"`
AuthEnabled string `xml:"authEnabled"`
Users string `xml:"users"`
AllowedUsers string `xml:"allowedUsers"`
AllowedGroups string `xml:"allowedGroups"`
CustomOptions string `xml:"customOptions"`
PrometheusEnabled string `xml:"prometheus_enabled"`
PrometheusBind string `xml:"prometheus_bind"`
PrometheusPath string `xml:"prometheus_path"`
} `xml:"stats"`
Cache struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
TotalMaxSize string `xml:"totalMaxSize"`
MaxAge string `xml:"maxAge"`
MaxObjectSize string `xml:"maxObjectSize"`
ProcessVary string `xml:"processVary"`
MaxSecondaryEntries string `xml:"maxSecondaryEntries"`
} `xml:"cache"`
} `xml:"general"`
Frontends string `xml:"frontends"`
Backends string `xml:"backends"`
Servers string `xml:"servers"`
Healthchecks string `xml:"healthchecks"`
Acls string `xml:"acls"`
Actions string `xml:"actions"`
Luas string `xml:"luas"`
Fcgis string `xml:"fcgis"`
Errorfiles string `xml:"errorfiles"`
Mapfiles string `xml:"mapfiles"`
Groups string `xml:"groups"`
Users string `xml:"users"`
Cpus string `xml:"cpus"`
Resolvers string `xml:"resolvers"`
Mailers string `xml:"mailers"`
Maintenance struct {
Text string `xml:",chardata"`
Cronjobs struct {
Text string `xml:",chardata"`
SyncCerts string `xml:"syncCerts"`
SyncCertsCron string `xml:"syncCertsCron"`
UpdateOcsp string `xml:"updateOcsp"`
UpdateOcspCron string `xml:"updateOcspCron"`
ReloadService string `xml:"reloadService"`
ReloadServiceCron string `xml:"reloadServiceCron"`
RestartService string `xml:"restartService"`
RestartServiceCron string `xml:"restartServiceCron"`
} `xml:"cronjobs"`
} `xml:"maintenance"`
} `xml:"HAProxy"`
TrafficShaper struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Pipes string `xml:"pipes"`
Queues string `xml:"queues"`
Rules string `xml:"rules"`
} `xml:"TrafficShaper"`
Syslog struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Loglocal string `xml:"loglocal"`
Maxpreserve string `xml:"maxpreserve"`
Maxfilesize string `xml:"maxfilesize"`
} `xml:"general"`
Destinations struct {
Text string `xml:",chardata"`
Destination struct {
Text string `xml:",chardata"`
Uuid string `xml:"uuid,attr"`
Enabled string `xml:"enabled"`
Transport string `xml:"transport"`
Program string `xml:"program"`
Level string `xml:"level"`
Facility string `xml:"facility"`
Hostname string `xml:"hostname"`
Certificate string `xml:"certificate"`
Port string `xml:"port"`
Rfc5424 string `xml:"rfc5424"`
Description string `xml:"description"`
} `xml:"destination"`
} `xml:"destinations"`
} `xml:"Syslog"`
OpenVPN struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Overwrites string `xml:"Overwrites"`
Instances string `xml:"Instances"`
StaticKeys string `xml:"StaticKeys"`
} `xml:"OpenVPN"`
OpenVPNExport struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Servers string `xml:"servers"`
} `xml:"OpenVPNExport"`
Unboundplus struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Port string `xml:"port"`
Stats string `xml:"stats"`
ActiveInterface string `xml:"active_interface"`
Dnssec string `xml:"dnssec"`
Dns64 string `xml:"dns64"`
Dns64prefix string `xml:"dns64prefix"`
Noarecords string `xml:"noarecords"`
Regdhcp string `xml:"regdhcp"`
Regdhcpdomain string `xml:"regdhcpdomain"`
Regdhcpstatic string `xml:"regdhcpstatic"`
Noreglladdr6 string `xml:"noreglladdr6"`
Noregrecords string `xml:"noregrecords"`
Txtsupport string `xml:"txtsupport"`
Cacheflush string `xml:"cacheflush"`
LocalZoneType string `xml:"local_zone_type"`
OutgoingInterface string `xml:"outgoing_interface"`
EnableWpad string `xml:"enable_wpad"`
} `xml:"general"`
Advanced struct {
Text string `xml:",chardata"`
Hideidentity string `xml:"hideidentity"`
Hideversion string `xml:"hideversion"`
Prefetch string `xml:"prefetch"`
Prefetchkey string `xml:"prefetchkey"`
Dnssecstripped string `xml:"dnssecstripped"`
Aggressivensec string `xml:"aggressivensec"`
Serveexpired string `xml:"serveexpired"`
Serveexpiredreplyttl string `xml:"serveexpiredreplyttl"`
Serveexpiredttl string `xml:"serveexpiredttl"`
Serveexpiredttlreset string `xml:"serveexpiredttlreset"`
Serveexpiredclienttimeout string `xml:"serveexpiredclienttimeout"`
Qnameminstrict string `xml:"qnameminstrict"`
Extendedstatistics string `xml:"extendedstatistics"`
Logqueries string `xml:"logqueries"`
Logreplies string `xml:"logreplies"`
Logtagqueryreply string `xml:"logtagqueryreply"`
Logservfail string `xml:"logservfail"`
Loglocalactions string `xml:"loglocalactions"`
Logverbosity string `xml:"logverbosity"`
Valloglevel string `xml:"valloglevel"`
Privatedomain string `xml:"privatedomain"`
Privateaddress string `xml:"privateaddress"`
Insecuredomain string `xml:"insecuredomain"`
Msgcachesize string `xml:"msgcachesize"`
Rrsetcachesize string `xml:"rrsetcachesize"`
Outgoingnumtcp string `xml:"outgoingnumtcp"`
Incomingnumtcp string `xml:"incomingnumtcp"`
Numqueriesperthread string `xml:"numqueriesperthread"`
Outgoingrange string `xml:"outgoingrange"`
Jostletimeout string `xml:"jostletimeout"`
Discardtimeout string `xml:"discardtimeout"`
Cachemaxttl string `xml:"cachemaxttl"`
Cachemaxnegativettl string `xml:"cachemaxnegativettl"`
Cacheminttl string `xml:"cacheminttl"`
Infrahostttl string `xml:"infrahostttl"`
Infrakeepprobing string `xml:"infrakeepprobing"`
Infracachenumhosts string `xml:"infracachenumhosts"`
Unwantedreplythreshold string `xml:"unwantedreplythreshold"`
} `xml:"advanced"`
Acls struct {
Text string `xml:",chardata"`
DefaultAction string `xml:"default_action"`
} `xml:"acls"`
Dnsbl struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Safesearch string `xml:"safesearch"`
Type string `xml:"type"`
Lists string `xml:"lists"`
Whitelists string `xml:"whitelists"`
Blocklists string `xml:"blocklists"`
Wildcards string `xml:"wildcards"`
Address string `xml:"address"`
Nxdomain string `xml:"nxdomain"`
} `xml:"dnsbl"`
Forwarding struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
} `xml:"forwarding"`
Dots string `xml:"dots"`
Hosts string `xml:"hosts"`
Aliases string `xml:"aliases"`
Domains string `xml:"domains"`
} `xml:"unboundplus"`
Captiveportal struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Zones string `xml:"zones"`
Templates string `xml:"templates"`
} `xml:"captiveportal"`
Kea struct {
Text string `xml:",chardata"`
Dhcp4 struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Interfaces string `xml:"interfaces"`
ValidLifetime string `xml:"valid_lifetime"`
Fwrules string `xml:"fwrules"`
} `xml:"general"`
Ha struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
ThisServerName string `xml:"this_server_name"`
} `xml:"ha"`
Subnets string `xml:"subnets"`
Reservations string `xml:"reservations"`
HaPeers string `xml:"ha_peers"`
} `xml:"dhcp4"`
CtrlAgent struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
HTTPHost string `xml:"http_host"`
HTTPPort string `xml:"http_port"`
} `xml:"general"`
} `xml:"ctrl_agent"`
} `xml:"Kea"`
IDS struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Rules string `xml:"rules"`
Policies string `xml:"policies"`
UserDefinedRules string `xml:"userDefinedRules"`
Files string `xml:"files"`
FileTags string `xml:"fileTags"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
Ips string `xml:"ips"`
Promisc string `xml:"promisc"`
Interfaces string `xml:"interfaces"`
Homenet string `xml:"homenet"`
DefaultPacketSize string `xml:"defaultPacketSize"`
UpdateCron string `xml:"UpdateCron"`
AlertLogrotate string `xml:"AlertLogrotate"`
AlertSaveLogs string `xml:"AlertSaveLogs"`
MPMAlgo string `xml:"MPMAlgo"`
Detect struct {
Text string `xml:",chardata"`
Profile string `xml:"Profile"`
ToclientGroups string `xml:"toclient_groups"`
ToserverGroups string `xml:"toserver_groups"`
} `xml:"detect"`
Syslog string `xml:"syslog"`
SyslogEve string `xml:"syslog_eve"`
LogPayload string `xml:"LogPayload"`
Verbosity string `xml:"verbosity"`
} `xml:"general"`
} `xml:"IDS"`
IPsec struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
PreferredOldsa string `xml:"preferred_oldsa"`
Disablevpnrules string `xml:"disablevpnrules"`
PassthroughNetworks string `xml:"passthrough_networks"`
} `xml:"general"`
Charon struct {
Text string `xml:",chardata"`
MaxIkev1Exchanges string `xml:"max_ikev1_exchanges"`
Threads string `xml:"threads"`
IkesaTableSize string `xml:"ikesa_table_size"`
IkesaTableSegments string `xml:"ikesa_table_segments"`
InitLimitHalfOpen string `xml:"init_limit_half_open"`
IgnoreAcquireTs string `xml:"ignore_acquire_ts"`
RetransmitTries string `xml:"retransmit_tries"`
RetransmitTimeout string `xml:"retransmit_timeout"`
RetransmitBase string `xml:"retransmit_base"`
RetransmitJitter string `xml:"retransmit_jitter"`
RetransmitLimit string `xml:"retransmit_limit"`
Syslog struct {
Text string `xml:",chardata"`
Daemon struct {
Text string `xml:",chardata"`
IkeName string `xml:"ike_name"`
LogLevel string `xml:"log_level"`
App string `xml:"app"`
Asn string `xml:"asn"`
Cfg string `xml:"cfg"`
Chd string `xml:"chd"`
Dmn string `xml:"dmn"`
Enc string `xml:"enc"`
Esp string `xml:"esp"`
Ike string `xml:"ike"`
Imc string `xml:"imc"`
Imv string `xml:"imv"`
Job string `xml:"job"`
Knl string `xml:"knl"`
Lib string `xml:"lib"`
Mgr string `xml:"mgr"`
Net string `xml:"net"`
Pts string `xml:"pts"`
Tls string `xml:"tls"`
Tnc string `xml:"tnc"`
} `xml:"daemon"`
} `xml:"syslog"`
} `xml:"charon"`
KeyPairs string `xml:"keyPairs"`
PreSharedKeys string `xml:"preSharedKeys"`
} `xml:"IPsec"`
Swanctl struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Connections string `xml:"Connections"`
Locals string `xml:"locals"`
Remotes string `xml:"remotes"`
Children string `xml:"children"`
Pools string `xml:"Pools"`
VTIs string `xml:"VTIs"`
SPDs string `xml:"SPDs"`
} `xml:"Swanctl"`
Firewall struct {
Text string `xml:",chardata"`
Lvtemplate struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Templates string `xml:"templates"`
} `xml:"Lvtemplate"`
Category struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Categories string `xml:"categories"`
} `xml:"Category"`
Alias struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Geoip struct {
Text string `xml:",chardata"`
URL string `xml:"url"`
} `xml:"geoip"`
Aliases string `xml:"aliases"`
} `xml:"Alias"`
Filter struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Rules string `xml:"rules"`
Snatrules string `xml:"snatrules"`
Npt string `xml:"npt"`
Onetoone string `xml:"onetoone"`
} `xml:"Filter"`
} `xml:"Firewall"`
Netflow struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Capture struct {
Text string `xml:",chardata"`
Interfaces string `xml:"interfaces"`
EgressOnly string `xml:"egress_only"`
Version string `xml:"version"`
Targets string `xml:"targets"`
} `xml:"capture"`
Collect struct {
Text string `xml:",chardata"`
Enable string `xml:"enable"`
} `xml:"collect"`
ActiveTimeout string `xml:"activeTimeout"`
InactiveTimeout string `xml:"inactiveTimeout"`
} `xml:"Netflow"`
Wireguard struct {
Text string `xml:",chardata"`
Server struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Servers struct {
Text string `xml:",chardata"`
Server struct {
Text string `xml:",chardata"`
Uuid string `xml:"uuid,attr"`
Enabled string `xml:"enabled"`
Name string `xml:"name"`
Instance string `xml:"instance"`
Pubkey string `xml:"pubkey"`
Privkey string `xml:"privkey"`
Port string `xml:"port"`
Mtu string `xml:"mtu"`
Dns string `xml:"dns"`
Tunneladdress string `xml:"tunneladdress"`
Disableroutes string `xml:"disableroutes"`
Gateway string `xml:"gateway"`
CarpDependOn string `xml:"carp_depend_on"`
Peers string `xml:"peers"`
Endpoint string `xml:"endpoint"`
PeerDns string `xml:"peer_dns"`
} `xml:"server"`
} `xml:"servers"`
} `xml:"server"`
General struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Enabled string `xml:"enabled"`
} `xml:"general"`
Client struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Clients string `xml:"clients"`
} `xml:"client"`
} `xml:"wireguard"`
QemuGuestAgent struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"Enabled"`
LogDebug string `xml:"LogDebug"`
DisabledRPCs string `xml:"DisabledRPCs"`
} `xml:"general"`
} `xml:"QemuGuestAgent"`
Cron struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Jobs string `xml:"jobs"`
} `xml:"cron"`
Interfaces struct {
Text string `xml:",chardata"`
Loopbacks struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
} `xml:"loopbacks"`
Neighbors struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
} `xml:"neighbors"`
Vxlans struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
} `xml:"vxlans"`
} `xml:"Interfaces"`
Gateways struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
GatewayItem struct {
Text string `xml:",chardata"`
Uuid string `xml:"uuid,attr"`
Disabled string `xml:"disabled"`
Name string `xml:"name"`
Descr string `xml:"descr"`
Interface string `xml:"interface"`
Ipprotocol string `xml:"ipprotocol"`
Gateway string `xml:"gateway"`
Defaultgw string `xml:"defaultgw"`
Fargw string `xml:"fargw"`
MonitorDisable string `xml:"monitor_disable"`
MonitorNoroute string `xml:"monitor_noroute"`
Monitor string `xml:"monitor"`
ForceDown string `xml:"force_down"`
Priority string `xml:"priority"`
Weight string `xml:"weight"`
Latencylow string `xml:"latencylow"`
Latencyhigh string `xml:"latencyhigh"`
Losslow string `xml:"losslow"`
Losshigh string `xml:"losshigh"`
Interval string `xml:"interval"`
TimePeriod string `xml:"time_period"`
LossInterval string `xml:"loss_interval"`
DataLength string `xml:"data_length"`
} `xml:"gateway_item"`
} `xml:"Gateways"`
Nginx struct {
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
General struct {
Text string `xml:",chardata"`
Enabled string `xml:"enabled"`
BanTtl string `xml:"ban_ttl"`
} `xml:"general"`
Webgui struct {
Text string `xml:",chardata"`
Limitnetworks string `xml:"limitnetworks"`
} `xml:"webgui"`
HTTP struct {
Text string `xml:",chardata"`
Workerprocesses string `xml:"workerprocesses"`
Workerconnections string `xml:"workerconnections"`
Sendfile string `xml:"sendfile"`
KeepaliveTimeout string `xml:"keepalive_timeout"`
ResetTimedout string `xml:"reset_timedout"`
DefaultType string `xml:"default_type"`
ServerNamesHashBucketSize string `xml:"server_names_hash_bucket_size"`
ServerNamesHashMaxSize string `xml:"server_names_hash_max_size"`
BanResponse string `xml:"ban_response"`
LogPermBan string `xml:"log_perm_ban"`