blob: 0749398045d1f3276091fbe1afb6d766ab9966c9 (
plain)
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
|
<?php
// People to contact
$config['contact']['name'] = 'Example Support';
$config['contact']['mail'] = 'support@example.com';
// Frontpage configuration
// CSS to use
$config['frontpage']['css'] = 'css/style.css';
// Title of the page
$config['frontpage']['title'] = 'Looking Glass';
$config['frontpage']['show_title'] = true;
// Logo to display
$config['frontpage']['image'] = 'logo.png';
// Show visitor IP address
$config['frontpage']['show_visitor_ip'] = true;
// Disclaimer to inform people using the looking glass
$config['frontpage']['disclaimer'] = 'This is a disclaimer!';
// Frontpage order you can use: routers, commands, parameters, buttons
$config['frontpage']['order'] = array('routers', 'commands', 'parameters', 'buttons');
// Logs file when commands will be written
$config['misc']['logs'] = '/var/log/looking-glass.log';
// Things to remove from the output (PHP compatible regex)
$config['filters'][0] = '/(client1|client2)/';
$config['filters'][1] = '/^NotToShow/';
// 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 mecanism 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 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']['public_key'] = '/home/user/.ssh/key.pub';
// The private key of the given user
$config['routers']['router2']['private_key'] = '/home/user/.ssh/key.pub';
// The passphrase of the key (optional if the key has no passphrase)
$config['routers']['router2']['pass'] = 'mypassphrase';
// The authentication mecanism 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 description to be displayed in the router list
$config['routers']['router2']['desc'] = 'Example\'s Router 2';
// End of config.php
|