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).
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.
Solution
Method 1
- Execute the below command:
cd /opt/kerio/winroute
- Make the system read/write by executing the below commands:
mount -o rw,remount /
- Locate the
Interfaces_v2
section insidewinroute.cfg
file. You can use the grep command to locate the line number and the nano editor to open the file. - It should appear as shown below:
<list name="Interfaces_v2">
- 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> - Replace
IPAddress
,Mask
, andGateway
if needed. - (Optional) If you need to change a particular traffic rule, edit the following section:
<list name="TrafficRules_v2" identityCounter="112">
- Save the file and restart Kerio Control by running the following command:
/etc/boxinit.d/60winroute restart
Method 2
- Make the system read/writable:
mount -o rw,remount /
- Navigate to the
/var/winroute
folder:
cd /var/winroute
- Create a new file named
winroute.cfg.test
in/var/winroute
:
touch winroute.cfg.test
- Obtain a backup file saved from MyKerio or FTP server (or if you have it saved locally).
- Unzip .tar.gz to the .tar folder.
- Unzip the .tar file to the ControlBackup folder.
- Open the ControlBackup folder and copy the content of
winroute.cfg
and paste it into the new file created (winroute.cfg.test
)
For instance: - Modify the
Interfaces_v2
orTrafficRules_v2
content as specified in Method 1. - Rename the
winroute.cfg.test
file towinroute.cfg
:mv winroute.cfg.test winroute.cfg
- Restart Kerio Control using the
/etc/boxinit.d/60winroute restart
command.
Testing
The box should be accessible now, and Kerio Control Webadmin loads correctly.