There are 3 computers (A,B and C). A and B are in the same subnet and
they are separated from computer C through the internet. I have only
access to computer B and C. I have built a ssh tunnel from B to C.
With it I forwarded the port 5555 from computer B to port 5555 of
computer C. I have allowed connections from other hosts to forwarded
ports of B (ssh -g -L 5555:IpAdr_CompC:5555 IpAdr_CompC).
A client program on computer A sends TCP packets to port 5555 on
computer B. This will be forwarded to computer C. The problem is, that
the source address field of the received TCP packets on computer C
contains the IP address of computer B and not the address of A. This
causes the server program on computer C to refuse the packets.
Is it possible to forward the TCP packets from A through the ssh
tunnel to C and keep the source address (IP address of A) ?
Thank you,
Markus
Will C's server program accept packets from its own host? If so,
you could set up a second ssh tunnel on C. Set up B's tunnel to
send packets to a available port on C, say 5556, and then a
tunnel on C to route packets from 5556 to 5555 on C. Now the
packets show up at the server program with a source address of C.
--
Christopher Mattern
NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities