summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-05 18:52:30 +0000
committerErmal <eri@pfsense.org>2013-02-05 18:52:57 +0000
commit52b166c948708a40d470c88d401a8e3a4fe3671c (patch)
treec73467563f11767224a39fd340fc1a21b2e6d647 /etc/inc/filter.inc
parentc65eef01a3421d94282ab7d193388d8a1ae4420f (diff)
downloadpfsense-52b166c948708a40d470c88d401a8e3a4fe3671c.zip
pfsense-52b166c948708a40d470c88d401a8e3a4fe3671c.tar.gz
Correct setting protocol for generated rules
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c71886b..7714a8b 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2086,6 +2086,18 @@ function filter_generate_user_rule($rule) {
return "# source network or destination network == pptp on " . $rule['descr'];
}
+ switch($rule['ipprotocol']) {
+ case "inet":
+ $aline['ipprotocol'] = "inet";
+ break;
+ case "inet6":
+ $aline['ipprotocol'] = "inet6";
+ break;
+ default:
+ $aline['ipprotocol'] = "";
+ break;
+ }
+
/* check for unresolvable aliases */
if($rule['source']['address'] && !alias_expand($rule['source']['address'])) {
file_notice("Filter_Reload", "# unresolvable source aliases {$rule['descr']}");
OpenPOWER on IntegriCloud