aboutsummaryrefslogtreecommitdiff
path: root/net/wg-installer
Commit message (Collapse)AuthorAge
* treewide: remove AUTORELEASEPaul Fertser2023-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
* wg-installer: use babeld add_interface functionNick Hainke2022-02-01
| | | | | | | | | | | With commit 385200443554 ("babeld: add add_interface function") babeld has a new ubus function allowing to dynamically add an interface. Before the add_interface function, we were required to reload babeld. The reload influenced the babeld routing. However, the remove part is still missing and will be added at a later stage. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix multiple namespacesNick Hainke2022-01-23
| | | | | | | Add flag "--lookup-default-namespace" to signal that wg-installer should look already established wireguard sessions in the default namespace. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: remove unused dependencyNick Hainke2022-01-20
| | | | | | | Remove the dependency "coreutils-realpath" from wg-installer-server-hotplug-olsrd. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: create wireguard key if it does not existNick Hainke2022-01-20
| | | | | | | Check if the key exists which is given by option wg_key '/etc/wgserver/wg.key' Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: install cronjobNick Hainke2022-01-20
| | | | | | | Install a cronjob that removes unused wireguard interfaces every 10 minutes. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: check if a key is already insertedNick Hainke2022-01-20
| | | | | | | Check if a peer is already existing with a given public key. Introduce a response code for signaling why the server rejected the request. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: rework codeNick Hainke2022-01-20
| | | | | | | Use shellcheck to rework the code. Use "export" to return variables from a function call. Further, fix typos. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: cosmetic changesNick Hainke2022-01-18
| | | | | | Use "ip addr" instead of "ip addres" or "ip a". Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: switch to ubus call for olsrd hotplugNick Hainke2022-01-16
| | | | | | Use ubus ipc calls to add and remove interfaces. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: rework iproute2 commandsNick Hainke2022-01-16
| | | | | | | - Use ip address add instead of ip a a - Directly add broadcast address Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix shell typoNick Hainke2022-01-12
| | | | Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: allow defining link costs for hotplugsNick Hainke2022-01-12
| | | | | | Add options to set link costs in mesh routing daemons. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: private key as parameterNick Hainke2022-01-12
| | | | Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: generate new keys for every connectionNick Hainke2022-01-12
| | | | | | Generate new keys on every new connection. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix using symlinks for conf filesNick Hainke2022-01-11
| | | | | | | It is useful to symlink babeld and olsrd to /tmp/ if we frequently write to those config files. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix cleanup scriptNick Hainke2022-01-10
| | | | | | The wrong function was called. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix typo in cleanup functionNick Hainke2022-01-09
| | | | | | | The delete variable was misspelled leading to devices always being removed although they had connected neighbors. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: add cleanup scriptNick Hainke2022-01-09
| | | | | | Add script to cleanup unused wireguard interfaces. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix ipv4 meshing via olsrNick Hainke2022-01-08
| | | | | | The ipv4 address space was not allowed. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: add ipv4 supportNick Hainke2022-01-07
| | | | | | Add base_v4prefix to allow ipv4 mesh connections. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: add hotplug script for olsrNick Hainke2022-01-06
| | | | | | | Add hotplug-olsrd to automatically mesh with olsrd via new wireguard links. Signed-off-by: Nick Hainke <vincent@systemli.org>
* treewide: add missing conffilesHuangbin Zhan2021-10-27
| | | | Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
* wg-installer: fix dependenciesNick Hainke2021-09-07
| | | | Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: delete old interfacesNick Hainke2021-03-14
| | | | | | | | | | Add "wg_check_interfaces" and specify a timeout in the config file. This allows to delete not used wireguard-interfaces automatically. For example a cronjob can be installed that calls: . /usr/share/wginstaller/wg_functions.sh && wg_check_interfaces Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: fix get_usage functionNick Hainke2021-03-13
| | | | | | The get_usage function always returns 0. The shell syntax was wrong. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: add link-local to client interfaceNick Hainke2021-03-06
| | | | | | | | Wireguard has no link-local address on an interface automatically. Add a link-local to the interface. The server has fe80::1/64 and the client fe80::2/64. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: add babeld hotplug.d scriptNick Hainke2021-02-08
| | | | | | | | | | | Add a hotplug.d-extension that automatically configures babeld for meshing via wireguard interfaces. It checks for "add" and "remove" of a wireguard interface with name "wg_*". Depending on the action, it removes it from the babeld config or adds the interface and reloads babeld. Signed-off-by: Nick Hainke <vincent@systemli.org>
* wg-installer: add wg-installerNick Hainke2021-02-06
This tool can be used to automatically create wireguard tunnels. Using rpcd a new wireguard interface is created on the server where the client can connect to. Wiregurad server automatically installs a user and associated ACL to use the wireguard-installer-server features. The user is called wginstaller and so is the password. Get Usage: wg-client-installer get_usage --ip 127.0.0.1 --user wginstaller --password wginstaller Register Interface: wg-client-installer register --ip 127.0.0.1 --user wginstaller --password wginstaller --bandwidth 10 --mtu 1400 Signed-off-by: Nick Hainke <vincent@systemli.org>