mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-14 21:56:52 +02:00
Don't generate redundant ACCEPT rules for DNAT/REDIRECT/SAME
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2456 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
111bdded1c
commit
bba152b119
@ -8,6 +8,10 @@ Changes in 2.5.1
|
|||||||
|
|
||||||
4) Fix Makefile (compare to restore-base rather than restarted).
|
4) Fix Makefile (compare to restore-base rather than restarted).
|
||||||
|
|
||||||
|
5) Add "all+"
|
||||||
|
|
||||||
|
6) Don't generate redundant ACCEPT rules for DNAT/REDIRECT/SAME
|
||||||
|
|
||||||
Changes in 2.5.1ex/2.5.0
|
Changes in 2.5.1ex/2.5.0
|
||||||
|
|
||||||
1) Clean up handling of zones
|
1) Clean up handling of zones
|
||||||
|
@ -4763,6 +4763,7 @@ add_nat_rule() {
|
|||||||
# userandgroup= -m owner clause
|
# userandgroup= -m owner clause
|
||||||
# userspec = User name
|
# userspec = User name
|
||||||
# logtag = Log tag
|
# logtag = Log tag
|
||||||
|
# policy = Applicable Policy
|
||||||
#
|
#
|
||||||
add_a_rule()
|
add_a_rule()
|
||||||
{
|
{
|
||||||
@ -4915,6 +4916,7 @@ add_a_rule()
|
|||||||
|
|
||||||
if [ -n "$natrule" ]; then
|
if [ -n "$natrule" ]; then
|
||||||
add_nat_rule
|
add_nat_rule
|
||||||
|
[ $policy = ACCEPT ] && return
|
||||||
elif [ -n "$servport" -a "$servport" != "$port" ]; then
|
elif [ -n "$servport" -a "$servport" != "$port" ]; then
|
||||||
fatal_error "Only DNAT, SAME and REDIRECT rules may specify destination port mapping; rule \"$rule\""
|
fatal_error "Only DNAT, SAME and REDIRECT rules may specify destination port mapping; rule \"$rule\""
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user