1. Home
  2. How To
  3. How to change the IP address the Snapt One UI runs on?

How to change the IP address the Snapt One UI runs on?

By default, the Snapt One Management UI will listen to all IP addresses bound to it. This means that if you have configured IP Alias’ or VIP’s you’ll be able to access the Snapt One UI on those IP addresses.

We can edit the config file that runs the Snapt One UI and specify a single IP address if you want to limit access to the User Interface from only 1 IP address.


Step 1: Login via SSH/CLI

The first step would be to establish an SSH/CLI session with your Snapt One Virtual Machine. You also want to connect as the “root” user. If you have not changed the default password of the “root” user, the password is “snapt

Step 2: Access the config file

Please navigate to the directory depending on your install type

Snapt One VM Image:

/etc/lighttpd/

Snapt One Bundle Install:

/usr/local/snapt/etc

Step 3: Edit the config file

We now need to edit the config file with your desired text editor (VIM or nano, etc)

lighttpd.conf

After opening the config file, you want to look for the following line:

# Configure a single IP for Snapt to bind to?
#server.bind = "localhost"

We want to remove the “#” next to “server.bind” and then where we see “localhost” replace that with “your.ip.address.here”

The end result should look something like this:

Step 4: Restart Snapt One UI

The last step would be to restart the Snapt One UI depending on the installation type: Snapt One Virtual Machine Image or Snapt One Bundle

Snapt One VM Image:

Shutdown:

killall lighttpd

Restart:

systemctl start lighttpd

Snapt One Bundle Install:

Shutdown:

killall lighttpd

Restart:

/usr/local/snapt/start.sh
Updated on November 26, 2019


Was this article helpful?

Related Articles