Can't change main mode lifetime from default 8h

iCebreaker 0 Reputation points
2024-05-01T13:27:44.5966667+00:00

I am unable to change main mode lifetime for l2tp over ipsec vpn setting.

This is a windows 10 machine.

It is set to 8h by default and nothing I have done seems to change rekeying timer.

I used netsh commands to do that, changed the cryptoset using powershell, used gui to set the settings from 8h to 1h, all these changes are persistent, but when the negotiation happens, it does not use the settings, it always comes up with 8h lifetime.
MainModeSA:
KeyModule : IkeV1

MaxQMSAs : 0

LifetimeSeconds : 28800

CryptoSet:
MaxMinutes : 60

GPO setting for ipsec is set to 60 min as well.

Global settings:
KeyLifetime 60min,0sess

Followed all documentation, tried all posibilites, nothing seems to change that 8h default.
The peer it connects to always receives an 8h lifetime proposal.

I hope someone had this issue and would have an answer.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,815 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.