commit 6209cbfa1d68862d98a1a6d95be23a6200ae4ca6
parent 5901bc0df248635384282c0b994bec8b3cb9d026
Author: MTRNord <info@nordgedanken.de>
Date: Tue, 1 Dec 2015 00:03:51 +0100
add Net Conn VPN package
Diffstat:
5 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/fastd_network_connect/Makefile b/fastd_network_connect/Makefile
@@ -0,0 +1,32 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fastd-network-connect
+PKG_VERSION:=0.1
+
+PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/fastd-network-connect
+ SECTION:=net
+ CATEGORY:=Fastd
+ TITLE:=Fastd Network Connector
+ DEPENDS:=+gluon-core +fastd
+endef
+
+define Build/Prepare
+ mkdir -p $(PKG_BUILD_DIR)
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+endef
+
+define Package/fastd-network-connect/install
+ $(CP) ./files/* $(1)/
+endef
+
+$(eval $(call BuildPackage,fastd-network-connect))
+
diff --git a/fastd_network_connect/src/cron/net_conn_vpn b/fastd_network_connect/src/cron/net_conn_vpn
@@ -0,0 +1 @@
+@reboot fastd -c /etc/fastd/net_conn_vpn.conf -d
diff --git a/fastd_network_connect/src/etc/fastd/net_conn_vpn.conf b/fastd_network_connect/src/etc/fastd/net_conn_vpn.conf
@@ -0,0 +1,14 @@
+log to syslog as "fastd-NetConnVPN" level error;
+interface "NetConnVPN";
+method "salsa2012+gmac";
+bind any:13337;
+hide ip addresses yes;
+hide mac addresses yes;
+include "secret.conf";
+mtu 1280;
+status socket "/var/run/fastd-status.NetConnVPN.sock";
+include peers from "peers";
+on up "
+ ip link set up dev $INTERFACE
+ batctl -m br-wan if add $INTERFACE
+";
diff --git a/fastd_network_connect/src/etc/fastd/peer/.gitkeep b/fastd_network_connect/src/etc/fastd/peer/.gitkeep
diff --git a/fastd_network_connect/src/etc/fastd/secret.conf b/fastd_network_connect/src/etc/fastd/secret.conf
@@ -0,0 +1 @@
+secret "";