FerryDocs

Permission denied on port 80 or 443

On Linux, a program needs a special right to listen on a port below 1024.

Edit on GitHub

What you see

ferryd
Error: cannot listen on 0.0.0.0:80 (proxy address)

Caused by:
    Permission denied (os error 13)

Why it occurs

On Linux, only a program with special rights can listen on a below 1024.

How to repair it

Do not run ferryd as . Give it the CAP_NET_BIND_SERVICE.

With , add this line to the of ferryd. See Production setup.

systemd unit
AmbientCapabilities=CAP_NET_BIND_SERVICE

As an alternative, set the capability on the file of the program.

Terminal
sudo setcap cap_net_bind_service=+ep /usr/local/bin/ferryd

Run setcap again after each upgrade of ferryd.

On this page