reyk / openiked Goto Github PK
View Code? Open in Web Editor NEWInternet Key Exchange version 2 (IKEv2) daemon - portable version of OpenBSD iked
License: Other
Internet Key Exchange version 2 (IKEv2) daemon - portable version of OpenBSD iked
License: Other
Hi there,
I got this strange error on a clean OpenBSD 6.3 GENERIC#490 i386 (iked,v 1.6 2018/01/11)
/etc/iked.conf
ikev2 test \
esp from 0.0.0.0/0 to 0.0.0.0/0 peer 172.16.0.1 \
ikesa enc aes-128-gcm group ecp256 \
srcid jack \
dstid 172.16.0.1
/sbin/iked -dvv
/etc/iked.conf: 3: aes-128-gcm not a valid transform
ca exiting, pid 374
control exiting, pid 19575
ikev2 exiting, pid 6367
Segmentation fault (core dumped)
any suggestions?
There is some parts of the config format that isn't documented, but is used in the examples. More specifically there is a config
directive that seams to allow set DHCP/DNS/IP options, and I guess it's related to MODE_CFG.
It would be nice if it was properly documented, as well as additional examples.
user "test" "password123"
ikev2 "win7" esp \
from 0.0.0.0/0 to 172.16.2.0/24 \
peer 10.0.0.0/8 local 192.168.56.0/24 \
eap "mschap-v2" \
config address 172.16.2.1 \ # This isn't documented
tag "$name-$id"
OpenIKED treats the least significant bit of the reserved field of the generic payload header as the critical bit - this is incorrect according to the RFCs and according to a number of other implementations. Fix would involved defining the critical bit as 0x80
or 0x1 << 7
.
I had the ikesa and childsa at a different position, and the configuration file failed to parse. It was not obvious this was due to the order of the "sections".
This fails:
ikev2 test esp
from 10.0.1.0/24 to 10.0.2.0/24
local 1.2.3.4 peer 5.6.7.8
srcid foo dstid bar
ikesa enc aes-256 auth hmac-sha2-256 group esp256
childsa enc aes-128-gcm
psk test
tag FOO
but this works:
ikev2 test esp
from 10.0.1.0/24 to 10.0.2.0/24
local 1.2.3.4 peer 5.6.7.8
ikesa enc aes-256 auth hmac-sha2-256 group esp256
childsa enc aes-128-gcm
srcid foo dstid bar
psk test
tag FOO
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.