2.1p1 to fix NETMAP issue
parent
f8cb8b11e2
commit
ca06b76fc2
|
@ -1,3 +1,6 @@
|
|||
2.1p1 - 01/01/2020
|
||||
- Fix NETMAP so it works properly (was doing -d instead of -s for source address)
|
||||
|
||||
2.1 Final - 07/12/2019
|
||||
- Fix flush tables rule for raw
|
||||
- Final 2.1 release since we've had 2.1 for 5 years now without being 'released'
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Static config options, normally do not need to change
|
||||
FW_VERSION="2.1"
|
||||
FW_VERSION="2.1p1"
|
||||
|
||||
# Important directory locations
|
||||
FWPREFIX="/usr/local"
|
||||
|
|
|
@ -484,7 +484,7 @@ function enable_nat {
|
|||
${display} RED "nat.conf: Error - SNAT rule can not have empty destination address: ${DEFAULT_COLOR}${type} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress}" \
|
||||
&& continue
|
||||
|
||||
([[ ${srcaddress} != "-" ]] && [[ ${dstaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) && action="-j NETMAP" && srcaddress="-d ${srcaddress}" && dstaddress="--to ${dstaddress}"
|
||||
([[ ${srcaddress} != "-" ]] && [[ ${dstaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) && action="-j NETMAP" && srcaddress="-s ${srcaddress}" && dstaddress="--to ${dstaddress}"
|
||||
|
||||
|
||||
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${direction} ${action} ${srcinterface} ${srcaddress} ${srcport} ${dstinterface} ${dstaddress} ${dstport} ${protocol} ${custom}"
|
||||
|
|
Loading…
Reference in New Issue