array(
// Use Bootstrap theme
'bootstrap_theme' => true,
// Custom Bootstrap theme
'custom_bootstrap_theme' => false,
// CSS to use
'css' => 'css/style.css',
// 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')
),
// Misc
'misc' => array(
// Logs file when commands will be written
'logs' => '/var/log/looking-glass.log',
// 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:
- 8.8.8.8
- 8.8.4.0/24
- 2001:db8:1337::42
- 2001:db8::/32
'
),
// Documentation for the 'as-path-regex' query
'as-path-regex' => array(
'command' => 'show route as-path-regex AS_PATH_REGEX',
'description' => 'Show the routes matching the given AS path regular expression.',
'parameter' => 'The parameter must be a valid AS path regular expression.
Please note that these expression can change depending on the router and its software.
Here are some examples:- Juniper - ^AS1 AS2 .*$
- Cisco - ^AS1_
- BIRD - AS1 AS2 AS3 … ASZ
You may find some help with the following link:
'
),
// Documentation for the 'as' query
'as' => array(
'command' => 'show route AS',
'description' => 'Show the routes received from a given AS number.',
'parameter' => 'The parameter must be a valid 16-bit or 32-bit autonomous system number.
Be careful, 32-bit ASN are not handled by old routers or old router softwares.
Unless specified, private ASN will be considered as invalid.
Example of valid argument:
'
),
// Documentation for the 'ping' query
'ping' => array(
'command' => 'ping IP_ADDRESS',
'description' => 'Send 10 pings to the given destination.',
'parameter' => 'The parameter must be an IPv4/IPv6 address (without mask) or a fully qualified domain name.
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.
Example of valid arguments:
- 8.8.8.8
- 2001:db8:1337::42
- example.com
'
),
// Documentation for the 'traceroute' query
'traceroute' => array(
'command' =>'traceroute IP_ADDRESS',
'description' => 'Display the path to a given destination.',
'parameter' => 'The parameter must be an IPv4/IPv6 address (without mask) or a fully qualified domain name.
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.
Example of valid arguments:
- 8.8.8.8
- 2001:db8:1337::42
- example.com
'
)
)
);
// End of config.defaults.php