Is there a way for non-root processes to bind to “privileged” ports on Linux?

后端 未结 24 1687
予麋鹿
予麋鹿 2020-11-22 02:04

It\'s very annoying to have this limitation on my development box, when there won\'t ever be any users other than me.

I\'m aware of the standard workarounds, but non

24条回答
  •  情书的邮戳
    2020-11-22 02:42

    You can setup a local SSH tunnel, eg if you want port 80 to hit your app bound to 3000:

    sudo ssh $USERNAME@localhost -L 80:localhost:3000 -N
    

    This has the advantage of working with script servers, and being very simple.

提交回复
热议问题