no message
parent
ae9a725e8c
commit
5eb6c581e6
|
@ -485,8 +485,8 @@ function enable_nat {
|
||||||
&& continue
|
&& continue
|
||||||
|
|
||||||
[[ ${type} == "NETMAP" ]] && action="-j NETMAP"
|
[[ ${type} == "NETMAP" ]] && action="-j NETMAP"
|
||||||
([[ ${dstaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) dstaddress="-d ${dstaddress}"
|
([[ ${dstaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) && dstaddress="-d ${dstaddress}"
|
||||||
([[ ${srcaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) srcaddress="-s ${srcaddress}"
|
([[ ${srcaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) && srcaddress="-s ${srcaddress}"
|
||||||
([[ ${custom} == "" ]] && [[ ${type} == "NETMAP" ]]) && \
|
([[ ${custom} == "" ]] && [[ ${type} == "NETMAP" ]]) && \
|
||||||
${display} RED "nat.conf: Error - NETMAP rule can not have empty custom address: ${DEFAULT_COLOR}${type} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${custom}" \
|
${display} RED "nat.conf: Error - NETMAP rule can not have empty custom address: ${DEFAULT_COLOR}${type} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${custom}" \
|
||||||
&& continue
|
&& continue
|
||||||
|
|
Loading…
Reference in New Issue