Git Product home page Git Product logo

Comments (4)

tobiasbrunner avatar tobiasbrunner commented on May 24, 2024

You refer to rekeyings, but if you see IKE_SA_INITs, then those are not rekeyings but possibly reauthentications or simply reestablishments. If strongSwan initiates reauthentications, it will use the previous IPs and ports (i.e. usually 4500). Only if that fails and the SAs have to be reestablished, will it re-resolve addresses and revert back to the original ports (usually 500).

You need to have a closer look at the exchanged packets. Packets sent to port 4500 have to be prefixed with a non-ESP marker (4 zero bytes after the UDP header), if that's not the case, they won't reach the IKE daemon. Likewise, packets sent to port 500 should not have such a marker.

from strongswan.

lamasp avatar lamasp commented on May 24, 2024

I've checked the packets now, Strongswan definitely does include the 4 zero bytes non-ESP marker after the UDP header when sending on 4500. And the other endpoint doesn't have the non-ESP marker in its port 500 packets.

Packet 1 (Strongswan to Cisco, non-ESP marker present on 4500):

strongswan to cisco

Packet 3 (Cisco to Strongswan, non-ESP marker not present on 500):
cisco to strongswan

from strongswan.

tobiasbrunner avatar tobiasbrunner commented on May 24, 2024

Try checking whether anything is logged about these packets (maybe increase the log level for net). Also make sure there is only a single IKE daemon running and that no firewall rules (e.g. installed by an updown script) block the packets.

from strongswan.

lamasp avatar lamasp commented on May 24, 2024

I wasn't able to get any more lower level information about these packets. The tunnel was reverted back to IKEv1 and it has been stable since. Would have liked to get to the bottom of the problem with IKEv2 but looks to be related to Cisco's handling of IKE on 4500 and not something Strongswan was doing.

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.