7 lines
296 B
Bash
Executable File
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
|