Revision 6b3a7398
Added by Scott Ullrich over 20 years ago
usr/local/www/firewall_nat.php | ||
---|---|---|
58 | 58 |
} |
59 | 59 |
} |
60 | 60 |
|
61 |
$pconfig['nat']['enableoutboundloadbalancing'] = $_POST['enableoutboundloadbalancing'] ? true : false; |
|
62 |
write_config(); |
|
61 |
|
|
63 | 62 |
|
64 | 63 |
} |
65 | 64 |
|
... | ... | |
99 | 98 |
<li class="tabinact"><a href="firewall_nat_out.php">Outbound</a></li> |
100 | 99 |
</ul> |
101 | 100 |
</td></tr> |
102 |
|
|
103 |
<tr> |
|
104 |
<td class="tabcont"><p><span class="vexpl"> </span> |
|
105 |
<input name="enableoutboundloadbalancing" type="checkbox" id="enableoutboundloadbalancing" value="yes" <?php if ($pconfig['enableoutboundloadbalancing'] == "yes") echo "checked";?>> |
|
106 |
<strong>Enable outbound load balancing.<hr> |
|
107 |
</strong></p><input name="submit" type="submit" class="formbtn" value="Save"> |
|
108 |
</td> |
|
109 |
</tr> |
|
110 |
|
|
111 | 101 |
<tr> |
112 | 102 |
<td class="tabcont"> |
113 | 103 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
usr/local/www/firewall_nat_out.php | ||
---|---|---|
42 | 42 |
$pconfig = $_POST; |
43 | 43 |
|
44 | 44 |
$config['nat']['advancedoutbound']['enable'] = ($_POST['enable']) ? true : false; |
45 |
$pconfig['nat']['enableoutboundloadbalancing'] = $_POST['enableoutboundloadbalancing'] ? true : false; |
|
45 | 46 |
write_config(); |
46 | 47 |
|
47 | 48 |
$retval = 0; |
... | ... | |
103 | 104 |
<td class="vtable"><p> |
104 | 105 |
<input name="enable" type="checkbox" id="enable" value="yes" <?php if (isset($config['nat']['advancedoutbound']['enable'])) echo "checked";?>> |
105 | 106 |
<strong>Enable advanced outbound NAT<br> |
106 |
</strong></p></td> |
|
107 |
</strong></p> |
|
108 |
</td> |
|
109 |
<td class="vtable"><p> |
|
110 |
<input name="enableoutboundloadbalancing" type="checkbox" id="enableoutboundloadbalancing" value="yes" <?php if ($pconfig['enableoutboundloadbalancing'] == "yes") echo "checked";?>> |
|
111 |
<strong>Enable outbound load balancing.<br> |
|
112 |
</strong></p> |
|
113 |
</td> |
|
107 | 114 |
</tr> |
108 | 115 |
<tr> |
109 | 116 |
<td> <input name="submit" type="submit" class="formbtn" value="Save"> |
110 | 117 |
</td> |
111 | 118 |
</tr> |
112 | 119 |
<tr> |
113 |
<td><p><span class="vexpl"><span class="red"><strong>Note:<br> |
|
120 |
<td colspan="2"><p><span class="vexpl"><span class="red"><strong>Note:<br>
|
|
114 | 121 |
</strong></span>If advanced outbound NAT is enabled, no outbound NAT |
115 | 122 |
rules will be automatically generated anymore. Instead, only the mappings |
116 | 123 |
you specify below will be used. With advanced outbound NAT disabled, |
Also available in: Unified diff
Load balancing makes more sense on the outgoing tab