ds-lite: disable NAT according to RFC 7084
authorSteven Barth <cyrus@openwrt.org>
Mon, 14 Apr 2014 10:11:54 +0000 (10:11 +0000)
committerSteven Barth <cyrus@openwrt.org>
Mon, 14 Apr 2014 10:11:54 +0000 (10:11 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 40511

package/network/ipv6/ds-lite/Makefile
package/network/ipv6/ds-lite/files/dslite.sh

index 61c57c092c49e0b2585b5cba7a0be82a166e8bbf..fb6599dc636529115d66aeb71914f9cf90c054ae 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ds-lite
-PKG_VERSION:=3
+PKG_VERSION:=4
 PKG_RELEASE:=1
 
 include $(INCLUDE_DIR)/package.mk
index 670f93cd6ec12e2197d86aae218ce8c9aa415d20..a526c91d31b14e2ee7dc321dc7f36c16c4fc4870 100755 (executable)
@@ -56,6 +56,13 @@ proto_dslite_setup() {
 
        proto_add_data
        [ -n "$zone" ] && json_add_string zone "$zone"
+
+       json_add_array firewall
+         json_add_object ""
+           json_add_string type nat
+           json_add_string target ACCEPT
+         json_close_object
+       json_close_array
        proto_close_data
 
        proto_send_update "$cfg"