diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-25 21:34:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-25 21:34:53 +0000 |
commit | 9ad7c60961f02f0cd054ac84e70d00eb665e9dcb (patch) | |
tree | e3e634c0b74e3250df707bfb628de400ab296d87 /etc | |
parent | 38833ef2a61adf075ac5d790e3254c44a1d3520f (diff) | |
download | pfsense-9ad7c60961f02f0cd054ac84e70d00eb665e9dcb.zip pfsense-9ad7c60961f02f0cd054ac84e70d00eb665e9dcb.tar.gz |
If the wan or lan interface does not match the defined interfaces, ie: one of them doesnt exist, then do not setup the filter rules.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 0e57715..2ec275c 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -49,6 +49,12 @@ function filter_pflog_start() { function filter_configure() { global $config, $g; + $lan_if = $config['interfaces']['lan']['if']); + $wan_if = get_real_wan_interface(); + + if(does_interface_exist($lan_if) == false) return; + if(does_interface_exist($wan_if) == false) return; + if ($g['booting']) echo "Configuring firewall... "; |