• 请不要在回答技术问题时复制粘贴 AI 生成的内容
KIDJourney
V2EX  ›  程序员

有没有什么任意流量转发的开源软件?

  •  
  •   KIDJourney ·
    KIDJourney · Dec 19, 2016 · 3765 views
    This topic created in 3430 days ago, the information mentioned may be changed or developed.

    比如我启动了这个软件:

     anyproxy -l 2333 -d www.example.com:80
    

    就会把 2333 端口收到的所有的流量(多种协议)转发到指定 ip 的端口上?

    想参考下代码。

    7 replies    2016-12-19 16:41:41 +08:00
    hadoop
        1
    hadoop  
       Dec 19, 2016
    ssh -D 满足你需求
    ddsun
        2
    ddsun  
       Dec 19, 2016
    直接 iptables 转发端口请求
    aru
        3
    aru  
       Dec 19, 2016
    通常只支持 tcp 和 udp 协议的转发, socat 是最常见和通用的转发工具之一
    4679kun
        4
    4679kun  
       Dec 19, 2016 via Android
    socat
    htfy96
        6
    htfy96  
       Dec 19, 2016
    socat, iptables
    KIDJourney
        7
    KIDJourney  
    OP
       Dec 19, 2016
    @ddsun
    @aru
    @4679kun
    @chocotan
    @htfy96

    多谢各位,我去看下代码。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1167 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 18:09 · PVG 02:09 · LAX 11:09 · JFK 14:09
    ♥ Do have faith in what you're doing.