Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Allow admin panel from certain ip (APACHE2)

Hi, how can I add certain ips to the whitelist, but leave access to /ocsinventory so that the agent can send POST requests?

I used:

  • Alias /ocsreports /usr/share/ocsinventory-reports/ocsreports
  • <Directory /usr/share/ocsinventory-reports/ocsreports>
  • Deny from all
  • Allow from localhost
  • Allow from 127.0.0.1
  • Allow from 10.10
  • Allow from 192.168
  • </Directory>

But by doing so I block access not only to the admin panel, but also to /ocsinventory.

in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
When you install an OCS Server (from sources), you get 2 .conf files : 1 for /ocsinventory (+ /download ....) and 1 for /ocsreports.

You should consider the second .conf files (and reload apache2) ...
by (20.1k points)
 
Powered by Question2Answer
...