My linux machine contains two interface cards. One provides the
internet connection and the other connects to the internal network.
The machine is running the SOCKS 4.2 server. The internal network is
configured with the class C address 192.168.2.x. The external network
interface is totally different (all four fields).
I need to run a service on an internal machine (say 192.168.2.4) on a
little used port (6780). I would like to open this port on the linux
server and direct all incoming requests on port 6780 to be directed to
the machine 192.168.2.4.
I know how to configure sockd.conf to open up this port to all the
source addresses and use sockd.route to redirect the traffic to the
internal net. However, since all the incoming requests will contain
the internet address of the external interface card as the destination
address, how do I tell the port 6780 traffic to go to 192.168.2.4? Is
there any way to accomplish this? Thanks very much for your help