weixin_39530839
weixin_39530839
2021-01-10 23:10

Reverse tunnel

How can udp2raw be configured to run a reverse tunnel? For example, when the client can accept inbound TCP connections, but the server cannot.

The example shows how to forward UDP packets sent to client port 3333 over tcp port 4096 tunnel to server port 7777:


# Run at server side:
./udp2raw_amd64 -s -l0.0.0.0:4096 -r 127.0.0.1:7777    -k "passwd" --raw-mode faketcp -a

# Run at client side
./udp2raw_amd64 -c -l0.0.0.0:3333  -r44.55.66.77:4096  -k "passwd" --raw-mode faketcp -a

However, I would like the server to initiate the connection. Simply reversing the commands fails, since the server-side UDP port is already listening (so I get a bind error).

该提问来源于开源项目:wangyu-/udp2raw-tunnel

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐