Commit Graph

35 Commits

Author SHA1 Message Date
Oldřich Jedlička acc4d9058e fwknop: update to 2.6.11
Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2024-02-24 12:12:34 -08:00
Oldřich Jedlička b10c73f11c fwknop: Remove unnecessary get_bool() function.
The get_bool() functionality was already merged to lib/functions.sh, so
it is redundant in the init script. Remove it.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2021-04-24 01:15:58 -07:00
Matt Merhar 5f5248be7d fwknop: fix build with gpg support enabled
Along with the accompanying change to gpgme to install gpgme-config,
since libfko is what is actually linked to gpgme, and not
fwknop/fwknopd, an explicit dependency must be added to that package.

menuconfig now allows enabling gpg support if only fwknop is selected
without also selecting fwknopd.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
2020-12-13 23:38:45 -05:00
Oldřich Jedlička 53e9a3296a fwknop: Use sensible defaults.
* 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>
2020-10-15 20:11:30 +02:00
Rosen Penev c05e92a58d
Merge pull request #11353 from kvuorine/fwknop-fixes
fwknop: init script improvements
2020-10-01 14:50:25 -07:00
Rosen Penev 9b4a8f12a3
fwknop: fix compilation with GCC10
Added PKG_LICENSE_FILES.

Added PKG_BUILD_PARALLEL for faster compilation.

Simplified configure arguments.

Small cleanups for consistency between packages.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-04 17:48:11 -07:00
Kimmo Vuorinen 39f2e30b41 fwknop: init script improvements
* Log with pid instead of placeholder.
* Make sure directory for config files generated from uci config exists.
* Remove forced defaults.
* Simplify compares.

Signed-off-by: Kimmo Vuorinen <kimmo.vuorinen@gmail.com>
2020-02-17 14:38:39 +02:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Sven Eckelmann bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Terry Stockert 4adaa5b8b0 fwknop: ensure default ifname matches default network
Signed-off-by: Terry Stockert <stockert@inkblotadmirer.me>
2019-01-06 10:58:27 +08:00
Jonathan Bennett ffd08a7330 Fwknop: Update to 2.6.10
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2018-09-09 16:52:38 -05:00
Oldřich Jedlička 133274c607 fwknopd: More reliable network dependency
Two issues:

  1. The fwknopd init script did not handle unprepared logical networks.
     This is fixed by A) not defining instance for procd when the physical
     interface is unknown, and B) by watching the logical network for
     changes.

  2. When using PPPoE, there are two physical interfaces -- one for raw
     PPPoE communication and one for wrapped communication. The function
     network_get_physdev returns the physical device, while the function
     network_get_device returns the wrapped one -- we shall use the
     wrapped interface. Usually (for non-wrapped interfaces) the physdev
     and device are the same, also other network scripts use the latter
     function.

Both issues found by and thanks are going to @lucize.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
2018-04-11 07:53:52 +02:00
Jonathan Bennett 5a69b9c08f Fwknopd: Bump PKG_RELEASE and minor fix
An unneccesary include in the init file was causing problems when using the package builder.
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2017-10-16 11:20:18 -05:00
Oldřich Jedlička 22a9f58909 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>
2017-10-10 19:23:44 +02:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Jonathan Bennett e5251d1815 Fwknopd: Various updates
Adds configuration option for NFQ capture, moves often written
configuration files to /var/etc.

Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2017-01-15 15:52:54 -06:00
Hannu Nyman 2dc0eebc0b fwknop: bump PKG_RELEASE
Increase PKG_RELEASE due to the patch committed earlier today.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-08-17 18:52:10 +03:00
Jonathan Bennett f2e1de58e6 Fwknop: Set correct file permissions when generating config files
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2016-08-17 10:18:23 -05:00
Jonathan Bennett 0f4dfae883 Fwknop: Updates to 2.6.9
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2016-06-10 22:34:25 -05:00
Hannu Nyman 000b55d063 fwknop: combine two conffiles sections, remove whitespace
fwknop Makefile had two conffiles sections. Combine them.
Remove also the whitespace from conffiles section (see #2652)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-05-03 10:56:41 +03:00
Jonathan Bennett 8cc558b8a3 Update fwknop to 2.6.8
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2015-12-25 09:40:41 -06:00
Jonathan Bennett d836259386 Fwknop: Fix setting getting overwritten
A typo in the init file was causing a certain setting to be overwritten on every daemon start.

Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2015-10-12 22:28:28 -05:00
Timothy Redaelli eb23237cc1 fwknop: fix building without gpg 2015-10-09 17:10:13 +02:00
Jonathan Bennett a624a63150 Fwknopd: Set capture interface to wan by default
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2015-06-10 21:57:13 -05:00
Jonathan Bennett b0a605c1c3 Fwknopd: Backport patch to enable keygen in fwknopd
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-22 13:21:55 -05:00
Jonathan McCrohan 3e9ffaa4f8 Merge pull request #1247 from oneru/master
Fwknopd: Fix a typo in the init file
2015-05-11 00:10:37 +01:00
Jonathan Bennett c8122975d3 Fwknopd: Fix a typo in the init file
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-10 16:05:24 -05:00
Jonathan Bennett 1947795df8 Fwknop: add flexibility to uci support
Styling cleanups
signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-10 01:04:46 -05:00
Jonathan Bennett f2d8fc3bc2 Fwknop: Update to newest release
add basic uci support
add optional gpg support

signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-09 01:30:32 -05:00
Steven Barth d838872cc5 fwknop: refresh patches
Signed-off-by: Steven Barth <steven@midlink.org>
2014-12-23 14:57:34 +01:00
Jonathan Bennett af5d7927cb Add package license information
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2014-12-22 07:58:24 -06:00
Jonathan Bennett 560ba25e9c Update fwknopd to 2.6.5
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2014-12-22 06:53:28 -06:00
Jonathan Bennett 8e0a71d47c Fwknop: Update to 2.6.4
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2014-11-17 19:50:48 -06:00
Christoph König 28d8fe7018 fwknop: Update to 2.6.3
Signed-off-by: Christoph Koenig <christoph.koenig@gmail.com>
2014-08-22 23:44:35 +02:00
Jonathan Bennett fd6a30d07b Add fwknop to packages feed and update to latest version 2014-06-11 21:58:02 -05:00