I have a simple requirement for port-based port forwarding / tunneling of socket-based software.
- I have a source server and port using Sockets. This is a java program that works on both windows and linux, and it doesn't matter.
- I have devices that continue to send data to this port. Bidirectional communication is possible.
- I want to redirect this data to another remote server and port. Therefore, for clients, they donβt have to worry about changing the IP address whenever I move my application server.
Are there any deamon / service tools / programs that I can use to configure and execute this?
I tried SSH, but as far as I know, this requires a server with support for the SSH protocol. In my case this is not applicable. I also tried using JSch, but again this is an implementation of SSH in java format.
Can someone throw some pointers? Can iptables NAT be used on Linux?
java sockets nat tunneling
Muthu
source share