diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-12-02 20:06:47 -0200 |
---|---|---|
committer | Marcello Coutinho <marcellocoutinho@gmail.com> | 2013-12-02 20:06:47 -0200 |
commit | d40916e639e314d9124586f7a068762020f7beeb (patch) | |
tree | 3333171edba6d9c1ce87d7fd647854c4de03743e /config/haproxy-legacy | |
parent | 63aa82df03b81c31a4a0a2f74950cbcaf54b67f2 (diff) | |
download | pfsense-packages-d40916e639e314d9124586f7a068762020f7beeb.tar.gz pfsense-packages-d40916e639e314d9124586f7a068762020f7beeb.tar.bz2 pfsense-packages-d40916e639e314d9124586f7a068762020f7beeb.zip |
haproxy-full - add localhost to listening option.
usefull while using carp.
Diffstat (limited to 'config/haproxy-legacy')
-rwxr-xr-x | config/haproxy-legacy/haproxy_frontends_edit.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/haproxy-legacy/haproxy_frontends_edit.php b/config/haproxy-legacy/haproxy_frontends_edit.php index df2411b2..548cf612 100755 --- a/config/haproxy-legacy/haproxy_frontends_edit.php +++ b/config/haproxy-legacy/haproxy_frontends_edit.php @@ -590,9 +590,11 @@ set by the 'retries' parameter (2).</div> <td width="78%" class="vtable"> <select name="extaddr" class="formfld"> <option value="" <?php if (!$pconfig['extaddr']) echo "selected"; ?>>Interface address</option> + <option value="127.0.0.1" <?php if($pconfig['extaddr'] == "Localhost") echo "selected"; ?>>Localhost</option> + <option value="any" <?php if($pconfig['extaddr'] == "any") echo "selected"; ?>>any</option> <?php if (is_array($config['virtualip']['vip'])): - foreach ($config['virtualip']['vip'] as $sn): + foreach ($config['virtualip']['vip'] as $sn): ?> <option value="<?=$sn['subnet'];?>" <?php if ($sn['subnet'] == $pconfig['extaddr']) echo "selected"; ?>> <?=htmlspecialchars("{$sn['subnet']} ({$sn['descr']})");?> @@ -601,13 +603,14 @@ set by the 'retries' parameter (2).</div> endforeach; endif; ?> - <option value="any" <?php if($pconfig['extaddr'] == "any") echo "selected"; ?>>any</option> + </select> <br /> <span class="vexpl"> If you want this rule to apply to another IP address than the IP address of the interface chosen above, select it here (you need to define <a href="firewall_virtual_ip.php">Virtual IP</a> addresses on the first). - Also note that if you are trying to redirect connections on the LAN select the "any" option. + Also note that if you are trying to redirect connections on the LAN select the "any" option.<br> + While using carp, select localhost and forward via NAT. </span> </td> </tr> |