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

后端 未结 24 1306
予麋鹿
予麋鹿 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:55

    My "standard workaround" uses socat as the user-space redirector:

    socat tcp6-listen:80,fork tcp6:8080
    

    Beware that this won't scale, forking is expensive but it's the way socat works.

提交回复
热议问题