Hello,
I'm trying to make a "bridge" between two tcp connections. I explain: I want my server to connect two tcp tunnels and send data between each others.
I've tried with nc and two fifo pipes but it doesn't work.
Any ideas ?
Thanks in advance.
Logged In: NO
1. Open a command prompt; type: echo nc -v -v %Tunnel_1_IP_Address% %Tunnel_1_TCP_Port% > pipe1.bat[ENTER] echo nc -v -v %Tunnel_2_IP_Address% %Tunnel_2_TCP_Port% > pipe2.bat[ENTER]
2. Now edit pipe1.bat and pipe2.bat, replacing %Tunnel_X_IP_Address% and %Tunnel_X_TCP_Port% with the actual values for your two tcp tunnels.
3. At the command prompt type: nc -v -v -L -p %Tunnel_1_TCP_Port% -e pipe2.bat[ENTER]
4. Open another command prompt; type: nc -v -v -L -p %Tunnel_2_TCP_Port% -e pipe1.bat[ENTER]
If "routing" would work instead of "bridging" you could try ppp over ssh ;)
Log in to post a comment.
Logged In: NO
1. Open a command prompt; type:
echo nc -v -v %Tunnel_1_IP_Address% %Tunnel_1_TCP_Port% > pipe1.bat[ENTER]
echo nc -v -v %Tunnel_2_IP_Address% %Tunnel_2_TCP_Port% > pipe2.bat[ENTER]
2. Now edit pipe1.bat and pipe2.bat, replacing %Tunnel_X_IP_Address% and %Tunnel_X_TCP_Port% with the actual values for your two tcp tunnels.
3. At the command prompt type:
nc -v -v -L -p %Tunnel_1_TCP_Port% -e pipe2.bat[ENTER]
4. Open another command prompt; type:
nc -v -v -L -p %Tunnel_2_TCP_Port% -e pipe1.bat[ENTER]
Logged In: NO
If "routing" would work instead of "bridging" you could try ppp over ssh ;)