aboutsummaryrefslogtreecommitdiffstats
path: root/config/pfblockerng/pfblockerng_alerts.php
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2015-02-19 23:37:21 -0500
committerBBcan177 <bbcan177@gmail.com>2015-02-19 23:37:21 -0500
commit39a582b41ee23ac7fca9540b80e005192a974faa (patch)
tree6b718fdc45cf4e10506ff21362dcd10a161fdcb0 /config/pfblockerng/pfblockerng_alerts.php
parentf3bfd33d8ce160b32e413dc530281ea4908cded8 (diff)
downloadpfsense-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/pfblockerng_alerts.php')
-rw-r--r--config/pfblockerng/pfblockerng_alerts.php5
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