-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRouterOSMCPSharp.json
More file actions
76 lines (76 loc) · 2.06 KB
/
RouterOSMCPSharp.json
File metadata and controls
76 lines (76 loc) · 2.06 KB
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
{
"RouterOS": {
"Host": "192.168.88.1",
"SshPort": 22,
"Username": "admin",
"Password": "",
"PrivateKeyPath": null,
"PrivateKeyPassphrase": null,
"ExpectedHostKeyFingerprint": null,
"SshTimeoutSeconds": 30,
"SshCommandTimeoutSeconds": 60,
"EnableRestApi": true,
"RestBaseUrl": null,
"UseHttpsForRest": true,
"RestAllowSelfSignedCert": true,
"RestTimeoutSeconds": 30,
"ReadOnly": true,
"AllowArbitraryCommands": false,
"AllowArbitraryCommandsInReadOnly": false,
"CommandDenyList": [
"/system reset-configuration",
"/system shutdown",
"/file remove",
"/user remove"
],
"DefaultPageSize": 200,
"MaxLogEntries": 500,
"EnableSystemTools": true,
"EnableInterfaceTools": true,
"EnableIpTools": true,
"EnableFirewallTools": true,
"EnableWirelessTools": true,
"EnableRoutingTools": true,
"EnableDiagnosticsTools": true,
"EnableLogTools": true,
"EnableManagementTools": true
},
"Server": {
"Host": "localhost",
"Port": 5707,
"Path": "/mcp",
"WindowsServiceName": "RouterOSMCPSharp",
"Password": ""
},
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"System": "Warning"
}
},
"WriteTo": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
}
},
{
"Name": "File",
"Args": {
"path": "logs/routerosmcp-.log",
"rollingInterval": "Day",
"retainedFileCountLimit": 14,
"fileSizeLimitBytes": 52428800,
"rollOnFileSizeLimit": true,
"shared": true,
"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
}
}
],
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ]
}
}