Remote Access Configuration (Static IP)

Remote Access Configuration (Static IP) This article explains how to set up a Static IP address for remote access to the server

This section assumes that you have just completed Install Debian OS and Install ggRock steps and now want to configure Remote Access and set up a Static IP address for the server. This is the preferred moment to do so.

Step 1. Login as root

Your login is: root
Your password is: whatever you set in Set Up Users and Passwords.
It is okay to not see the password characters as you enter them.

Enter the password and press Enter

Step 2. Confirm login

After successful login the last line you should see will read root@ggrock:~#, ggock here is the hostname of your server. If you can't login with the correct password - please check that the CAPS LOCK is disabled

Step 3. Backup network config

Make a backup of the network configuration file.
Input the following line in the console:

 
cp /etc/network/interfaces /etc/network/interfaces.bak

And press Enter

Step 4. Open network configuration

Input the following line in the console:

nano /etc/network/interfaces

And press Enter
Content of this file for you might be different

Step 5. Set the Static IP

You need to change several aspects of the configuration file.

Replace

auto vmbr0

iface vmbr0 inet dhcp

with:

auto vmbr0

iface vmbr0 inet static

address 192.168.1.66

netmask 255.255.255.0

gateway 192.168.0.1

Importantly, the values here are:

  • address value is your Server IP (192.168.1.66 in this installation)

  • netmask value by default is 255.255.255.0, only change if you are certain that your network uses a different value

  • gateway value is the IP address of your router. Usually 192.168.0.1 or 192.168.1.1, but can be different, consult your network administrator

  • The whitespaces before the address, netmask and gateway are achieved by pressing Tab

Step 6. Save interface settings

In order to save the settings first press Ctrl+X, then Y, then press Enter

Step 7. Backup DNS configuration

Make a backup of the DNS configuration file.
Input the following line in the console:

 
cp /etc/resolv.conf /etc/resolv.conf.bakAnd press Enter

Step 8. Open DNS settings

Input the following line in the console:

nano /etc/resolv.conf

And press Enter
Content of this file for you might be different

Step 9. Set DNS values

Change the text in the file to:
nameserver 8.8.8.8
nameserver 8.8.4.4
To save press Ctrl-X, then press Y and finally Enter

Step 10. Reboot the server

Input the following line in the console:
reboot
And press Enter

You should be all good to go and Install the ggRock Server Application. With a Static IP you can now set up routing and access your ggRock server from outside the LAN

Optional Step 11. Rerun ggRock Configurator

If you have decided to set your Static IP to something different from your initial Server IP, then please:

  1. Login as root

  2. Input the following line in the console:

ggrock-linux-configurator

And then follow ggRock Linux Configuration Utility through the end of the Install the ggRock Server Application article.

 

This is required in order for ggRock to re-adjust for your new IP address