LoginSignup
1
1

More than 5 years have passed since last update.

stoneを使い別のport番号でも待ち受ける

Last updated at Posted at 2017-08-28

標準ポートを別のポートで待ち受けたいことはよくある。

例:

  • sshだと 22 -> 2222
  • httpだと 80 -> 8080
  • vncだと 5900 -> 8888 など。

iptables を使うとできると思うが、手軽にユーザー権限で行いたい。

インストール(ubuntu17.04にて確認)
apt install -y stone
5900を8888で待ち受ける場合
stone localhost:5900 8888
22を2222で待ち受ける場合
stone localhost:22 2222
1
1
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
1
1