fwknop: Add start-up dependency on network interface for fwknopd.

Added new "network" section with option "network", which takes network
interface name.

The start-up is migrated to use procd and depend either on the "network"
interface (after resolving it to a physical device), or on the PCAP_INTF
option from "config" section (usual place for raw interface name for
fwknopd). When the uci_enabled option is disabled, the value of PCAP_INTF
is taken from the user-provided fwknopd.conf.

Also fixed UCI_ENABLED variable evaluation.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
This commit is contained in:
Oldřich Jedlička
2017-10-10 19:23:44 +02:00
parent bc5e788164
commit 22a9f58909
2 changed files with 100 additions and 34 deletions
+3
View File
@@ -1,6 +1,9 @@
config global
# option uci_enabled '1'
config network
# option network 'wan' # takes precedence over config.PCAP_INTF
config access
option SOURCE 'ANY'
option HMAC_KEY 'CHANGEME'