Commit graph

16 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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 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