Start a conversation

Adjusting Lifetime Values for IPSec VPN Using Kerio Control

Overview

This article provides information about IPSec VPN settings and describes the process of changing its lifetime values using Kerio Control.


 

About IPSec VPN Settings

Kerio Control uses a third-party library called Strongswan for the following IPSec lifetime values that are stored in the /etc/ipsec.conf file.

  • The Lifetime variable means how long a particular instance of a connection should last from successful negotiation to expiry.
  • The Ikelifetime variable corresponds to how long the keying channel of a connection (ISAKMP or IKE SA) should last before being renegotiated.

All supported options and values can be found in Strongswan IPSec.conf reference. The common variables that need to be changed are:

  • dpdtimeout = 150s | <time>
    This variable defines the timeout interval, after which all connections to a peer are deleted in case of inactivity.
  • inactivity = <time>
    This variable defines the timeout interval, after which a CHILD_SA is closed if it does not send or receive any traffic.

Back to Top


 

Changing Lifetime Values for IPSec VPN

  1. Log in via SSH to your Kerio Control console.
  2. Make the system read-writable by running the command: mount -o rw,remount /
  3. Open the /etc/ipsec.conf file (using Vim or Nano editor).
  4. Add the following lines in the file, as seen in the screenshot below:

     ikelifetime="3"
    lifetime="1"

    ipsec_lifetime.png

    Note: These numbers represent hourly units.

  5. Save changes and monitor the IPSec VPN behavior.

    Note: These changes may not survive the reboot/shutdown of Kerio Control, as the ipsec.conf file regenerates during system startups. Additionally, even the disabling/enabling of the VPN server in the control admin GUI erases these lifetime parameters and reverts them to their standard values.

Back to Top


 

Related Articles

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

  2. Posted
  3. Updated

Comments