Hi, I am using icecast2-2.4.1,1 on FreeBSD 10.1-RELEASE. In order to be able to stream on port 80, I have redirected port 8080 to port 80 by means of firewall on icecast server itself (packet filter): rdr pass on $ext_if proto tcp to port 80 -> 127.0.0.1 port 8000 The only thing that bothers me is the fact that autogenerated playlist files (m3u, xspf and vclt) in web interface direct to port 8000. Is there a way to change them so they point to desired port instead to the port specified in configuration file? Regards, -- Marko Cupa? https://www.mimar.rs
"Thomas B. Rücker"
2015-Jan-25 15:06 UTC
[Icecast] change port in autogenerated playlist links
On 01/25/2015 02:27 PM, Marko Cupa? wrote:> Hi, > > I am using icecast2-2.4.1,1 on FreeBSD 10.1-RELEASE. In order to be able > to stream on port 80, I have redirected port 8080 to port 80 by means of > firewall on icecast server itself (packet filter):<snip /> Sorry to say, but "you're holding it wrong", also we just don't support this. The proper way to do this is to configure <security><changeowner> and start Icecast as root. It will then bind to port 80 and drop itself to the restricted user/group provided. Another option is to remove the restriction of being root for binding to ports below 1024 or giving the Icecast user necessary privileges to do so. Please refer to your system's best practices to choose the right option. I'm not an *BSD expert. Cheers Thomas
On Sun, 25 Jan 2015 15:06:45 +0000 "Thomas B. R?cker" <thomas at ruecker.fi> wrote:> On 01/25/2015 02:27 PM, Marko Cupa? wrote: > > Hi, > > > > I am using icecast2-2.4.1,1 on FreeBSD 10.1-RELEASE. In order to be able > > to stream on port 80, I have redirected port 8080 to port 80 by means of > > firewall on icecast server itself (packet filter): > <snip /> > > Sorry to say, but "you're holding it wrong", also we just don't support > this.I agree this setup is "unusual", and I understand you don't support it, but I do not see what makes it "wrong".> The proper way to do this is to configure <security><changeowner> and > start Icecast as root. It will then bind to port 80 and drop itself to > the restricted user/group provided.I am starting icecast as root (by rc script), and I was already changing owner to nobody/nogroup as suggested in example config file. So all I needed to do was to change the port. Thank you, -- Marko Cupa? https://www.mimar.rs