From 2a4edb8a85441f38bf5fbce003b51bbf9e955cfe Mon Sep 17 00:00:00 2001 From: Ralf Kaiser <skyper@thc.org> Date: Sun, 3 Jul 2022 22:46:28 +0200 Subject: gsocket: add a new package with version 1.4.37 Global Socket allows two workstations on different private networks to communicate with each other. Through firewalls and through NAT - like there is no firewall. The TCP connection is secured with AES-256 and using OpenSSL's SRP protocol (RFC 5054). It does not require a PKI and has forward secrecy and (optional) TOR support. The gsocket tools derive temporary session keys and IDs and connect two TCP pipes through the Global Socket Relay Network (GSRN). This is done regardless and independent of the local IP Address or geographical location. The session keys (secrets) never leave the workstation. The GSRN sees only the encrypted traffic. The workhorse is 'gs-netcat' which opens a ssh-like interactive PTY command shell to a remote workstation (which resides on a private and remote network and/or behind a firewall). Also added test.sh file to run test it inside containeer Signed-off-by: Ralf Kaiser <skyper@thc.org> --- net/gsocket/Makefile | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ net/gsocket/test.sh | 3 +++ 2 files changed, 76 insertions(+) create mode 100644 net/gsocket/Makefile create mode 100755 net/gsocket/test.sh (limited to 'net/gsocket') diff --git a/net/gsocket/Makefile b/net/gsocket/Makefile new file mode 100644 index 000000000..2c84f4ed5 --- /dev/null +++ b/net/gsocket/Makefile @@ -0,0 +1,73 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=gsocket +PKG_VERSION:=1.4.37 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/hackerschoice/gsocket/releases/download/v$(PKG_VERSION)/ +PKG_HASH:=4f64f71a7d6b8be79754e7bf2109675ffc8a3e37a4a55b08c95a1b1d25e458e5 + +PKG_MAINTAINER:=Ralf Kaiser <skyper@thc.org> +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=LICENSE + +include $(INCLUDE_DIR)/package.mk + +define Package/gsocket + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libopenssl + TITLE:=Connect like there is no firewall + URL:=https://gsocket.io +endef + +define Package/gsocket/description + Global Socket allows two workstations on different private networks to + communicate with each other. Through firewalls and through NAT - like + there is no firewall. + + The TCP connection is secured with AES-256 and using OpenSSL's SRP + protocol (RFC 5054). It does not require a PKI and has forward + secrecy and (optional) TOR support. + + The gsocket tools derive temporary session keys and IDs and connect + two TCP pipes through the Global Socket Relay Network (GSRN). This is + done regardless and independent of the local IP Address or geographical + location. + + The session keys (secrets) never leave the workstation. The GSRN sees only + the encrypted traffic. + + The workhorse is 'gs-netcat' which opens a ssh-like interactive PTY + command shell to a remote workstation (which resides on a private and + remote network and/or behind a firewall). +endef + +define Build/Configure + $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR) --libdir=$(STAGING_DIR)/usr/lib --includedir=$(STAGING_DIR)/usr/include) +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + LD="$(TARGET_CXX)" \ + all +endef + +define Package/gsocket/install + $(INSTALL_DIR) $(1)/bin + $(INSTALL_DIR) $(1)/share/gsocket + $(INSTALL_DIR) $(1)/lib + $(INSTALL_DIR) $(1)/etc + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs-sftp $(1)/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs-mount $(1)/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/blitz $(1)/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gsocket $(1)/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs-netcat $(1)/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gs_funcs $(1)/share/gsocket/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gsocket_uchroot_dso.so.0 $(1)/lib/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/gsocket_dso.so.0 $(1)/lib/ + $(INSTALL_CONF) $(PKG_BUILD_DIR)/tools/gsocket.conf $(1)/etc/ +endef + +$(eval $(call BuildPackage,gsocket)) diff --git a/net/gsocket/test.sh b/net/gsocket/test.sh new file mode 100755 index 000000000..76843f256 --- /dev/null +++ b/net/gsocket/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +gs-netcat -h 2>&1 | grep "$2" -- cgit v1.2.3