firewall: don't setup nat reflection if negations are used
SVN-Revision: 23142
This commit is contained in:
parent
6a335579b8
commit
a1a31f1831
@ -82,6 +82,9 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
|
|||||||
|
|
||||||
[ "$proto" = tcpudp ] && proto="tcp udp"
|
[ "$proto" = tcpudp ] && proto="tcp udp"
|
||||||
|
|
||||||
|
[ "${inthost#!}" = "$inthost" ] || return 0
|
||||||
|
[ "${exthost#!}" = "$exthost" ] || return 0
|
||||||
|
|
||||||
local p
|
local p
|
||||||
for p in ${proto:-tcp udp}; do
|
for p in ${proto:-tcp udp}; do
|
||||||
case "$p" in
|
case "$p" in
|
||||||
|
Loading…
Reference in New Issue
Block a user