socat to route incoming tcp6 to tcp4. The destination (tcp4) is a pod/container with the pod service external-ip. Within the container I use
ncat to listen for the port 5555.
# socat TCP6-LISTEN:5555,reuseaddr,fork,bind=[fe80::250:56ff:fe91:bd5c%ens192] TCP4:10.40.5.125:5555 (Update)
socat return Connection refused (Update)
2018/07/27 01:15:41 socat E connect(5, AF=2 10.40.5.125:5555, 16): Connection refused
I'm getting no acknowledgment from within the container (
# ncat -4 -vv --exec cat -l -p 5555)
I try to use
-lf in the
socat command to get more information about the tcp6 traffic but no significant log was written to the log file.
Before attempting tcp6 format I was able to route tcp4 traffic to tcp4 same destination listed above using
socat. The command is below,
# socat TCP-LISTEN:5555,fork TCP:10.101.74.206:5555
Can someone please point what I am missing for tcp6?
OS: CentOS 7.5