diff --git a/CHANGELOG b/CHANGELOG index ced2447..e59e5d0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2.1p2 - 02/27/2020 + - Fix issue with NAT variable not being reset after being changed + 2.1p1 - 01/01/2020 - Refactor NETMAP NAT target so its more flexible. See new example nat.conf file for details diff --git a/bin/srfirewall b/bin/srfirewall index 5d2c3a5..50cc5e5 100755 --- a/bin/srfirewall +++ b/bin/srfirewall @@ -19,7 +19,7 @@ # along with this program. If not, see . # Static config options, normally do not need to change -FW_VERSION="2.1p1" +FW_VERSION="2.1p2" # Important directory locations FWPREFIX="/usr/local" diff --git a/lib/iptables.inc b/lib/iptables.inc index 2171a14..c27b387 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -459,7 +459,9 @@ function enable_nat { if [ -e "${FWCONFIGDIR}/ipv${IPVER}/nat.conf" ]; then ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} read ${FWCONFIGDIR}/ipv${IPVER}/nat.conf successful" + ORIG_NAT=${NAT} while read -r type srcinterface srcaddress dstinterface dstaddress custom; do + NAT=${ORIG_NAT} [[ ${type} = \#* ]] && continue [[ ${type} = "" ]] && continue ([[ ${type} != "SNAT" ]] && [[ ${type} != "MASQ" ]] && [[ ${type} != "NETMAP" ]] && [[ ${type} != "ACCEPT" ]]) \ diff --git a/release.json b/release.json index 339dfcc..bcb2f64 100644 --- a/release.json +++ b/release.json @@ -1,7 +1,7 @@ { - "version": "2.1a1", - "state": "alpha", - "scope": "major changes", - "changes": "Added new custom options for rules in nat, filters, and forwarding (mostly useful with ipsec policy), some code cleanups, changing default rules.", - "download": "https://source.sosdg.org/brielle/srfirewall/repository/archive.tar.bz2?ref=v2.1a1" + "version": "2.1p2", + "state": "stable", + "scope": "minor fixes", + "changes": "See CHANGELOG", + "download": "https://source.sosdg.org/brielle/srfirewall/repository/archive.tar.bz2?ref=v2.1p2" }