NagiosXI/apache 2.2 , need full block for all public IPs
Posted: Wed Jun 12, 2019 1:17 am
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
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