How to Redirect Stash Traffic to Port 80 on Linux

'How Do I...' and 'How to...' Guide to Stash

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

As described on the document below:

You can bind Stash to a port over 1024 and then configure iptables to redirect traffic from port 80 to the higher port as an alternative to changing the port where Stash listens to. 

ソリューション

  • If you've got Stash running on port 7990 successfully, you can add a rule to your Iptables so requests to

    iptables -t nat -A PREROUTING -i <your network interface> -p tcp --dport 80 -j REDIRECT --to-port 7990

Please refer to the iptables man page for more details on how to use it.

Notice that there might be network impacts while handling the iptables. This is only a guideline on how you can approach this. Before changing your iptables, make sure you're comfortable with changing these rules. Use this guide at your own risk.

最終更新日: 2016 年 2 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.