I have the following scenario
Local Network | Global Network
|
|
|
|
|
|
|
+------------+ +-----------+ | +----------+ +----------------+
| client A | -----------> | server A | <--------------------> | server B | ---------------> | Global Network |
+------------+ +-----------+ | +----------+ +----------------+
|
|
The challenge ahead:
Transfer all traffic from server A
to server B
. Since all tunnel protocols are closed in server A
, I thought reverse ssh is a good option.
I use the following command for making reverse ssh:
ssh -fNT -R 4000:localhost:22 ubuntu@62.45.xx.xx -i <private-key>
Now on server A
I can see that port 4000
is opened.
but I don't know how to transfer the traffic as a whole to server B