socat 使用範例

參考資料:
https://gist.github.com/fsodogandji/8521333

# 外網 10.10.10.1 TCP80 導向至內網 192.168.100.1 TCP80
socat TCP4-LISTEN:80,bind=10.10.10.1,reuseaddr,fork, TCP:192.168.100.1:80

 

Facebook Comments Box

Leave a Reply