Subject: [alpine-devel] [PATCH] Patch to support custom port ("to-port") in filter --> dnat

From: Paul Kilar <[email-masked]>
Date: Tue, 8 Jul 2014 16:04:01 -0400

---
 main/awall/filter.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 main/awall/filter.patch

diff --git a/main/awall/filter.patch b/main/awall/filter.patch
new file mode 100644
index 0000000..924bf8e
--- /dev/null
+++ b/main/awall/filter.patch
@@ -0,0 +1,11 @@
+--- a/awall/modules/filter.lua
++++ b/awall/modules/filter.lua
+@@ -166,7 +166,7 @@
+ 	 self:error(self.dnat..' does not resolve to any IPv4 address')
+       end
+ 
+-      extrarules('dnat', 'dnat', {update={['to-addr']=dnataddr}, discard='out'})
++      extrarules('dnat', 'dnat', {update={['to-addr']=dnataddr, ['to-port']=self['to-port']}, discard='out'})
+    end
+ 
+    if self.action == 'tarpit' or self['no-track'] then
-- 
1.8.2.3

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---