瀏覽代碼

no message

tags/2.1p1^0
Brielle Bruns 11 月之前
父節點
當前提交
11003d6b04
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lib/iptables.inc

+ 1
- 1
lib/iptables.inc 查看文件

@@ -472,7 +472,7 @@ function enable_nat {
#[[ ${srcinterface} != "-" ]] && srcinterface="-i ${srcinterface}"
[[ ${dstinterface} != "-" ]] && dstinterface="-o ${dstinterface}"
[[ ${srcaddress} != "-" ]] && srcaddress="-s ${srcaddress}"
([[ ${srcinterface} == "-" ]] && [[ ${type} == "SNAT" ]]) && srcinterface="-"
([[ ${srcinterface} != "-" ]] && [[ ${type} == "SNAT" ]]) && srcinterface="-"
([[ ${dstinterface} != "-" ]] && [[ ${type} == "MASQ" ]]) && action="-j MASQUERADE"
([[ ${dstinterface} == "-" ]] && [[ ${type} == "MASQ" ]]) && \


Loading…
取消
儲存