Chapter 5.3: Configure ClearOS public IP address

Click on the button Exit to console in the ClearOS VM’s console

ClearOS exit to console

Do not insert the password as requested, instead hit the keys ALT + F2

ClearOS admin screen
Alert

When you operate in a Proxmox console window you are not able to use copy/paste, so be very careful when you type the suggested commands.

You will be prompted with a standard linux login. Now enter the username root and use the [ClearOS root password]

ClearOS root login

Type the following command and hit enter

nano /etc/sysconfig/network-scripts/ifcfg-ens18

Warning

You cannot use the main OVH IP address as the main ClearOS IP address if you want to follow this tutorial. If you don’t follow this instruction you will not be able to add additional IPs to publish your sites.

Edit and add the following lines with these settings

Edit:

BOOTPROTO=static
ONBOOT=yes

Add:

IPADDR=[OVH first additional IP address]
NETMASK=255.255.255.255
GATEWAY=[use the first 3 block of numbers of the OVH main IP address].254

If you followed this tutorial from the beginning, you can find the IP addresses that you need in your OVH server control panel:

OVH IP menu
OVH IPs

This is how it should look:

ClearOS ifcfg-ens18

Save your edits by pressing CONTROL + O (the letter O, not zero) and hit enter, then press CONTROL + X to exit

Type the following command and hit enter

nano /etc/sysconfig/network-scripts/route-ens18

Add the following lines with these settings:

[use the first 3 block of numbers of the OVH main IP address].254 dev ens18
default via [use the first 3 block of numbers of the OVH main IP address].254 dev ens18

This is how it should look:

Save your edits by pressing CONTROL + O (the letter O, not zero) and hit enter, then press CONTROL + X to exit

Poweroff the ClearOS virtual machine in Proxmox

Proxmox poweroff

Go back to the OVH IP control panel and click on Add a virtual MAC. Be sure to do so on the same line of the additional IP address you set up before (the one in the file ifcfg-ens18)

OVH add virtual MAC address

Create the new [OVH MAC address] using the name ClearOS (this name is not very important, just avoid duplicates in the future), and use OVH as the type of virtual MAC and click on Confirm

OVH create MAC address

Go back to Proxmox, select the ClearOS VM in the left sidebar and click on Hardware. Then double click on the network device vmbr0

Proxmox edit MAC address

Now in the OVH control panel you should be able to see the [OVH MAC address] you just generated, copy it

OVH MAC address

Paste the [OVH MAC address] in the correct field in Proxmox (substitute the old one with the new one) and press OK

Proxmox edit MAC address popup

Start the ClearOS VM

Proxmox start ClearOS VM

Wait for the VM to boot completely, then point your browser to the address:

https://[OVH first additional IP address]:81

After confirming the certificate security exeption, you should see the ClearOS login page

Proxmox SSL Notification
ClearOS login