From 12f60419cd41f3d7b40e0033ee41da29aee566b9 Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Thu, 7 Jan 2021 20:56:49 +0100 Subject: [PATCH] fff-node: Add package fff-vxlan-node-vpn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This package adds vxlan support to the node variant and configures the vxlan-vpn tunnels to the gateways. Signed-off-by: Robert Langhammer Acked-by: Fabian Bläse --- A vpn section for vxlan in hoodfile: "vpn": [ { "name": "gatewayname", "protocol": "vxlan", "address": "gateway.url" (or IP) } "name" is optional. --- --- src/packages/fff/fff-node/Makefile | 3 +- src/packages/fff/fff-vxlan-node-vpn/Makefile | 29 +++++++++++++++++++ .../files/etc/uci-defaults/53-vxlan-node | 15 ++++++++++ .../files/usr/lib/vpn-select.d/vxlan | 27 +++++++++++++++++ 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 src/packages/fff/fff-vxlan-node-vpn/Makefile create mode 100644 src/packages/fff/fff-vxlan-node-vpn/files/etc/uci-defaults/53-vxlan-node create mode 100644 src/packages/fff/fff-vxlan-node-vpn/files/usr/lib/vpn-select.d/vxlan diff --git a/src/packages/fff/fff-node/Makefile b/src/packages/fff/fff-node/Makefile index 6a6a6392..bdcc92a6 100644 --- a/src/packages/fff/fff-node/Makefile +++ b/src/packages/fff/fff-node/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fff-node -PKG_RELEASE:=3 +PKG_RELEASE:=4 include $(INCLUDE_DIR)/package.mk @@ -12,6 +12,7 @@ define Package/fff-node URL:=https://www.freifunk-franken.de DEPENDS:=+fff-batman-adv \ +fff-fastd \ + +fff-vxlan-node-vpn \ +fff-firewall \ +fff-hoods \ +fff-uradvd diff --git a/src/packages/fff/fff-vxlan-node-vpn/Makefile b/src/packages/fff/fff-vxlan-node-vpn/Makefile new file mode 100644 index 00000000..bfb6beb8 --- /dev/null +++ b/src/packages/fff/fff-vxlan-node-vpn/Makefile @@ -0,0 +1,29 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-vxlan-node-vpn +PKG_RELEASE:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/$(PKG_NAME) + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken vxlan-node + URL:=http://www.freifunk-franken.de + DEPENDS:=+vxlan +endef + +define Package/$(PKG_NAME)/description + This is the vxlan-node-vpn package for the Freifunk Franken Firmware + This will configure and set up the VPN via vxlan +endef + +define Build/Compile + # nothing +endef + +define Package/$(PKG_NAME)/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,$(PKG_NAME))) diff --git a/src/packages/fff/fff-vxlan-node-vpn/files/etc/uci-defaults/53-vxlan-node b/src/packages/fff/fff-vxlan-node-vpn/files/etc/uci-defaults/53-vxlan-node new file mode 100644 index 00000000..ea3a145d --- /dev/null +++ b/src/packages/fff/fff-vxlan-node-vpn/files/etc/uci-defaults/53-vxlan-node @@ -0,0 +1,15 @@ +uci batch <