Changing the standard port 443

By default, port 443 is used for communication between the server and the agent. To assign a new one, specify its number in the agent and server settings.

Changing the port in the server settings

To change the port number:

  1. Open the web server configuration file:

sudo nano /etc/nginx/sites-available/ssl.ibatyr
  1. Change the port number in the listen line: instead of the default 443, enter your own.

  2. Restart ibatyr and nginx:

sudo service ibatyr restart; sudo service nginx restart

Changing the port in the agent settings

You can change the port in the agent settings:

  • when reinstalling the agent (the new version of the agent must be no lower than the installed version);

  • without reinstallation, using the registry entry:

ADD HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\TimeSvc3\ServiceConfiguration

Additional port for server control

If there is a need to assign an additional port to control the server:

  1. Create a copy of the existing configuration file:

sudo cp /etc/nginx/sites-available/ssl.ibatyr /etc/nginx/sites-available/ssl.ibatyr2
  1. Open a new configuration file:

sudo nano /etc/nginx/sites-available/ssl.ibatyr2
  1. Comment out the first two lines of the configuration file:

# client_max_body_size
# large_client_header_buffers
  1. In the listen line, enter the new port number.

  2. Create a symbolic link to the new configuration file:

sudo ln -s /etc/nginx/sites-available/ssl.ibatyr2 /etc/nginx/sites-enabled
  1. Restart ibatyr and nginx:

sudo service ibatyr restart; sudo service nginx restart

After this, the server will listen on the specified ports.