Oops, misordered the NAT rule
parent
beafa08b9a
commit
1fb4e1c5b0
|
@ -484,8 +484,9 @@ function enable_nat {
|
||||||
[[ ${dstaddress} == "-" ]] && dstaddress=""
|
[[ ${dstaddress} == "-" ]] && dstaddress=""
|
||||||
[[ ${srcaddress} == "-" ]] && srcaddress=""
|
[[ ${srcaddress} == "-" ]] && srcaddress=""
|
||||||
[[ ${custom} == "-" ]] && custom=""
|
[[ ${custom} == "-" ]] && custom=""
|
||||||
|
|
||||||
|
|
||||||
${VER_IPTABLES} -A ${NAT} -t nat ${srcaddress} ${dstinterface} ${dstaddress} ${custom} ${action}
|
${VER_IPTABLES} -A ${NAT} -t nat ${srcaddress} ${action} ${dstinterface} ${dstaddress} ${custom}
|
||||||
#${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED,NEW ${srcinterface} ${srcaddress} ${dstinterface} -j ACCEPT
|
#${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED,NEW ${srcinterface} ${srcaddress} ${dstinterface} -j ACCEPT
|
||||||
#${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED ${revsrcinterface} ${revsrcaddress} ${revdstinterface} -j ACCEPT
|
#${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED ${revsrcinterface} ${revsrcaddress} ${revdstinterface} -j ACCEPT
|
||||||
done < "${FWCONFIGDIR}/ipv${IPVER}/nat.conf"
|
done < "${FWCONFIGDIR}/ipv${IPVER}/nat.conf"
|
||||||
|
|
Loading…
Reference in New Issue