summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-02 21:24:07 +0000
committerErmal <eri@pfsense.org>2011-08-02 21:25:23 +0000
commite56a730636d36714b29fdec9947f4b8d0f2ff443 (patch)
tree6c8724c412787c0c1250689c001bd5a9bf2dd1a3 /etc/inc/gwlb.inc
parentb0d088eb6fe3cf91ddd4aade1540a5749f551aa7 (diff)
downloadpfsense-e56a730636d36714b29fdec9947f4b8d0f2ff443.zip
pfsense-e56a730636d36714b29fdec9947f4b8d0f2ff443.tar.gz
Blacklist lan as being used as default gateway when auto switching is on. This prevents some problems in general functionality with services.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index e26adb1..172271d 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -394,7 +394,8 @@ function return_gateway_groups_array() {
$dfltgwdown = true;
}
/* Keep a record of the last up gateway */
- if (empty($upgw) && (isset($gwsttng['monitor_disable']) || !stristr($gateways_status[$gwname]['status'], "down")))
+ /* XXX: Blacklist lan for now since it might cause issues to those who have a gateway set for it */
+ if (empty($upgw) && (isset($gwsttng['monitor_disable']) || !stristr($gateways_status[$gwname]['status'], "down")) && $gateways_status[$gwname]['friendlyiface'] != "lan")
$upgw = $gwname;
if ($dfltgwdown == true && !empty($upgw))
break;
OpenPOWER on IntegriCloud