add 0ad-sockets

This commit is contained in:
Felix Van der Jeugt 2020-03-20 17:35:12 +01:00
parent d3c57bebd5
commit 6817791c1b
No known key found for this signature in database
GPG Key ID: 58B209295023754D
1 changed files with 6 additions and 0 deletions

6
local/bin/0ad-sockets Executable file
View File

@ -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