diff options
author | Ermal <eri@pfsense.org> | 2011-08-02 21:24:07 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-02 21:24:07 +0000 |
commit | 0fea70004e5878e51219f42b5b5274448a1f7533 (patch) | |
tree | 05da0459048eccbda84bdcd56ed8a14d2159b067 | |
parent | 834a3e6ae7c5f1604da6efa63732300e8b34f128 (diff) | |
download | pfsense-0fea70004e5878e51219f42b5b5274448a1f7533.zip pfsense-0fea70004e5878e51219f42b5b5274448a1f7533.tar.gz |
Blacklist lan as being used as default gateway when auto switching is on. This prevents some problems in general functionality with services.
-rw-r--r-- | etc/inc/gwlb.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 8417af1..3ee2590 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -389,7 +389,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; |