Purpose
Listen to the native 7777 port and forward the data to the 8888 port of 192.168.7.8 for TCP data forwarding.
Method
1,ncat (Linux/windows Universal) (NCAT Port forwarding)
Ncat--sh-exec "Ncat 192.168.7.8 8888"-L 7777--keep-open
2.netsh (Windows) (port forwarding in Windows)
2.1. Setting
netsh interface portproxy add v4tov4 listenport=7777 listenaddress=0.0.0.0 connectport=8888 connectaddress=192.168.7.8
2.2. Display
netsh interface portproxy show all
2.3. Removal
netsh interface portproxy delete v4tov4 listenport=7777 listenaddress=0.0.0.0
Related reading:
1. Port forwarding tools under Windows and Linux platforms
2 . Simple TCP Proxy Server
3.centos6.5 iptables for Port forwarding
Walker * * *
This article is from "Walker's Journal" blog, please be sure to keep this source http://walkerqt.blog.51cto.com/1310630/1947585
Port Forwarding (linux/windows)