Verlihub/verlihub

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

RoLex commented

@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

@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.