Page 1 of 1

NagiosXI/apache 2.2 , need full block for all public IPs

Posted: Wed Jun 12, 2019 1:17 am
by zaji_nms
Dear Expert

I have tried my best via googling but failed. I want to block my NagiosXI (running Apache2.2) accessing from public IPs,
I want none of any File/Folder should be accessible from public IPs (if I want to access from Home, will connect via my VPN)

just want to block any HTTP/HPTTS access. I don't want to use IPTABLES for this action as using this is as SNMP Manager and pinging Public IPs

I tried below but no use , and tried many combination but failed, need your help.

### Section 1: Global Environment

# <Directory *>
<Directory />
Options FollowSymLinks
AllowOverride None

# Order allow,deny
Order deny,allow
Deny from all
Allow from 192.168
Allow from 172.16
Allow from 10
Allow from 127.0.0.1
Allow from localhost
</Directory>

after applying above conditions, only one changes came in effect, previously I was able to access my NagiosXI by simple putting IP in browser
51.52.53.54 or http://51.52.53.54 , however after above changes, I have to add nagios/nagiosxi after the IP, http://51.52.53.54/nagiosxi, but I want to block all HTTP/HTTPS request from public IPs, neither any File/Folder should be accessible/executable from public IP.

regards

Re: NagiosXI/apache 2.2 , need full block for all public IPs

Posted: Wed Jun 12, 2019 1:45 pm
by tgriep
This might be easier block the server using a Firewall if there is one between the Internet and the Nagios XI server.
Just block inbound connections from the internet to the Nagios server there and that be a quick way to do that.

If you changed the IP address or the Hostname of the server that you are using to accessing the server, did you update the Program URL on the Admin > System Settings menu in the XI interface?