fwknop: Use sensible defaults. 13678/head
authorOldřich Jedlička <oldium.pro@gmail.com>
Thu, 15 Oct 2020 15:48:12 +0000 (17:48 +0200)
committerOldřich Jedlička <oldium.pro@gmail.com>
Thu, 15 Oct 2020 18:11:30 +0000 (20:11 +0200)
 * Change KEY/HMAC_KEY to __CHANGEME__, which is rejected by fwknopd
   during start-up. The value CHANGEME is used only by LuCI package
   luci-app-fwknopd - pull request for generating keys directly from
   LuCI has been created already.
 * Add sensible defaults for ENABLE_IPT_FORWARDING and ENABLE_NAT_DNS,
   which both are/were set by luci-app-fwknopd. Move the defaults here.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
net/fwknop/Makefile
net/fwknop/files/fwknopd

index 54b886177eab2a746363cbd2a13f4510de56bdcb..5a79dd4c67723324ab190af0dd83620782546be3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fwknop
 PKG_VERSION:=2.6.10
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://www.cipherdyne.org/fwknop/download
index e6db76b334f314db0bcc744c4287e289252e3c69..d830b10d9701017bfd7575dc35a8860e6a985e02 100644 (file)
@@ -8,10 +8,18 @@ config network
 
 config access
        option SOURCE 'ANY'
-       option HMAC_KEY 'CHANGEME'
-       option KEY 'CHANGEME'
+       option HMAC_KEY '__CHANGEME__'
+       option KEY '__CHANGEME__'
 
 config config
        # Alternative direct physical interface definition, but untracked - you
        # are on your own to correctly start/stop the service when needed
 #      option PCAP_INTF 'eth0'
+
+       # Allow SPA clients to request access to services through an iptables
+       # firewall instead of just to it (i.e. access through the FWKNOP_FORWARD
+       # chain instead of the INPUT chain
+       option ENABLE_IPT_FORWARDING 'Y'
+
+       # Allow fwknopd to resolve hostnames in NAT access messages
+       option ENABLE_NAT_DNS 'Y'