no message
parent
5167ee91fe
commit
710a25efbd
|
@ -472,6 +472,7 @@ function enable_nat {
|
|||
#[[ ${srcinterface} != "-" ]] && srcinterface="-i ${srcinterface}"
|
||||
[[ ${dstinterface} != "-" ]] && dstinterface="-o ${dstinterface}"
|
||||
[[ ${srcaddress} != "-" ]] && srcaddress="-s ${srcaddress}"
|
||||
([[ ${srcinterface} == "-" ]] && [[ ${type} == "SNAT" ]]) && srcinterface="-"
|
||||
|
||||
([[ ${dstinterface} != "-" ]] && [[ ${type} == "MASQ" ]]) && action="-j MASQUERADE"
|
||||
([[ ${dstinterface} == "-" ]] && [[ ${type} == "MASQ" ]]) && \
|
||||
|
|
Loading…
Reference in New Issue