Coder Social home page Coder Social logo

hsuenaga / openiked Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reyk/openiked

0.0 0.0 0.0 500 KB

Internet Key Exchange version 2 (IKEv2) daemon - portable version of OpenBSD iked

License: Other

Shell 0.91% C 96.91% C++ 0.82% Awk 1.36%

openiked's People

Contributors

hsuenaga avatar reyk avatar

Watchers

 avatar  avatar

openiked's Issues

must send and receive INFOMATION message when CHILD-SA was deleted.

RFC4306 1.4. says

                  Each endpoint MUST close its incoming SAs and allow the
   other endpoint to close the other SA in each pair.  To delete an SA,
   an INFORMATIONAL exchange with one or more delete payloads is sent
   listing the SPIs (as they would be expected in the headers of inbound
   packets) of the SAs to be deleted.

'ikectl reset sa' generates broken SADB_X_SPDDELETE if multiple CHILD-SA's negotiated.

Network:
[OpenBSD(Reference)] --- [NetBSD(DUT)]
192.168.87.10 192.168.87.11

Config:
OpenBSD:

ikev2 active esp \
     from 192.168.87.10 to 192.168.87.11 \
     peer 192.168.87.11 local 192.168.87.10 \
     ikesa enc 3des auth hmac-sha1 group modp1024 \
     childsa enc aes-128 auth hmac-sha1 \
     psk "foobar"

NetBSD:

ikev2 test-policy active esp \
     from 192.168.87.11 to 192.168.87.10 \
     peer 192.168.87.10 local 192.168.87.11 \
     ikesa enc 3des auth hmac-sha1 group modp1024 \
     childsa enc aes-128 auth hmac-sha1 \
     psk "foobar"

(1) Prepare

openbsd# iked
netbsd# iked -dvv

(waiting for 1st CHILD_SA established)

(2) Create more SA

openbsd# ikectl reset sa

XXX: openbsd doesn't send INFOMATION(DELETE SA)

(3) Reset SA

netbsd# ike reset sa

(4) the error

SADB_X_SPDDELETE: pfkey_reply message: Invalid argument
SADB_X_SPDDELETE: pfkey_reply message: Invalid argument

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.