Start a conversation

Modifying Kerio Control Configuration via Serial Console

Overview

In some cases, the factory-reset of the box does not help in resolving network misconfiguration caused by broken network access. This happens due to configuration mistakes or hardware issues, mostly when migrating from another box.

Inability to access Webadmin GUI settings can be fixed by using a serial cable shipped with most hardware boxes (except NG100/NG100W/NG110 models).

IMG_7663.jpeg

This article explains how to modify the Kerio Control configuration via serial console using two methods.

Prerequisites

You need direct access to the Kerio Control box using a serial console. Refer to Connecting to Kerio Hardware Appliances with Serial Console for more information.

IMG_7664.jpeg

 


Solution

Method 1

  1. Execute the below command:

    cd /opt/kerio/winroute
  2. Make the system read/write by executing the below commands:

    mount -o rw,remount /
  3. Locate the Interfaces_v2 section inside winroute.cfg file. You can use the grep command to locate the line number and the nano editor to open the file.
    Screen_Shot_2021-01-05_at_3.02.17_PM.png
  4. It should appear as shown below:
    Screen_Shot_2021-01-05_at_3.22.16_PM.png
    <list name="Interfaces_v2">
  5. Find the necessary interface and modify the following variables:

    <variable name="Mode">Manual</variable>
    <variable name="IPAddress">0.0.0.0</variable>
    <variable name="Mask">0.0.0.0</variable>
    <variable name="AutodetectGateway">0</variable>
    <variable name="Gateway">0.0.0.0</variable>
  6. Replace IPAddress, Mask, and Gateway if needed.
  7. (Optional) If you need to change a particular traffic rule, edit the following section: 

    <list name="TrafficRules_v2" identityCounter="112">
  8. Save the file and restart Kerio Control by running the following command:

    /etc/boxinit.d/60winroute restart

 


Method 2

  1. Make the system read/writable:

    mount -o rw,remount /
  2. Navigate to the /var/winroute folder:

    cd /var/winroute
  3. Create a new file named winroute.cfg.test in /var/winroute:

    touch winroute.cfg.test
  4. Obtain a backup file saved from MyKerio or FTP server (or if you have it saved locally).
  5. Unzip .tar.gz to the .tar folder.

    mceclip0.png

  6. Unzip the .tar file to the ControlBackup folder.

    unzip2.png

  7. Open the ControlBackup folder and copy the content of winroute.cfg and paste it into the new file created (winroute.cfg.test)

    For instance:

    copy_winroute.png

  8. Modify the Interfaces_v2 or TrafficRules_v2 content as specified in Method 1.
  9. Rename the winroute.cfg.test file to winroute.cfg:
    mv winroute.cfg.test winroute.cfg
  10. Restart Kerio Control using the /etc/boxinit.d/60winroute restart command.

 

Testing

The box should be accessible now, and Kerio Control Webadmin loads correctly.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments