summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd
diff options
context:
space:
mode:
authorJonathan Bennett <jbennett@incomsystems.biz>2015-06-10 09:31:53 -0500
committerJonathan Bennett <jbennett@incomsystems.biz>2015-06-10 16:10:56 -0500
commit9d69f61f4c1b46074205970774694e0f2d5ce88d (patch)
tree6b9cf451f9896e7cd20a1e3d082d84eea15087af /applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd
parentedf0f4f549983f93ee13223cf614393e7809cf49 (diff)
Luci-app-fwknopd:add a couple config options to the interface
Minor tweaks to uci-defaults refresh translation files Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
Diffstat (limited to 'applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd')
-rw-r--r--applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd5
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd b/applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd
index 689bedcd11..01b85de25f 100644
--- a/applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd
+++ b/applications/luci-app-fwknopd/root/etc/uci-defaults/luci-fwknopd
@@ -1,6 +1,7 @@
#!/bin/sh
#-- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz>
#-- Licensed to the public under the GNU General Public License v2.
+. /lib/functions/network.sh
uci batch <<EOF
add ucitrack fwknopd
@@ -8,10 +9,14 @@ uci batch <<EOF
commit ucitrack
EOF
+uci delete fwknopd.@access[0].KEY
+uci delete fwknopd.@access[0].HMAC_KEY
uci set fwknopd.@access[0].keytype='Base 64 key'
uci set fwknopd.@access[0].hkeytype='Base 64 key'
uci set fwknopd.@access[0].KEY_BASE64=`fwknopd --key-gen | awk '/^KEY/ {print $2;}'`
uci set fwknopd.@access[0].HMAC_KEY_BASE64=`fwknopd --key-gen | awk '/^HMAC/ {print $2;}'`
+uci set fwknopd.@config[0].ENABLE_IPT_FORWARDING='y'
+
uci commit fwknopd
rm -f /tmp/luci-indexcache
exit 0