diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index c7cb0f18d..04c222bc0 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -4017,6 +4017,15 @@ function get_interfaces_info($include_unlinked = false)
}
}
+ switch ($config['interfaces'][$ifdescr]['ipaddrv6'] ?? '') {
+ case 'dhcp6':
+ $ifinfo['dhcp6link'] = isvalidpid('/var/run/dhcp6c.pid') ? 'up' : 'down';
+ break;
+ /* XXX more to do here in the future */
+ default:
+ break;
+ }
+
if ($ifinfo['status'] == "up") {
$wifconfiginfo = array();
if (is_interface_wireless($ifdescr)) {
diff --git a/src/www/status_interfaces.php b/src/www/status_interfaces.php
index 41eab0ff3..89ab3196d 100644
--- a/src/www/status_interfaces.php
+++ b/src/www/status_interfaces.php
@@ -75,6 +75,9 @@ include("head.inc");
$pfctl_counters = json_decode(configd_run('filter list counters json'), true);
$vmstat_interrupts = json_decode(configd_run('system list interrupts json'), true);
foreach (get_interfaces_info(true) as $ifdescr => $ifinfo):
+ if ($ifinfo['if'] == 'pfsync0') {
+ continue;
+ }
$ifpfcounters = $pfctl_counters[$ifinfo['if']];
legacy_html_escape_form_data($ifinfo);
$ifdescr = htmlspecialchars($ifdescr);
@@ -117,13 +120,12 @@ include("head.inc");
| = gettext("Status") ?> |
= $ifinfo['status'] ?>
-
+
" data-toggle="tooltip">
-
+
|
-
+
| =gettext("DHCP");?> |
@@ -136,9 +138,8 @@ include("head.inc");
|
-
+
+
| =gettext("DHCP6");?> |
@@ -151,9 +152,8 @@ include("head.inc");
|
-
+
+
| =gettext("PPPoE"); ?> |
@@ -166,9 +166,8 @@ include("head.inc");
|
-
+
+
| = gettext("PPTP") ?> |
@@ -181,9 +180,8 @@ include("head.inc");
|
-
+
+ if (!empty($ifinfo['l2tplink']) && !empty($ifinfo['enable'])): ?>
| =gettext("L2TP"); ?> |
@@ -196,9 +194,8 @@ include("head.inc");
|
-
+
+ if (!empty($ifinfo['ppplink']) && !empty($ifinfo['enable'])): ?>
| =gettext("PPP"); ?> |
@@ -215,16 +212,14 @@ include("head.inc");
|
-
+
+
| = empty($ifinfo['ppp_uptime_accumulated']) ? gettext("Uptime") : gettext("Uptime (historical)") ?> |
= $ifinfo['ppp_uptime_accumulated'] ?> = $ifinfo['ppp_uptime'] ?> |
-
+
+
| =gettext("MAC address");?> |
@@ -236,19 +231,17 @@ include("head.inc");
?>
|
-
+
+ if ($ifinfo['mtu']): ?>
| =gettext("MTU");?> |
=$ifinfo['mtu'];?>
|
-
+
| = gettext("IPv4 address") ?> |
@@ -270,7 +263,7 @@ include("head.inc");
if (!empty($ifinfo['gateway'])): ?>
| = gettext('IPv4 gateway') ?> |
- = htmlspecialchars($config['interfaces'][$ifdescr]['gateway']) ?> = $ifinfo['gateway'] ?> |
+ = htmlspecialchars($config['interfaces'][$ifdescr]['gateway'] ?? gettext('auto-detected')) ?>: = $ifinfo['gateway'] ?> |
| = gettext('IPv6 gateway') ?> |
- = htmlspecialchars($config['interfaces'][$ifdescr]['gatewayv6']) ?> = $ifinfo['gatewayv6'] ?> |
+ = htmlspecialchars($config['interfaces'][$ifdescr]['gatewayv6'] ?? gettext('auto-detected')) ?>: = $ifinfo['gatewayv6'] ?> |