master 2.1p1
Brie Bruns 2020-01-01 13:52:48 -07:00
コミット 11003d6b04
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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" ]]) && \