forked from gmazoyer/looking-glass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.example
133 lines (119 loc) · 5.87 KB
/
config.php.example
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
<?php
/*
* Main configuration file example.
*
* DO NOT EDIT NOR RENAME, please copy to 'config.php' and edit the new file!
*/
// People to contact
// Set both to null to not display any contact information
$config['contact']['name'] = 'Example Support';
$config['contact']['mail'] = 'support@example.com';
// Frontpage configuration
// Title of the page
$config['frontpage']['title'] = 'Looking Glass';
// Logo to display (remove it to not display any logo)
$config['frontpage']['image'] = 'logo.png';
// Disclaimer to inform people using the looking glass
// Set it to null to not display a disclaimer
$config['frontpage']['disclaimer'] = 'This is a disclaimer!';
// Things to remove from the output (PHP compatible regex)
$config['filters']['output'][] = '/(client1|client2)/';
$config['filters']['output'][] = '/^NotToShow/';
// If Using Huawei uncomment the following filter
//$config['filters']['output'][] = '/(users|login time)/';
// If telnet is used in combination with extreme_netiron, uncomment the following filter
//$config['filters']['output'][] = '/([^\x20-\x7E]|User|Please|Disable|telnet|^\s*$)/';
// Google reCaptcha integration
$config['recaptcha']['enabled'] = false;
$config['recaptcha']['apikey'] = 'foobar';
$config['recaptcha']['secret'] = 'foobar';
// Routers definitions
// Authentication based on SSH or Telnet with password
// The hostname or the IP address
$config['routers']['router1']['host'] = 'r1.example.net';
// The user to use to connect to the router
$config['routers']['router1']['user'] = 'readonlyuser';
// The password of the given user
$config['routers']['router1']['pass'] = 'readonlypassword';
// The authentication mechanism to use (can be ssh-password or telnet)
$config['routers']['router1']['auth'] = 'ssh-password';
// The router type (can be cisco, ios, juniper or junos)
$config['routers']['router1']['type'] = 'juniper';
// The router source interface to be used
$config['routers']['router1']['source-interface-id'] = 'lo0';
// The router description to be displayed in the router list
$config['routers']['router1']['desc'] = 'Example\'s Router 1';
// Authentication based on SSH with key
// The hostname or the IP address
$config['routers']['router2']['host'] = 'r2.example.net';
// The user to use to connect to the router
$config['routers']['router2']['user'] = 'readonlyuser';
// The public key of the given user
$config['routers']['router2']['private_key'] = '/home/user/.ssh/key';
// The passphrase of the key (optional if the key has no passphrase)
$config['routers']['router2']['pass'] = 'mypassphrase';
// The authentication mechanism to use (ssh-key for SSH based on keys)
$config['routers']['router2']['auth'] = 'ssh-key';
// The router type (can be cisco, ios, juniper or junos)
$config['routers']['router2']['type'] = 'juniper';
// The router source interface to be used
$config['routers']['router2']['source-interface-id'] = 'lo0';
// The router description to be displayed in the router list
$config['routers']['router2']['desc'] = 'Example\'s Router 2';
// Router based on BIRD
// The hostname or the IP address
$config['routers']['router3']['host'] = 'r3.example.net';
// The user to use to connect to the router
$config['routers']['router3']['user'] = 'birduser';
// The password of the given user
$config['routers']['router3']['pass'] = 'birduserpassword';
// The authentication mechanism to use (can be ssh-password or ssh-key)
$config['routers']['router3']['auth'] = 'ssh-password';
// The router type (can only be bird)
$config['routers']['router3']['type'] = 'bird';
// The router source address to be used
$config['routers']['router3']['source-interface-id'] = '192.168.1.1';
// The router description to be displayed in the router list
$config['routers']['router3']['desc'] = 'Example\'s Router 3';
// Router based on OpenBGPd
// The hostname or the IP address
$config['routers']['router4']['host'] = 'r4.example.net';
// The user to use to connect to the router
$config['routers']['router4']['user'] = 'openbgpduser';
// The password of the given user
$config['routers']['router4']['pass'] = 'openbgpduserpassword';
// The authentication mechanism to use (can be ssh-password or ssh-key)
$config['routers']['router4']['auth'] = 'ssh-password';
// The router type (can only be openbgpd)
$config['routers']['router4']['type'] = 'openbgpd';
// The router source address to be used
$config['routers']['router4']['source-interface-id']['ipv4'] = '192.168.1.1';
$config['routers']['router4']['source-interface-id']['ipv6'] = '2001:db8::1';
// The router description to be displayed in the router list
$config['routers']['router4']['desc'] = 'OpenBGPd Router';
// Router based on Extreme NetIron
// The hostname or the IP address
$config['routers']['router5']['host'] = 'r5.example.net';
// The user to use to connect to the router
$config['routers']['router5']['user'] = 'readonlyuser';
// The password of the given user
$config['routers']['router5']['pass'] = 'readonlypassword';
// The authentication mechanism to use (must be telnet)
$config['routers']['router5']['auth'] = 'telnet';
// The router type (can only be extreme_netiron)
$config['routers']['router5']['type'] = 'extreme_netiron';
// The router source interface to be used
$config['routers']['router5']['source-interface-id']['ipv4'] = '192.168.1.1';
$config['routers']['router5']['source-interface-id']['ipv6'] = '2001:db8::1';
// The router description to be displayed in the router list
$config['routers']['router5']['desc'] = 'Example\'s router 5';
// Display BGP detail output for this router, defaults to false
$config['routers']['router5']['bgp_detail'] = true;
// If running on *BSD, disable '-A' which is non-existent
$config['tools']['ping_options'] = '-c 5';
// If running on *BSD, disable '-N' which is non-existent
$config['tools']['traceroute_options'] = '-A -q1 -w2 -m15';
// If running on *BSD, there is no '-4' or '-6'
$config['tools']['traceroute6'] = 'traceroute6';
$config['tools']['traceroute4'] = 'traceroute';
// End of config.php