LoginSignup
2
3

More than 5 years have passed since last update.

mkfifoとncでポートフォワーディング

Posted at

OSX10.10にて確認。

参考

使ってみる

sudo nc -l 80 | nc myserver.co.jp 3000
  • 上記例だと一度アクセスするとncが終了してしまう。
  • 永続化のためにfifoを使う。
mkfifo fifo
while True ; do sudo nc -l 80 < fifo | nc myserver.co.jp 3000 > fifo; done
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3