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

后端 未结 24 1564
予麋鹿
予麋鹿 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 03:06

    You can do a port redirect. This is what I do for a Silverlight policy server running on a Linux box

    iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 943 -j REDIRECT --to-port 1300
    

提交回复
热议问题