Page MenuHomeDevCentral

ipv6enabler.sh to mirror udp4/tcp4 to udp6/tcp6 (suggested by PtitGNU)

Authored By
dereckson
Jun 6 2015, 20:33
Size
396 B
Referenced Files
None
Subscribers
None

ipv6enabler.sh to mirror udp4/tcp4 to udp6/tcp6 (suggested by PtitGNU)

#!/bin/sh
#SOCATBIN="/usr/bin/socat"
SOCATBIN="/storage/.kodi/addons/tools.socat/bin/socat"
TCPPORTS="9981 9982"
UDPPORTS="9777"
# TCP Ports
for PORT in $TCPPORTS; do
nohup "${SOCATBIN}" TCP6-L:${PORT},fork,ipv6only=1,su=nobody TCP4:127.0.0.1:${PORT} &
done
# UDP Ports
for PORT in $UDPPORTS; do
nohup "${SOCATBIN}" UDP6-L:${PORT},fork,ipv6only=1,su=nobody UDP4:127.0.0.1:${PORT} &
done

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3076
Default Alt Text
ipv6enabler.sh to mirror udp4/tcp4 to udp6/tcp6 (suggested by PtitGNU) (396 B)

Event Timeline