Menu

#2 netcat loop

open
nobody
None
5
2007-03-25
2007-03-25
Elektordi
No

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.

Discussion

  • Nobody/Anonymous

    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]

     
  • Nobody/Anonymous

    Logged In: NO

    If "routing" would work instead of "bridging" you could try ppp over ssh ;)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.