[SOLVED] Unable to bind to port 80 on LXC container

Giovanni

Renowned Member
Apr 1, 2009
101
5
83
Hi,

I installed transmission (torrent downloader) on a debian stretch container and tried to change the default web server port from 9191 to port 80 (since I want to be able to http://mycontainer/ and reach the UI for transmission).

Jun 28 07:25:35 torrent transmission-daemon[334]: [2017-06-28 07:25:35.422] RPC Server Unable to bind to 0.0.0.0:80 after 10 attempts, giving up (rpc-server.c:773)

File /etc/systemd/system/multi-user.target.wants/transmission-daemon.service

Code:
[Service]
User=debian-transmission
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error
ExecStop=/bin/kill -s STOP $MAINPID
ExecReload=/bin/kill -s HUP $MAINPID


The problem is that transmission is not binding to port 80. Could this be because the service is running as the transmission-daemon user or is there a special setting? On FreeBSD/jails I used to add a sysctl net.inet.ip.portrange.reservedhigh to be able to port numbers below 1024 is this true in LXC?

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!