Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3154
ipv6enabler.sh to mirror udp4/tcp4 to udp6/tcp6 (suggested by PtitGNU)
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Jun 6 2015, 20:33
2015-06-06 20:33:51 (UTC+0)
Size
396 B
Referenced Files
None
Subscribers
None
ipv6enabler.sh to mirror udp4/tcp4 to udp6/tcp6 (suggested by PtitGNU)
View Options
#!/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
Details
Attached
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)
Attached To
Mode
P80 ipv6enabler.sh to mirror udp4/tcp4 to udp6/tcp6 (suggested by PtitGNU)
Attached
Detach File
Event Timeline
Log In to Comment