diff options
author | Matthew Grooms <mgrooms@pfsense.org> | 2008-07-13 23:28:45 +0000 |
---|---|---|
committer | Matthew Grooms <mgrooms@pfsense.org> | 2008-07-13 23:28:45 +0000 |
commit | 3462a52903223da3bf931ab0dda9267242c4bb6c (patch) | |
tree | c48c6e58b55e61d592bea303dbbb9a9bdf4c4f05 /usr/local/www/vpn_ipsec.php | |
parent | 916c50019bb2bf3116f023fd5933f236598c5fd7 (diff) | |
download | pfsense-3462a52903223da3bf931ab0dda9267242c4bb6c.zip pfsense-3462a52903223da3bf931ab0dda9267242c4bb6c.tar.gz |
Introduce a new and improved version of IPsec mobile client support. The
mobile client tab is now used to configure user authentication (Xauth) and
client configuration (mode-cfg) options. User authentication is currently
limited to system password file entries. This will be extended to support
external RADIUS and LDAP account DBs in a follow up comiit.
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-x | usr/local/www/vpn_ipsec.php | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 94f4c37..d6761be 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -139,7 +139,7 @@ include("head.inc"); <?php $tab_array = array(); $tab_array[0] = array("Tunnels", true, "vpn_ipsec.php"); -// $tab_array[1] = array("Mobile clients", false, "vpn_ipsec_mobile.php"); + $tab_array[1] = array("Mobile clients", false, "vpn_ipsec_mobile.php"); $tab_array[2] = array("CAs", false, "vpn_ipsec_ca.php"); display_top_tabs($tab_array); ?> @@ -179,6 +179,7 @@ include("head.inc"); </table> </td> </tr> + <?php $i = 0; foreach ($a_phase1 as $ph1ent) { @@ -205,7 +206,10 @@ include("head.inc"); else $if = "WAN"; - echo $if . "<br>" . $ph1ent['remote-gateway']; + if (!isset($ph1ent['mobile'])) + echo $if."<br>".$ph1ent['remote-gateway']; + else + echo $if."<br><strong>Mobile Client</strong>"; ?> <?=$spane;?> </td> @@ -275,7 +279,7 @@ include("head.inc"); <td class="listhdrr">P2 Transforms</td> <td class="listhdrr">P2 Auth Methods</td> <td class ="list"> - <a href="vpn_ipsec_phase2.php?ikeid=<?=$ph1ent['ikeid'];?>"> + <a href="vpn_ipsec_phase2.php?ikeid=<?=$ph1ent['ikeid'];?><?php if (isset($ph1ent['mobile'])) echo "&mobile=true";?>"> <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add phase2 entry" width="17" height="17" border="0"> </a> </td> @@ -296,19 +300,20 @@ include("head.inc"); $spans = $spane = ""; ?> <tr valign="top"> + <td nowrap class="listr" ondblclick="document.location='vpn_ipsec_phase2.php?id=<?=$i;?>'"> <?=$spans;?> - <?php echo ipsec_idinfo_to_text($ph2ent['localid']); ?> + <?=ipsec_idinfo_to_text($ph2ent['localid']); ?> <?=$spane;?> </td> <td nowrap class="listr" ondblclick="document.location='vpn_ipsec_phase2.php?id=<?=$i;?>'"> <?=$spans;?> - <?php echo ipsec_idinfo_to_text($ph2ent['remoteid']); ?> + <?=ipsec_idinfo_to_text($ph2ent['remoteid']); ?> <?=$spane;?> </td> <td nowrap class="listr" ondblclick="document.location='vpn_ipsec_phase2.php?id=<?=$i;?>'"> <?=$spans;?> - <?php echo $p2_protos[$ph2ent['protocol']]; ?> + <?php echo $p2_protos[$ph2ent['protocol']]; ?> <?=$spane;?> </td> <td nowrap class="listr" ondblclick="document.location='vpn_ipsec_phase2.php?id=<?=$i;?>'"> @@ -350,6 +355,7 @@ include("head.inc"); </a> </td> </tr> + <?php $j++; } @@ -361,6 +367,7 @@ include("head.inc"); $i++; } ?> + <tr> <td class="list" colspan="5"></td> <td class="list"> |