Mail archive
alpine-devel

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

From: Paul Kilar <pkilar_at_gmail.com>
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
_at_@ -0,0 +1,11 @@
+--- a/awall/modules/filter.lua
++++ b/awall/modules/filter.lua
+_at_@ -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:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Tue Jul 08 2014 - 16:04:01 UTC