array(
// Use Bootstrap theme
'bootstrap_theme' => true,
// Custom Bootstrap theme
'custom_bootstrap_theme' => false,
// CSS to use
'css' => 'css/style.css',
// Title
'title' => 'Looking Glass',
// Image (null for no image)
'image' => null,
// Disclaimer (null for no disclaimer)
'disclaimer' => 'Disclaimer example',
// Display the title
'show_title' => true,
// Show visitor IP address
'show_visitor_ip' => true,
// Frontpage order you can use: routers, commands, parameters, buttons
'order' => array('routers', 'commands', 'parameters', 'buttons')
),
// Contact (both null for no contact)
'contact' => array(
// Name of the contact
'name' => 'Example Support',
// Email of the contact
'mail' => 'support@example.com'
),
// Filters
'filters' => array(),
// Logs
'logs' => array(
// Logs file where commands will be written
'file' => '/var/log/looking-glass.log',
// Format for each logged command (%D is for the time, %R is for the
// requester IP address, %H is for the host and %C is for the command)
'format' => '[%D] [client: %R] %H > %C'
),
// Misc
'misc' => array(
// Allow private ASN
'allow_private_asn' => false,
// Allow RFC1918 IPv4 and FD/FC IPv6 as parameters
'allow_private_ip' => true,
// Allow reserved IPv4 addresses (0.0.0.0/8, 169.254.0.0/16,
// 192.0.2.0/24 and 224.0.0.0/4)
'allow_reserved_ip' => true
),
// Documentation (must be HTML)
'doc' => array(
// Documentation for the 'show route' query
'bgp' => array(
'command' => 'show route IP_ADDRESS',
'description' => 'Show the best routes to a given destination.',
'parameter' => 'The parameter must be a valid destination. Destination means an IPv4/IPv6 address or a subnet. Masks are also accepted as part of a valid IPv4/IPv6 address.
RFC1918 addresses, IPv6 starting with FD or FC, and IPv4 reserved ranges (0.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24 and 224.0.0.0/4) may be refused.
Please note that some routers always need a mask to be given when looking for an IPv6 address.
Example of valid arguments: