Git Product home page Git Product logo

Comments (5)

tobiasbrunner avatar tobiasbrunner commented on May 24, 2024

Everything workes fine with IKEV2.

Please don't use IKEv1 between two instances of strongSwan and you can use IKEv2.

from strongswan.

e9ternity avatar e9ternity commented on May 24, 2024

Everything workes fine with IKEV2.

Please don't use IKEv1 between two instances of strongSwan and you can use IKEv2.

I have to use IKEv1, primarly due to some service providers providing IKEv1 only peers.

from strongswan.

tobiasbrunner avatar tobiasbrunner commented on May 24, 2024

Then use it with them but not between strongSwan hosts.

Anyway, this seems to be some collision (both initiating reauths). Probably would happen more rarely if you used longer reauth times (gives the peers more chance to randomize the actual time they start it).

from strongswan.

e9ternity avatar e9ternity commented on May 24, 2024

Thanks a lot, I will try randomize the reauth time.

from strongswan.

corngood avatar corngood commented on May 24, 2024

I'm seeing something very similar to this between strongswan (initiator) and a barracuda firewall.

It also seems similar to this: https://wiki.strongswan.org/issues/3279

I don't think it's a race, because it happens with rekey_time set to 4h and 10h.

IKE_SA ikev1-psk-xauth[3] established between [...]
scheduling reauthentication in 35704s
maximum IKE_SA lifetime 39304s

35704s later:

IKE_SA ikev1-psk-xauth[4] established between [...]
scheduling reauthentication in 32916s
maximum IKE_SA lifetime 36516s

The connection works fine here, until 39304s after the first message when:

deleting IKE_SA ikev1-psk-xauth[3] between [...]
sending DELETE for IKE_SA ikev1-psk-xauth[3]

At this point I stop receiving packets from the peer. The SAs looks correct, and packets keep going out, but none come in.

A manual or scheduled rekey of the child SA restores the connection.

Edit: I should mention that I'm a little out of date. My distro (nixos) still has 5.8.1, so I'll attempt to upgrade and test again.

Edit: tested with 5.9.4 and the behaviour seems to be the same.

from strongswan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.