My situation is as follows:
I have currently trying to have a program between two Hosts send UDP packets over a SSH Tunnel. There is also a host intermediate between the two hosts. Note Server01 separates two subnets
Subnet: //// 10.11.X.X ///////// 192.168.X.X
Host: Client <------> Server01 <-----> Server02
I have successfully established a SSH connection and have used RSA key's so passwords are not needed.
I than followed this tutorial:
In summary it tells me to use socat to configure a TCP-UDP relay on server01 by typing in:
server01$ socat tcp4-listen:8000,reuseaddr,fork udp:server02:53
and a UDP-TCP relay on the client using socat also:
client$ socat -T15 udp4-recvfrom:53000,reuseaddr,fork tcp:localhost:8000
Now comes the problem. When I attempt to have my program create a socket on the localhost UDP Port 53000 and send data,
channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
I believe my program is fine because when I put server02 on the same subnet as client my programs will exchange UDP packets perfectly.
Is there a setting I need to enable for my program to access the UDP port 53000 Socket? Or is it just impossible to create a socket on the UDP port because socat using it? I've been stuck on this for a while... Any help would be great.
Thanks in advance.