summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-04-13 12:50:32 -0400
committerDarren Embry <dse@webonastick.com>2012-04-13 12:50:32 -0400
commit5923185536d9bd0c56aa6e425316ee8e0fdaec48 (patch)
tree99d35ba5328b953d92e0895896584d08219253d2 /usr/local
parent79909926af30fd40805fb389907b09179663ac29 (diff)
downloadpfsense-5923185536d9bd0c56aa6e425316ee8e0fdaec48.zip
pfsense-5923185536d9bd0c56aa6e425316ee8e0fdaec48.tar.gz
Feature #1864 "Start" button for IPsec should be available for IP alias networks
might need more testing. http://redmine.pfsense.org/issues/1864
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/diag_ipsec.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php
index e682a5f..71f379c 100644
--- a/usr/local/www/diag_ipsec.php
+++ b/usr/local/www/diag_ipsec.php
@@ -128,12 +128,26 @@ $sad = ipsec_dump_sad();
<td class="list">
<?php
$source = "";
+ $ip_interface = null;
+ $ip_alias = null;
if ($ph2ent['localid']['type'] == 'lan') {
$source = get_interface_ip('lan');
+ } else if ($ph2ent['localid']['type'] == 'network') {
+ $ip_interface = find_ip_interface($ph2ent['localid']['address'], $ph2ent['localid']['netbits']);
+ if (!$ip_interface) {
+ $ip_alias = find_virtual_ip_alias($ph2ent['localid']['address'], $ph2ent['localid']['netbits']);
+ }
} else {
- $source = get_interface_ip(find_ip_interface($ph2ent['localid']['address']));
+ $ip_interface = find_ip_interface($ph2ent['localid']['address']);
+ if (!$ip_interface) {
+ $ip_alias = find_virtual_ip_alias($ph2ent['localid']['address']);
+ }
+ }
+ if ($ip_interface) {
+ $source = get_interface_ip($ip_interface);
+ } else if ($ip_alias) {
+ $source = $ip_alias['subnet'];
}
-
?>
<?php if (($ph2ent['remoteid']['type'] != "mobile") && ($icon != "pass") && ($source != "")): ?>
<center>
OpenPOWER on IntegriCloud