Sfoglia il codice sorgente

no message

tags/2.1p1^0
Brielle Bruns 11 mesi fa
parent
commit
11003d6b04
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      lib/iptables.inc

+ 1
- 1
lib/iptables.inc Vedi File

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


Caricamento…
Annulla
Salva