Browse Source

no message

tags/2.1p1
Brielle Bruns 9 months ago
parent
commit
710a25efbd
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/iptables.inc

+ 1
- 0
lib/iptables.inc View File

@@ -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…
Cancel
Save