aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-12 18:47:59 +0000
committerErmal <eri@pfsense.org>2012-07-12 18:47:59 +0000
commit9afa1a002f818b7dae2f34807cde2ad2610e8747 (patch)
treeeaaa3fd990c8883d6a83a9894a7dca217972b9c2 /config
parent609fa3f911338ff7de557463979f0537abde2526 (diff)
downloadpfsense-packages-9afa1a002f818b7dae2f34807cde2ad2610e8747.tar.gz
pfsense-packages-9afa1a002f818b7dae2f34807cde2ad2610e8747.tar.bz2
pfsense-packages-9afa1a002f818b7dae2f34807cde2ad2610e8747.zip
Fix whitelist ip list contents
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 547336cc..76520372 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -124,7 +124,7 @@ function snort_build_list($listname = "") {
$subnet = get_interface_ip($int);
if (is_ipaddr($subnet)) {
$sn = get_interface_subnet($int);
- $home_net = "{$subnet}/{$sn} ";
+ $home_net .= "{$subnet}/{$sn} ";
}
} else {
$ifcfg = $config['interfaces'][$int];
@@ -138,18 +138,18 @@ function snort_build_list($listname = "") {
$subnet = find_interface_ip("ng0");
if (is_ipaddr($subnet))
- $home_net = "{$subnet} ";
+ $home_net .= "{$subnet} ";
break;
case "dhcp":
$subnet = find_interface_ip(snort_get_real_interface($int));
if (is_ipaddr($subnet))
- $home_net = "{$subnet} ";
+ $home_net .= "{$subnet} ";
break;
default:
if (is_ipaddr($ifcfg['ipaddr'])) {
$subnet = gen_subnet($ifcfg['ipaddr'], $ifcfg['subnet']);
if ($ifcfg['subnet'])
- $home_net = "{$subnet}/{$ifcfg['subnet']} ";
+ $home_net .= "{$subnet}/{$ifcfg['subnet']} ";
}
break;
}
@@ -160,15 +160,15 @@ function snort_build_list($listname = "") {
/* Add Gateway on WAN interface to whitelist (For RRD graphs) */
$gw = get_interface_gateway('wan');
if (is_ipaddr($gw))
- $home_net = "{$gw} ";
+ $home_net .= "{$gw} ";
}
- if($wandns == 'yes') {
+ if ($wandns == 'yes') {
/* Add DNS server for WAN interface to whitelist */
$dns_servers = get_dns_servers();
foreach ($dns_servers as $dns) {
- if($dns)
- $home_net = "{$dns} ";
+ if ($dns)
+ $home_net .= "{$dns} ";
}
}