diff options
author | Phil Davis <phil.davis@inf.org> | 2015-03-31 23:29:14 +0545 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-04-02 13:40:18 -0300 |
commit | a46212734aa36f346b12afa88a61fcf929f083c1 (patch) | |
tree | 0915a372e2364686eb76673d98d8839ae42fc32a /etc | |
parent | d985cfa679d00b691d7faf294db9b946206e1c14 (diff) | |
download | pfsense-a46212734aa36f346b12afa88a61fcf929f083c1.zip pfsense-a46212734aa36f346b12afa88a61fcf929f083c1.tar.gz |
Bug #4566 Only route-to a gateway if it is not force_down
When generating policy-routing rules there was no check if a gateway had force-down set, so gateway with force_down set would still get policy-routing rules written for it, even if skip_rules_gw_down was enabled.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 23bce61..ee8fa1e 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -796,7 +796,7 @@ function filter_generate_gateways() { $route = ""; if (!is_ipaddr($gwip)) $gwip = get_interface_gateway($gateway['friendlyiface']); - if (is_ipaddr($gwip) && !empty($int)) + if (is_ipaddr($gwip) && !empty($int) && !isset($gateway['force_down'])) $route = "route-to ( {$int} {$gwip} )"; if (($route === "") && isset($config['system']['skip_rules_gw_down'])) unset($GatewaysList[$gwname]); |