aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-16 10:05:47 +0000
committerErmal <eri@pfsense.org>2012-07-16 10:05:47 +0000
commitd39a8aa1dd596068db94db4ad1b774f99598cfff (patch)
tree2686be34f30728b7b239987ae191c9c482ddc584 /config/snort
parent90a78d1150d6cf90b9fb60c2237d8c12b112c7d0 (diff)
downloadpfsense-packages-d39a8aa1dd596068db94db4ad1b774f99598cfff.tar.gz
pfsense-packages-d39a8aa1dd596068db94db4ad1b774f99598cfff.tar.bz2
pfsense-packages-d39a8aa1dd596068db94db4ad1b774f99598cfff.zip
Enable support for IPv6 into snort code for 2.1
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 371b0e5b..cd01ff65 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -155,8 +155,12 @@ function snort_build_list($snortcfg, $listname = "") {
/* calculate interface subnet information */
if (function_exists('get_interface_ip')) {
$subnet = get_interface_ip($int);
- if (is_ipaddr($subnet)) {
+ if (is_ipaddr($subnet))
$home_net .= "{$subnet} ";
+ if (function_exists("get_interface_ipv6")) {
+ $subnet = get_interface_ipv6($int);
+ if (is_ipaddrv6($subnet))
+ $home_net .= "{$subnet} ";
}
} else {
$ifcfg = $config['interfaces'][$int];
@@ -190,6 +194,11 @@ function snort_build_list($snortcfg, $listname = "") {
$gw = get_interface_gateway($snortcfg['interface']);
if (is_ipaddr($gw))
$home_net .= "{$gw} ";
+ if (function_exists("get_interface_gatewayv6")) {
+ $gw = get_interface_gatewayv6($snortcfg['interface']);
+ if (is_ipaddrv6($gw))
+ $home_net .= "{$gw} ";
+ }
}
if ($wandns == 'yes') {