Subject: [alpine-devel] [PATCH] main/iptables: /etc/init.d/ip6tables unable to save rules

From: Matt Smith <[email-masked]>
Date: Wed, 1 Sep 2010 17:55:59 +0000

This fixes bug #420:
http://redmine.alpinelinux.org/issues/420
---
 main/iptables/APKBUILD        |    5 ++++-
 main/iptables/ip6tables.confd |   11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)
 create mode 100644 main/iptables/ip6tables.confd

diff --git a/main/iptables/APKBUILD b/main/iptables/APKBUILD
index c37c87d..a25fd88 100644
--- a/main/iptables/APKBUILD
+++ b/main/iptables/APKBUILD
@@ -11,6 +11,7 @@ source="http://iptables.org/projects/iptables/files/$pkgname-$pkgver.tar.bz2
 	iptables-1.4.2-include-in.patch
 	iptables.initd
 	iptables.confd
+	ip6tables.confd
 	"
 
 makedepends="linux-headers"
@@ -49,6 +50,7 @@ package() {
 	install -m644 libiptc/libiptc.a "$pkgdir"/usr/lib
 	install -m755 "$startdir"/iptables.initd "$pkgdir"/etc/init.d/iptables
 	install -m644 "$startdir"/iptables.confd "$pkgdir"/etc/conf.d/iptables
+	install -m644 "$startdir"/ip6tables.confd "$pkgdir"/etc/conf.d/ip6tables
 }
 
 ip6tables() {
@@ -67,4 +69,5 @@ ip6tables() {
 md5sums="fbadfb0b5f2dbda49e0ad06a798898e3  iptables-1.4.9.1.tar.bz2
 ec3e80a1b0ea3e13e4e60824b7ebd1b9  iptables-1.4.2-include-in.patch
 2202ac150a5dfe32a8363b0ad565ee1d  iptables.initd
-956ebf5ab69e5a1e1d3983541eab643b  iptables.confd"
+956ebf5ab69e5a1e1d3983541eab643b  iptables.confd
+91933090bd9d493c91dcffc0221def61  ip6tables.confd"
diff --git a/main/iptables/ip6tables.confd b/main/iptables/ip6tables.confd
new file mode 100644
index 0000000..6a8d94c
--- /dev/null
+++ b/main/iptables/ip6tables.confd
@@ -0,0 +1,11 @@
+# /etc/conf.d/ip6tables
+
+# Location in which ip6tables initscript will save set rules on 
+# service shutdown
+IP6TABLES_SAVE="/var/lib/ip6tables/rules-save"
+
+# Options to pass to ip6tables-save and ip6tables-restore 
+SAVE_RESTORE_OPTIONS="-c"
+
+# Save state on stopping iptables
+SAVE_ON_STOP="yes"
-- 
1.7.2.2

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