連接埠轉寄(Linux/Windows)

來源:互聯網
上載者:User

標籤:proxy

【目的】

  監聽本機 7777 連接埠,將資料轉寄到 192.168.7.8 的 8888 連接埠,實現 TCP 資料轉寄。


【方法】

1、ncat(Linux/Windows 通用)(ncat連接埠轉寄)

ncat --sh-exec "ncat 192.168.7.8 8888" -l 7777 --keep-open

2、netsh(Windows)(port forwarding in windows)

2.1、設定

netsh interface portproxy add v4tov4 listenport=7777 listenaddress=0.0.0.0 connectport=8888 connectaddress=192.168.7.8

2.2、顯示

netsh interface portproxy show all

2.3、移除

netsh interface portproxy delete v4tov4 listenport=7777 listenaddress=0.0.0.0


相關閱讀:

1、Windows 和 Linux 平台下的連接埠轉寄工具

2、簡單的TCPProxy 伺服器

3、centos6.5 iptables實現連接埠轉寄


*** walker ***


本文出自 “walker的流水賬” 部落格,請務必保留此出處http://walkerqt.blog.51cto.com/1310630/1947585

連接埠轉寄(Linux/Windows)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.