summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_ipsec.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index 3863293..a5e302a 100755
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -60,6 +60,8 @@ if ($_POST) {
$config['ipsec']['enable'] = $_POST['enable'] ? true : false;
$config['ipsec']['preferredoldsa'] = $_POST['preferredoldsa'] ? true : false;
$config['ipsec']['ipcomp'] = $_POST['ipcomp'] ? true : false;
+ if($_POST['interface'] <> "")
+ $config['ipsec']['interface'] = $_POST['interface'];
write_config();
@@ -131,6 +133,24 @@ if ($_GET['act'] == "del") {
<strong>Enable VPN IP Compression<br>
</strong></p>
</td>
+ <td class="vtable"><p><span class="vexpl"> </span>
+ <select name="interface">
+ <?php
+ $iflist = get_friendly_interface_list_as_array();
+ <option value="">ALL</option>
+ foreach ($iflist as $ifa): ?>
+ <?php
+ $friendly = convert_real_interface_to_friendly_interface_name($ifa);
+ $ip = find_interface_ip($ifa);
+ $SELECTED="";
+ if($config['ipsec']['interface'] == $ifa) $SELECTED = " SELECTED";
+ ?>
+ <option value="<?php echo $ifa; ?>"<?=$SELECTED?>><?=$ip?> - <?=$friendly?> - <?=$ifa?></option>
+ <?php endforeach; ?>
+ </select>
+ <strong>Listening interface<br>
+ </strong></p>
+ </td>
</tr>
<tr>
<td> <input name="submit" type="submit" class="formbtn" value="Save">
OpenPOWER on IntegriCloud