Browse Source

2.1p1 to fix NETMAP issue

tags/2.1p1
Brielle Bruns 3 months ago
parent
commit
ca06b76fc2
3 changed files with 5 additions and 2 deletions
  1. +3
    -0
      CHANGELOG
  2. +1
    -1
      bin/srfirewall
  3. +1
    -1
      lib/iptables.inc

+ 3
- 0
CHANGELOG View File

@@ -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'


+ 1
- 1
bin/srfirewall View File

@@ -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"


+ 1
- 1
lib/iptables.inc View File

@@ -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…
Cancel
Save