Skip to content

Commit

Permalink
Apply ipv4/ipv6 to whole group
Browse files Browse the repository at this point in the history
  • Loading branch information
philwhineray committed Feb 3, 2014
1 parent d3f01d9 commit 097ae80
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sbin/firehol.in
Original file line number Diff line number Diff line change
Expand Up @@ -4329,6 +4329,7 @@ group() {

case $type in
with|start|begin)
push_namespace "${FIREHOL_NS_CURR}"
# increase the counter
FIREHOL_GROUP_COUNTER=$[FIREHOL_GROUP_COUNTER + 1]

Expand Down Expand Up @@ -4362,6 +4363,7 @@ group() {
set_work_function "Closing group '${work_name}'. Now working under '${FIREHOL_GROUP_STACK[$FIREHOL_GROUP_DEPTH]}'"

work_name=${FIREHOL_GROUP_STACK[$FIREHOL_GROUP_DEPTH]}
pop_namespace
;;

*)
Expand All @@ -4373,6 +4375,18 @@ group() {
return 0
}

group4() {
ipv4 group "$@"
}

group6() {
ipv6 group "$@"
}

group46() {
both group "$@"
}

close_all_groups() {
while [ ${FIREHOL_GROUP_DEPTH} -gt 0 ]
do
Expand Down

0 comments on commit 097ae80

Please sign in to comment.