Hi there,
I have a Ubuntu Client that needs to send UDP packets to this external host's UDP port 4569, and the problem is that the client is behind a firewall and the UDP packets are most likely filtered out. The client also need to receive packets from the external host on its own UDP port 4569.
Problem :
Client (UDP Port 4569 ) <----Firewall----> External Host (UDP Port 4569)
Therefore, I am trying to do a UDP packet flow over a TCP connection established via SSH and am following the directions from :
http://zarb.org/~gc/html/udp-in-ssh-tunneling.html
My configuration now is :
Client (UDP Port 4569) <--(TCP Port 65000)--SSH Tunnel--(TCP Port 65000)--> Server <----> (UDP Port 4569) External Host
The Server is also an Ubuntu machine. Moreover, the Client can SSH to the Server, but NOT vice versa
I have written simple UDP servers and clients and it proves that the UDP flow is going successfully from the client to the server(using the client / server terminology used in that link ). Once the client sent a text string to the server, I immediately made it send something back, and I do see it received on the other side
However, I have a question:
(1) How do I track for sure on the server that it has correctly forwarded packets from the client to the UDP port on the External Host, and ALSO packets FROM the External Host are forwarded correctly to the client?
(2) If this configuration is not correct and only uni-directional, what should I do?
Please advise, thanks!