summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-09 16:50:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-09 16:50:37 +0000
commit9534ea8b210f0e4f525f342d8356743208a38cb2 (patch)
tree766891bc486972e67cb506b441b27b23c1c585cc /usr/local/www/system_advanced.php
parent23a442986d8586330ade19c426dfc12b7f714828 (diff)
downloadpfsense-9534ea8b210f0e4f525f342d8356743208a38cb2.zip
pfsense-9534ea8b210f0e4f525f342d8356743208a38cb2.tar.gz
Port load balancer sticky address option
Diffstat (limited to 'usr/local/www/system_advanced.php')
-rwxr-xr-xusr/local/www/system_advanced.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 39960d7..7328782 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -59,6 +59,7 @@ $pconfig['disablenatreflection'] = $config['system']['disablenatreflection'];
$pconfig['disablechecksumoffloading'] = isset($config['system']['disablechecksumoffloading']);
$pconfig['disablescrub'] = isset($config['system']['disablescrub']);
$pconfig['shapertype'] = $config['system']['shapertype'];
+$pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']);
if ($_POST) {
@@ -130,6 +131,11 @@ if ($_POST) {
setup_polling();
}
+ if($_POST['lb_use_sticky'] == "yes")
+ $config['system']['lb_use_sticky'] = true;
+ else
+ unset($config['system']['lb_use_sticky']);
+
if($_POST['sharednet'] == "yes") {
$config['system']['sharednet'] = true;
system_disable_arp_wrong_if();
@@ -402,10 +408,40 @@ include("head.inc");
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
+
+ <tr>
+ <td colspan="2" valign="top" class="listtopic">Load Balancing</td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">Load Balancing</td>
+ <td width="78%" class="vtable">
+ <input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?php if ($pconfig['lb_use_sticky']) echo "checked=\"checked\""; ?> />
+ <strong>Use sticky connections</strong>
+ <br />
+ <span class="vexpl">
+ Successive connections will be redirected to the servers in a round-robin manner with connections from the same source being sent to the same web server. This \"sticky connection\" will exist as long as there are states that refer to this connection. Once the states expire, so will the sticky connection. Further connections from that host will be redirected to the next web server in the round robin.
+ </span>
+ </td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top">&nbsp;</td>
+ <td width="78%">
+ <input type="submit" class="formbtn" value="Save" onclick="enable_change(true)" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" class="list" height="12">&nbsp;</td>
+ </tr>
+
<tr>
<td colspan="2" valign="top" class="listtopic">Miscellaneous</td>
</tr>
+ <tr>
+ <td colspan="2" class="list" height="12">&nbsp;</td>
+ </tr>
+
+
<tr>
<td width="22%" valign="top" class="vncell">Device polling</td>
<td width="78%" class="vtable">
OpenPOWER on IntegriCloud