Fix for low ports root please add to wiki
kiam001 opened this issue · 4 comments
sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/verlihub
@kiam001
Could you please explain more about this? You just said something I have absolutely no idea about. If you would like to contribute, please explain what this is, how it works, and what we and you need this for.
Hi @RoLex it will allow verlihub to run it with lower ports as 1024 as sample 411 without run it with root acess
Here more Information https://gist.github.com/chairco/99342c9e5d7fba51e1b8f69a7b5ccf11
@kiam001 , There are various way to go around it, one way is to disable the security check on your system:
sudo sysctl net.ipv4.ip_unprivileged_port_start=0
Or forward external port 411 into your internal port (that is higher than port 1024) like 4111 by using iptables, for example:
-A PREROUTING -p tcp -m tcp -i eth0 --dport 411 -j REDIRECT --to-port 4111
A wiki entry would be nice to have... I'll add when I have time.