summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-10-30 16:31:18 -0200
committerRenato Botelho <renato@netgate.com>2015-10-30 16:31:18 -0200
commit84c7819887512c4ca067d4f8dc8dad0ee8600ad7 (patch)
tree60fc3d85c047ec2e0a126e99d9171ae895c27af8
parent2bd69a578a71b1ac0ca70b13ab8e62722302fc96 (diff)
downloadpfsense-84c7819887512c4ca067d4f8dc8dad0ee8600ad7.zip
pfsense-84c7819887512c4ca067d4f8dc8dad0ee8600ad7.tar.gz
Remove port information from diag_ipsec.php since it's not available on VICI, also use local-nat-t and remote-nat-t to detect when NAT-T is being used
-rw-r--r--usr/local/www/diag_ipsec.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php
index e1fbfdf..bbaf540 100644
--- a/usr/local/www/diag_ipsec.php
+++ b/usr/local/www/diag_ipsec.php
@@ -172,12 +172,11 @@ $status = pfSense_ipsec_list_sa();
<td class="listr">
<?php
if (!empty($ikesa['local-host'])) {
- echo htmlspecialchars($ikesa['local-host']) . '<br/>' .
- gettext('Port: ') . htmlspecialchars($ikesa['local-port']);
+ echo htmlspecialchars($ikesa['local-host']);
} else {
echo gettext("Unknown");
}
- if ($ikesa['local-port'] == '4500') {
+ if (isset($ikesa['local-nat-t'])) {
echo " NAT-T";
}
@@ -211,12 +210,11 @@ $status = pfSense_ipsec_list_sa();
<td class="listr">
<?php
if (!empty($ikesa['remote-host'])) {
- echo htmlspecialchars($ikesa['remote-host']) . '<br/>' .
- gettext('Port: ') . htmlspecialchars($ikesa['remote-port']);
+ echo htmlspecialchars($ikesa['remote-host']);
} else {
echo gettext("Unknown");
}
- if ($ikesa['remote-port'] == '4500') {
+ if (isset($ikesa['remote-nat-t'])) {
echo " NAT-T";
}
?>
OpenPOWER on IntegriCloud