-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
portalconfig-sample.json
79 lines (79 loc) · 2.39 KB
/
portalconfig-sample.json
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
{
"ldapOptions" : {
"ldapOpts": {
"url": "ldap://192.168.1.100"
},
"adminDn" : "cn=Administrator,cn=Users,dc=company,dc=com",
"adminPassword": "Ld4Pp4$$w0rd",
"userSearchBase": "dc=company,dc=com",
"usernameAttribute": "samAccountName"
},
"loggingOptions": {
"defaultLevel" : "info",
"syslogConfig" : {
"enabled": true,
"host" : "192.168.1.100",
"port" : "514",
"protocol" : "udp4",
"facility" : "local0",
"localhost" : "captiveportal",
"type" : "BSD",
"app_name" : "CaptivePortalBackend"
}
},
"radiusServerOptions" : {
"secret" : "r4d1usS3c3t",
"radiusPort" : 1812,
"accountingPort" : 1813,
"authorizationPort": 3799,
"customDictionaries" : [],
"radiusProxyPool" : [
{
"name" : "Windows NPS Server",
"ip" : "10.1.1.5",
"secret" : "s3cr3t"
},
{
"name" : "FreeRADIUS",
"ip" : "10.1.1.6",
"secret" : "s3cr3t"
}
]
},
"databaseOptions" : {
"name": "mysql",
"connector": "mysql",
"host": "127.0.0.1",
"port": 3306,
"user": "mysqluser",
"password": "mysqlpassword",
"database": "captiveportal",
"reconnect" : true,
"reconnectTries" : 100,
"reconnectInterval" : 10000,
"connectionTimeout" : 10000,
"keepAlive" : true
},
"fortigateOptions" : {
"fortigates" : [
{
"name" : "FortiGate 100E EDGE",
"ip" : "192.168.1.99",
"api_key" : "generatedaccessapikeyshouldbehere",
"port": "443",
"ldapServers": [
{"name" : "LDAP_SERVER_NAME_AS_CONFIGURED_IN_FORTIGATE"}
]
},
{
"name" : "FortiGate 600E ISFW",
"ip" : "172.16.1.1",
"api_key" : "generatedaccessapikeyshouldbehere",
"port": "443",
"ldapServers": [
{"name" : "LDAP_SERVER_NAME_AS_CONFIGURED_IN_FORTIGATE"}
]
}
]
}
}