configuration/local/bin/0ad-sockets
Felix Van der Jeugt 6817791c1b
add 0ad-sockets
2020-03-20 17:35:12 +01:00

7 lines
296 B
Bash
Executable File

#!/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