Page 1 of 1

Fedora 21 Server :Only access from localhost [selinux]

Posted: February 14th, 2015, 3:18 am
by HeinzM
Hi,

i used to run sabnzb on old linux machine. But got new hardware these days.
sabnzb is now running on Fed 21 Server.
The daemon is already running. But i can't access it over LAN.

netstat display

Code: Select all

tcp        0      0 10.8.7.103:1234         0.0.0.0:*               LISTEN      2070/python          aus (0.00/0/0)
I also tried to connect with disabled firewall. But I still get timeout error.

Any hints?

Sincerly,
Heinz

Re: Only access from localhost

Posted: February 14th, 2015, 3:56 am
by sander
which URL did you check from another device on your LAN?

Re: Only access from localhost

Posted: February 14th, 2015, 4:02 am
by HeinzM

Code: Select all

http://10.8.7.103:1234/sabnzbd/

Re: Only access from localhost

Posted: February 14th, 2015, 4:43 am
by HeinzM
I found the error.
I with selinux=disabled everything is working like charm.

If somebody else is expiriencing errors with Fed 21 Server, feel free to pm me.

Sincerly,
HeinzM

Re: Fed 21 Server :Only access from localhost

Posted: February 14th, 2015, 8:06 am
by sander
So you turned completely off selinux?

Maybe this helps to allow SABnzbd to listen (in this case port 12345), quote from https://access.redhat.com/documentation ... erver.html
An SELinux denial similar to the following is logged:
setroubleshoot: SELinux is preventing the httpd (httpd_t) from binding to port 12345. For complete SELinux messages. run sealert -l f18bca99-db64-4c16-9719-1db89f0d8c77
For SELinux to allow httpd to listen on port 12345, as used in this example, the following command is required:
~]# semanage port -a -t http_port_t -p tcp 12345
First step (after turning selinux on again), is to inspect the logging.
Maybe nice to try and find out.