diff options
author | BBcan177 <bbcan177@gmail.com> | 2015-02-19 23:37:21 -0500 |
---|---|---|
committer | BBcan177 <bbcan177@gmail.com> | 2015-02-19 23:37:21 -0500 |
commit | 39a582b41ee23ac7fca9540b80e005192a974faa (patch) | |
tree | 6b718fdc45cf4e10506ff21362dcd10a161fdcb0 /config/pfblockerng | |
parent | f3bfd33d8ce160b32e413dc530281ea4908cded8 (diff) | |
download | pfsense-packages-39a582b41ee23ac7fca9540b80e005192a974faa.tar.gz pfsense-packages-39a582b41ee23ac7fca9540b80e005192a974faa.tar.bz2 pfsense-packages-39a582b41ee23ac7fca9540b80e005192a974faa.zip |
pfBlockerNG - Collect VIP Subnets for Alerts Tab
Diffstat (limited to 'config/pfblockerng')
-rw-r--r-- | config/pfblockerng/pfblockerng_alerts.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/pfblockerng/pfblockerng_alerts.php b/config/pfblockerng/pfblockerng_alerts.php index 416b78de..0164a4d2 100644 --- a/config/pfblockerng/pfblockerng_alerts.php +++ b/config/pfblockerng/pfblockerng_alerts.php @@ -570,7 +570,10 @@ if ($pfb['runonce']) { // Collect Virtual IP Aliases for Inbound/Outbound List Matching if (is_array($config['virtualip']['vip'])) { foreach ($config['virtualip']['vip'] as $list) { - $pfb_local[] = $list['subnet']; + if ($list['type'] == "single" && $list['subnet_bits'] == "32") + $pfb_local[] = $list['subnet']; + elseif ($list['type'] == "single" || $list['type'] == "network") + $pfb_local = array_merge (subnet_expand ("{$list['subnet']}/{$list['subnet_bits']}"), $pfb_local); } } // Collect NAT IP Addresses for Inbound/Outbound List Matching |