diff options
author | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2016-06-12 23:21:48 +0200 |
---|---|---|
committer | Guillaume Mazoyer <gmazoyer@gravitons.in> | 2016-06-12 23:21:48 +0200 |
commit | 28bf462793fc9c15e70b73d3eb2223f6328abb84 (patch) | |
tree | b6fc16b5b7a94e48041cb941a6cb2934d2c5e0b2 /includes/config.defaults.php | |
parent | 7bca7a70b0bf840fbd821ef7e18ed86d7cf3f144 (diff) |
Add new configuration options to enable/disable IPv6 or IPv4.
When disabling IPv6 or IPv4, the looking glass will not try to use both
IP protocol versions when looking for an AS routes or when pinging or
tracerouting.
If an IP address of a disabling IP version is used, the user will have an
error in return of its command. This error will tell him that the IP version
he is trying to use is disabled.
Please note that when trying to ping or traceroute a hostname from a Cisco or
a Juniper device, this looking glass will not prevent the device to use a
disabled IP version when executing its command.
This commit also contains some small changes with HTML tags.
Diffstat (limited to 'includes/config.defaults.php')
-rw-r--r-- | includes/config.defaults.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/config.defaults.php b/includes/config.defaults.php index 25eaf6f..dfc0d58 100644 --- a/includes/config.defaults.php +++ b/includes/config.defaults.php @@ -2,7 +2,7 @@ /* * Looking Glass - An easy to deploy Looking Glass - * Copyright (C) 2014-2015 Guillaume Mazoyer <gmazoyer@gravitons.in> + * Copyright (C) 2014-2016 Guillaume Mazoyer <gmazoyer@gravitons.in> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -92,7 +92,11 @@ $config = array( '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 + 'allow_reserved_ip' => true, + // Disable IPv6 + 'disable_ipv6' => false, + // Disable IPv4 + 'disable_ipv4' => false ), // Tools used for some processing |