diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-01-25 21:32:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-01-25 21:32:40 +0000 |
commit | 3da9a135d462261965170a7efbd9e654ad884b21 (patch) | |
tree | 0e04a5488beb4f13ee3af54d97e597d08bcfc149 /usr/local/www/vpn_ipsec.php | |
parent | 6dfd800f50d94f622033dffbbb288865c863d505 (diff) | |
download | pfsense-3da9a135d462261965170a7efbd9e654ad884b21.zip pfsense-3da9a135d462261965170a7efbd9e654ad884b21.tar.gz |
Add IPCOMP (IP Compression) support to IPSEC VPN's
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-x | usr/local/www/vpn_ipsec.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index f34c897..3863293 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -8,7 +8,7 @@ originally part of m0n0wall (http://m0n0.ch/wall) Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>. All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -41,6 +41,7 @@ $wancfg = &$config['interfaces']['wan']; $pconfig['enable'] = isset($config['ipsec']['enable']); $pconfig['preferredoldsa'] = isset($config['ipsec']['preferredoldsa']); +$pconfig['ipcomp'] = isset($config['ipsec']['ipcomp']); if ($_POST) { @@ -58,6 +59,7 @@ if ($_POST) { $config['ipsec']['enable'] = $_POST['enable'] ? true : false; $config['ipsec']['preferredoldsa'] = $_POST['preferredoldsa'] ? true : false; + $config['ipsec']['ipcomp'] = $_POST['ipcomp'] ? true : false; write_config(); @@ -124,6 +126,11 @@ if ($_GET['act'] == "del") { <strong>Prefer newer SA's.<br> </strong></p> </td> + <td class="vtable"><p><span class="vexpl"> </span> + <input name="ipcomp" type="checkbox" id="ipcomp" value="yes" <?php if ($pconfig['ipcomp'] == "yes") echo "checked";?>> + <strong>Enable VPN IP Compression<br> + </strong></p> + </td> </tr> <tr> <td> <input name="submit" type="submit" class="formbtn" value="Save"> |