From 6817791c1b7fe9eaa84c454057a8a8f7b29912d2 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 20 Mar 2020 17:35:12 +0100 Subject: [PATCH] add 0ad-sockets --- local/bin/0ad-sockets | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 local/bin/0ad-sockets diff --git a/local/bin/0ad-sockets b/local/bin/0ad-sockets new file mode 100755 index 0000000..3425d69 --- /dev/null +++ b/local/bin/0ad-sockets @@ -0,0 +1,6 @@ +#!/bin/sh + +st -e socat tcp-listen:6667,reuseaddr,fork udp:localhost:20595 & +st -e ssh -R 6667:localhost:6667 Hetzner "grep -q '^AllowTcpForwarding yes$' /etc/ssh/sshd_config && grep -q '^GatewayPorts yes$' /etc/ssh/sshd_config && socat udp-listen:20595,reuseaddr,fork tcp:localhost:6667" & + +wait