Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › CentOS - SB/CP/Sanzbd accessible by localhost not IP
New Posts  All Forums:Forum Nav:

CentOS - SB/CP/Sanzbd accessible by localhost not IP - Page 2

post #11 of 21
Right, you can't just have '0' as a network address. That isn't a valid address so it shouldn't have worked either. Has to be 0.0.0.0 for accept any connection on any interface.

At this point it's probably iptables or selinux anyway.
post #12 of 21
Quote:
Originally Posted by herkalurk View Post

Right, you can't just have '0' as a network address. That isn't a valid address so it shouldn't have worked either. Has to be 0.0.0.0 for accept any connection on any interface.
Of course it's valid. 0 is the same as 0.0.0.0 except represented in integer form. It's a perfectly valid notation of IP numbers and is supported by Linux.

You can even use intergers instead of IPs in webbrowsers too. eg this is an IP for google.co.uk in integer form: http://2915181219/ (I used an online calculator for that though as I was feeling lazy: http://www.silisoftware.com/tools/ipconverter.php)
post #13 of 21
Quote:
Originally Posted by Plan9 View Post

Of course it's valid. 0 is the same as 0.0.0.0 except represented in integer form. It's a perfectly valid notation of IP numbers and is supported by Linux.

You can even use intergers instead of IPs in webbrowsers too. eg this is an IP for google.co.uk in integer form: http://2915181219/ (I used an online calculator for that though as I was feeling lazy: http://www.silisoftware.com/tools/ipconverter.php)

You really like the complex stuff don't you.....

I hated learning the base 16 math stuff, and all that, don't really want to know more about ipv6 either.
post #14 of 21
Quote:
Originally Posted by herkalurk View Post

You really like the complex stuff don't you.....
0 is easier than 0.0.0.0 though. Six characters easier to be precise. tongue.gif I wouldn't dream of using integer representations for anything more complex than 0.0.0.0
post #15 of 21
Thread Starter 
That was it!! .. working great now! For my knowledge what is the sentenforce and iptables?
 
ESXi Server
(10 items)
 
HTPC
(13 items)
 
CPUMotherboardGraphicsRAM
i7-4790K Asus Sabertooth Mark 2 Radeon HD 6950 GSkill Sniper Series 
Hard DriveCoolingOSMonitor
Samsung XP941 Noctura NH-D14 8.1 Pro QNIX 27", Dell 24", Samsung 22", Sony 24" 
KeyboardPowerCaseMouse
Corsair K95 PC&P 750 NZXT H2 Logitech G500s 
CPUHard DriveHard DriveHard Drive
Phenom II x4 965 WE Red Seagate Intel SSD 
Hard DriveCoolingOSOS
WR Raptor  Silenx Fans x2 120mm Win 7 x2 Unraid 
OSCase
pfsense Rackmount 16 bay hot-swap 
CPUMotherboardGraphicsRAM
i3 2100t Gigabyte integrated 2x 8GB GSkill 
Hard DriveCoolingOSMonitor
OCZ SSD Stock Win7 - Plex Shell Sony XBR2 
PowerCase
Generic 350 watt Repurposed Vidabox 
  hide details  
Reply
 
ESXi Server
(10 items)
 
HTPC
(13 items)
 
CPUMotherboardGraphicsRAM
i7-4790K Asus Sabertooth Mark 2 Radeon HD 6950 GSkill Sniper Series 
Hard DriveCoolingOSMonitor
Samsung XP941 Noctura NH-D14 8.1 Pro QNIX 27", Dell 24", Samsung 22", Sony 24" 
KeyboardPowerCaseMouse
Corsair K95 PC&P 750 NZXT H2 Logitech G500s 
CPUHard DriveHard DriveHard Drive
Phenom II x4 965 WE Red Seagate Intel SSD 
Hard DriveCoolingOSOS
WR Raptor  Silenx Fans x2 120mm Win 7 x2 Unraid 
OSCase
pfsense Rackmount 16 bay hot-swap 
CPUMotherboardGraphicsRAM
i3 2100t Gigabyte integrated 2x 8GB GSkill 
Hard DriveCoolingOSMonitor
OCZ SSD Stock Win7 - Plex Shell Sony XBR2 
PowerCase
Generic 350 watt Repurposed Vidabox 
  hide details  
Reply
post #16 of 21
Quote:
Originally Posted by DanNEBTD View Post

That was it!! .. working great now! For my knowledge what is the sentenforce and iptables?

IP tables is a firewall. setenforce is just a management utility for SELinux, which is a security type stuff to stop exploited applications from doing further damage (to over simplify things).

The "fix" I posted was just a temporary setting which will default back to the broken state when you next reboot, so you'll need to make a few more changes. I'm going to assume it was SELinux which was the problem because you said other networking daemons worked, so it seems unlikely it was IP tables. so first of all lets re-enable that:
Code:
service iptables start

Next there's the issue of SELinux. In an ideal world what you should do is create a rule for Sabnzbd. However I seldom use SELinux so I'd have to look up the syntax of those config files myself. So I'd probably suggest going down the less secure route and disable it completely - however I do so with the following disclaimer: THIS IS A LESS SECURE AND VERY LAZY SOLUTION.

Edit /etc/sysconfig/selinux and change "SELINUX=enforcing" to "SELINUX=permissive"

(Disclaimer 2: I just Googled that: https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html redface.gif)
post #17 of 21
Yeah, selinux sucks. My boss is a security nut and we are leaving it enforcing on every linux server we make. We haven't had any security breaches, and the servers don't contain any sensitive data, we just "need" to. Course we had a security assessment and we are taking everything the company said as gospel and it must be done. Because somehow we're going to not have any security issues in our next assessment. For home use, SELINUX isn't worth the headache. If you were going to store sensitive data on the cloud, different story.
post #18 of 21
Before just getting rid of selinux allways try

restorecon

First, it will "fix" most selinux headaches and I agree sometimes its a absolute pain in the penguin (see what i did they ei ei ei *cough*) its there for a reason, It impements a standard of Mandatory Access Control onto the system and stops "nasty" things from happening, its allways usefull trying to troubleshoot the Se Issue before just turning it off thumb.gif
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
post #19 of 21
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

IP tables is a firewall. setenforce is just a management utility for SELinux, which is a security type stuff to stop exploited applications from doing further damage (to over simplify things).

The "fix" I posted was just a temporary setting which will default back to the broken state when you next reboot, so you'll need to make a few more changes. I'm going to assume it was SELinux which was the problem because you said other networking daemons worked, so it seems unlikely it was IP tables. so first of all lets re-enable that:
Code:
service iptables start

Next there's the issue of SELinux. In an ideal world what you should do is create a rule for Sabnzbd. However I seldom use SELinux so I'd have to look up the syntax of those config files myself. So I'd probably suggest going down the less secure route and disable it completely - however I do so with the following disclaimer: THIS IS A LESS SECURE AND VERY LAZY SOLUTION.

Edit /etc/sysconfig/selinux and change "SELINUX=enforcing" to "SELINUX=permissive"

(Disclaimer 2: I just Googled that: https://www.centos.org/docs/5/html/5.1/Deployment_Guide/sec-sel-enable-disable.html redface.gif)

As soon as I enable iptables again it breaks the connection. I reenable and it starts working. I believe it may be an iptables issue. I havent touched the SELinux since our last post.
 
ESXi Server
(10 items)
 
HTPC
(13 items)
 
CPUMotherboardGraphicsRAM
i7-4790K Asus Sabertooth Mark 2 Radeon HD 6950 GSkill Sniper Series 
Hard DriveCoolingOSMonitor
Samsung XP941 Noctura NH-D14 8.1 Pro QNIX 27", Dell 24", Samsung 22", Sony 24" 
KeyboardPowerCaseMouse
Corsair K95 PC&P 750 NZXT H2 Logitech G500s 
CPUHard DriveHard DriveHard Drive
Phenom II x4 965 WE Red Seagate Intel SSD 
Hard DriveCoolingOSOS
WR Raptor  Silenx Fans x2 120mm Win 7 x2 Unraid 
OSCase
pfsense Rackmount 16 bay hot-swap 
CPUMotherboardGraphicsRAM
i3 2100t Gigabyte integrated 2x 8GB GSkill 
Hard DriveCoolingOSMonitor
OCZ SSD Stock Win7 - Plex Shell Sony XBR2 
PowerCase
Generic 350 watt Repurposed Vidabox 
  hide details  
Reply
 
ESXi Server
(10 items)
 
HTPC
(13 items)
 
CPUMotherboardGraphicsRAM
i7-4790K Asus Sabertooth Mark 2 Radeon HD 6950 GSkill Sniper Series 
Hard DriveCoolingOSMonitor
Samsung XP941 Noctura NH-D14 8.1 Pro QNIX 27", Dell 24", Samsung 22", Sony 24" 
KeyboardPowerCaseMouse
Corsair K95 PC&P 750 NZXT H2 Logitech G500s 
CPUHard DriveHard DriveHard Drive
Phenom II x4 965 WE Red Seagate Intel SSD 
Hard DriveCoolingOSOS
WR Raptor  Silenx Fans x2 120mm Win 7 x2 Unraid 
OSCase
pfsense Rackmount 16 bay hot-swap 
CPUMotherboardGraphicsRAM
i3 2100t Gigabyte integrated 2x 8GB GSkill 
Hard DriveCoolingOSMonitor
OCZ SSD Stock Win7 - Plex Shell Sony XBR2 
PowerCase
Generic 350 watt Repurposed Vidabox 
  hide details  
Reply
post #20 of 21
In that case the fix is dead easy. Give me a couple of hours as I'm onmy phone at the moment, but when I get back in the office I'll post some code up for you (if someone elsehasn't already beaten me to it).
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › CentOS - SB/CP/Sanzbd accessible by localhost not IP