You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-08 16:17:44

badkempachi
Member
Registered: 2022-03-01
Posts: 16

Changing the inventory port

Hello everyone.
Faced with the need to change the port of inventory, how is it best to implement?

Offline

#2 2022-06-08 16:51:55

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: Changing the inventory port

Hi badkempachi,

what do you mean by changing the inventory port ? Can you be more accurate ?


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2022-06-09 11:10:59

badkempachi
Member
Registered: 2022-03-01
Posts: 16

Re: Changing the inventory port

gbougard wrote:

Hi badkempachi,

what do you mean by changing the inventory port ? Can you be more accurate ?


Hi gbougard,
I want to change the standard port 443 to which the inventory files are sent. Port 443 is also used to access the web panel. Is it possible to implement access to the web panel separately from the inventory? This is necessary to reduce access to the web panel.

Offline

#4 2022-06-09 11:38:48

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: Changing the inventory port

You have some httpd server (Apache, nginx or so) configuration to do. This part is up to you.
On the agent, you'll just have to configure the server url to include the port if it is not standard, like in: http://myglpiserver:8088/glpi


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#5 2022-06-10 11:43:19

badkempachi
Member
Registered: 2022-03-01
Posts: 16

Re: Changing the inventory port

gbougard wrote:

You have some httpd server (Apache, nginx or so) configuration to do. This part is up to you.
On the agent, you'll just have to configure the server url to include the port if it is not standard, like in: http://myglpiserver:8088/glpi

It turned out to be implemented. But there remains one problem that has not been solved at the moment. I now have a separate port for sending inventory files, but I want to disable the user's ability to access the glpi website. What is the best way to do this?

P.s. i am use apache

Offline

#6 2022-06-10 12:43:58

Kaya84
Member
Registered: 2019-06-13
Posts: 217

Re: Changing the inventory port

Using apache directive  https://httpd.apache.org/docs/2.4/howto/access.html ?

Or simply by not giving username and password to them??

Offline

#7 2022-06-10 16:12:29

badkempachi
Member
Registered: 2022-03-01
Posts: 16

Re: Changing the inventory port

Kaya84 wrote:

Using apache directive  httpd.apache_org/docs/2.4/howto/access.html ?

Or simply by not giving username and password to them??

I found a simple option for myself in the form of “front” blocking.

<Directory> /var/www/html/glpi/>
   Order Deny,Allow
   Deny from all
   Allow from 127.0.0.1
</Directory>
<Files /var/www/html/glpi/marketplace/glpiinventory/index.php>
    Order Allow,Deny
    Allow from all
</Files>

<Directory "/var/www/html/glpi/marketplace/glpiinventory">
    Allow from all
</Directory>


Regarding the fact that not to give a username and password, yes, this is a solution of course.
But in my case, the need to block access to the web panel is due to the fact that there is a PC in the dmz network.

Last edited by badkempachi (2022-06-14 17:30:28)

Offline

Board footer

Powered by FluxBB