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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

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

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked