master
parent
4110f50003
commit
cca6c1dd75
|
@ -363,7 +363,7 @@ function enable_nat {
|
||||||
[[ ${dstaddress} == "-" ]] && dstaddress=""
|
[[ ${dstaddress} == "-" ]] && dstaddress=""
|
||||||
[[ ${srcaddress} == "-" ]] && srcaddress=""
|
[[ ${srcaddress} == "-" ]] && srcaddress=""
|
||||||
|
|
||||||
${VER_IPTABLES} -A ${NAT} -t nat ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${action}
|
${VER_IPTABLES} -A ${NAT} ${srcaddress} ${action} ${dstinterface} ${dstaddress}
|
||||||
${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED ${srcinterface} ${srcaddress} ${dstinterface} -j ACCEPT
|
${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED ${srcinterface} ${srcaddress} ${dstinterface} -j ACCEPT
|
||||||
done < "${FWCONFIGDIR}/ipv${IPVER}/nat.conf"
|
done < "${FWCONFIGDIR}/ipv${IPVER}/nat.conf"
|
||||||
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} done"
|
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} done"
|
||||||
|
|
Loading…
Reference in New Issue