|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 02-Aug-2024 | - |
| sysdep/openbsd/ | H | 08-May-2022 | - | 133 | 90 |
| BUGS | H A D | 08-May-2022 | 1.8 KiB | 53 | 32 |
| DESIGN-NOTES | H A D | 08-May-2022 | 16 KiB | 415 | 337 |
| Makefile | H A D | 08-May-2022 | 3.5 KiB | 93 | 38 |
| QUESTIONS | H A D | 08-May-2022 | 1.7 KiB | 35 | 27 |
| README | H A D | 08-May-2022 | 3.3 KiB | 69 | 55 |
| TO-DO | H A D | 08-May-2022 | 3.6 KiB | 146 | 78 |
| app.c | H A D | 08-May-2022 | 2.1 KiB | 66 | 21 |
| app.h | H A D | 03-Jun-2024 | 1.7 KiB | 42 | 7 |
| attribute.c | H A D | 08-May-2022 | 3.6 KiB | 112 | 67 |
| attribute.h | H A D | 08-May-2022 | 2 KiB | 48 | 12 |
| cert.c | H A D | 08-May-2022 | 4.3 KiB | 165 | 105 |
| cert.h | H A D | 08-May-2022 | 3.7 KiB | 102 | 40 |
| conf.c | H A D | 08-May-2022 | 27.7 KiB | 1,042 | 811 |
| conf.h | H A D | 08-May-2022 | 4 KiB | 106 | 56 |
| connection.c | H A D | 08-May-2022 | 12 KiB | 451 | 316 |
| connection.h | H A D | 08-May-2022 | 2.1 KiB | 52 | 12 |
| constants.c | H A D | 08-May-2022 | 2.8 KiB | 98 | 55 |
| constants.h | H A D | 08-May-2022 | 2 KiB | 48 | 13 |
| cookie.c | H A D | 08-May-2022 | 2.7 KiB | 74 | 31 |
| cookie.h | H A D | 08-May-2022 | 1.7 KiB | 45 | 9 |
| crypto.c | H A D | 08-May-2022 | 8.7 KiB | 333 | 250 |
| crypto.h | H A D | 08-May-2022 | 5.1 KiB | 142 | 79 |
| dh.c | H A D | 19-Apr-2023 | 17.6 KiB | 628 | 522 |
| dh.h | H A D | 08-May-2022 | 1.7 KiB | 63 | 35 |
| dnssec.c | H A D | 08-May-2022 | 7.6 KiB | 291 | 208 |
| dnssec.h | H A D | 27-Oct-2024 | 1.6 KiB | 40 | 10 |
| doi.c | H A D | 08-May-2022 | 1.9 KiB | 60 | 22 |
| doi.h | H A D | 08-May-2022 | 3.8 KiB | 100 | 55 |
| dpd.c | H A D | 08-May-2022 | 10.2 KiB | 381 | 267 |
| dpd.h | H A D | 08-May-2022 | 1.6 KiB | 40 | 10 |
| exchange.c | H A D | 08-May-2022 | 52.4 KiB | 1,861 | 1,365 |
| exchange.h | H A D | 08-May-2022 | 9.1 KiB | 255 | 97 |
| exchange_num.cst | H A D | 08-May-2022 | 1.8 KiB | 43 | 39 |
| field.c | H A D | 08-May-2022 | 6.1 KiB | 238 | 149 |
| field.h | H A D | 08-May-2022 | 2.1 KiB | 55 | 19 |
| genconstants.sh | H A D | 08-May-2022 | 2.7 KiB | 113 | 67 |
| genfields.sh | H A D | 08-May-2022 | 4.1 KiB | 184 | 135 |
| hash.c | H A D | 07-Jan-2025 | 4.9 KiB | 165 | 99 |
| hash.h | H A D | 07-Jan-2025 | 2.7 KiB | 77 | 35 |
| if.c | H A D | 08-May-2022 | 2 KiB | 60 | 23 |
| if.h | H A D | 03-Jun-2024 | 1.6 KiB | 42 | 6 |
| ike_aggressive.c | H A D | 08-May-2022 | 5.2 KiB | 178 | 96 |
| ike_aggressive.h | H A D | 08-May-2022 | 1.7 KiB | 41 | 6 |
| ike_auth.c | H A D | 08-May-2022 | 31 KiB | 1,165 | 953 |
| ike_auth.h | H A D | 08-May-2022 | 1.9 KiB | 49 | 12 |
| ike_main_mode.c | H A D | 08-May-2022 | 3.5 KiB | 122 | 70 |
| ike_main_mode.h | H A D | 08-May-2022 | 1.7 KiB | 41 | 6 |
| ike_phase_1.c | H A D | 08-May-2022 | 40 KiB | 1,434 | 1,109 |
| ike_phase_1.h | H A D | 03-Jun-2024 | 2.5 KiB | 53 | 19 |
| ike_quick_mode.c | H A D | 19-Apr-2023 | 58.4 KiB | 2,022 | 1,567 |
| ike_quick_mode.h | H A D | 08-May-2022 | 1.7 KiB | 41 | 6 |
| init.c | H A D | 08-May-2022 | 3.6 KiB | 142 | 62 |
| init.h | H A D | 08-May-2022 | 1.6 KiB | 39 | 5 |
| ipsec.c | H A D | 12-Jan-2024 | 67.5 KiB | 2,631 | 2,032 |
| ipsec.h | H A D | 08-May-2022 | 5 KiB | 172 | 93 |
| ipsec_doi.h | H A D | 08-May-2022 | 1.8 KiB | 45 | 7 |
| ipsec_fld.fld | H A D | 08-May-2022 | 2.4 KiB | 61 | 55 |
| ipsec_num.cst | H A D | 08-May-2022 | 5.6 KiB | 274 | 247 |
| isakmp.h | H A D | 08-May-2022 | 2.4 KiB | 65 | 19 |
| isakmp_cfg.c | H A D | 08-May-2022 | 26.7 KiB | 980 | 764 |
| isakmp_cfg.h | H A D | 08-May-2022 | 1.9 KiB | 54 | 16 |
| isakmp_doi.c | H A D | 08-May-2022 | 7 KiB | 267 | 189 |
| isakmp_doi.h | H A D | 08-May-2022 | 1.6 KiB | 38 | 4 |
| isakmp_fld.fld | H A D | 08-May-2022 | 3.7 KiB | 165 | 142 |
| isakmp_num.cst | H A D | 08-May-2022 | 6.3 KiB | 263 | 246 |
| isakmpd.8 | H A D | 08-May-2022 | 21 KiB | 828 | 827 |
| isakmpd.c | H A D | 08-Mar-2023 | 11.9 KiB | 533 | 334 |
| isakmpd.conf.5 | H A D | 09-Aug-2023 | 37 KiB | 1,394 | 1,287 |
| isakmpd.policy.5 | H A D | 08-May-2022 | 22.4 KiB | 637 | 615 |
| key.c | H A D | 08-May-2022 | 4.2 KiB | 183 | 142 |
| key.h | H A D | 08-May-2022 | 1.5 KiB | 40 | 14 |
| libcrypto.h | H A D | 08-May-2022 | 1.8 KiB | 47 | 11 |
| log.c | H A D | 29-Apr-2024 | 16.5 KiB | 697 | 531 |
| log.h | H A D | 08-May-2022 | 3.6 KiB | 98 | 47 |
| message.c | H A D | 08-May-2022 | 72.4 KiB | 2,516 | 1,857 |
| message.h | H A D | 03-Jun-2024 | 6.3 KiB | 204 | 73 |
| monitor.c | H A D | 08-Feb-2023 | 18.2 KiB | 885 | 667 |
| monitor.h | H A D | 08-May-2022 | 2.4 KiB | 67 | 31 |
| monitor_fdpass.c | H A D | 08-May-2022 | 3.2 KiB | 120 | 83 |
| nat_traversal.c | H A D | 08-May-2022 | 11.5 KiB | 437 | 305 |
| nat_traversal.h | H A D | 08-May-2022 | 2 KiB | 56 | 21 |
| pf_key_v2.c | H A D | 07-Aug-2023 | 88 KiB | 3,370 | 2,692 |
| pf_key_v2.h | H A D | 08-May-2022 | 2.5 KiB | 63 | 26 |
| policy.c | H A D | 29-Apr-2024 | 60 KiB | 2,315 | 1,920 |
| policy.h | H A D | 03-Jun-2024 | 2.8 KiB | 67 | 31 |
| prf.c | H A D | 08-May-2022 | 4.3 KiB | 159 | 100 |
| prf.h | H A D | 08-May-2022 | 2.3 KiB | 59 | 20 |
| sa.c | H A D | 08-May-2022 | 34 KiB | 1,401 | 990 |
| sa.h | H A D | 07-Aug-2023 | 9.1 KiB | 317 | 137 |
| timer.c | H A D | 08-May-2022 | 3.9 KiB | 141 | 95 |
| timer.h | H A D | 08-May-2022 | 2.1 KiB | 56 | 19 |
| transport.c | H A D | 08-May-2022 | 11.6 KiB | 415 | 249 |
| transport.h | H A D | 08-May-2022 | 5.3 KiB | 162 | 52 |
| udp.c | H A D | 08-May-2022 | 13.9 KiB | 546 | 402 |
| udp.h | H A D | 08-May-2022 | 1.9 KiB | 52 | 15 |
| udp_encap.c | H A D | 08-May-2022 | 12.3 KiB | 461 | 335 |
| udp_encap.h | H A D | 08-May-2022 | 1.6 KiB | 37 | 6 |
| ui.c | H A D | 08-May-2022 | 14.7 KiB | 642 | 495 |
| ui.h | H A D | 08-May-2022 | 1.8 KiB | 47 | 11 |
| util.c | H A D | 08-May-2022 | 13.4 KiB | 597 | 459 |
| util.h | H A D | 08-May-2022 | 2.7 KiB | 67 | 28 |
| vendor.c | H A D | 08-May-2022 | 3.6 KiB | 140 | 104 |
| vendor.h | H A D | 08-May-2022 | 1 KiB | 27 | 8 |
| virtual.c | H A D | 08-May-2022 | 19.9 KiB | 750 | 558 |
| virtual.h | H A D | 08-May-2022 | 1.8 KiB | 43 | 13 |
| x509.c | H A D | 29-Apr-2024 | 33.3 KiB | 1,383 | 1,087 |
| x509.h | H A D | 08-May-2022 | 3.4 KiB | 92 | 41 |
README
1$OpenBSD: README,v 1.20 2016/09/02 12:17:32 tb Exp $
2$EOM: README,v 1.28 1999/10/10 22:53:24 angelos Exp $
3
4This is isakmpd, a BSD-licensed ISAKMP/Oakley (a.k.a. IKE)
5implementation. It's written by Niklas Hallqvist and Niels Provos,
6funded by Ericsson Radio Systems AB. Isakmpd's home is in the
7OpenBSD main source tree under src/sbin/isakmpd. Look at
8https://www.openbsd.org/ for details on how to get OpenBSD source.
9
10Isakmpd is being developed under OpenBSD, with OpenBSD as its primary
11target, however, it is ported to Linux with FreeS/WAN IPsec. The
12makefile support assumes a BSD environment nonetheless as it is not too
13hard to get such an environment to work under other operating systems.
14For example, Red Hat 5.2 shipped with pmake installed. Read sysdep/README
15for further details about this issue. Other systems isakmpd has been
16ported to, but no code has been made available for, includes Solaris
17and Win32s. I mention this just because it shows that the code is
18fairly portable.
19
20First edit the Makefile in a manner you see fit. Specifically the OS
21define is important to get right of course.
22Assuming you have an OpenBSD /usr/share/mk and use the OpenBSD (or
23similar) make(1), you build isakmpd this way:
24
25make obj && make depend && make
26
27Then obj/isakmpd will be the daemon. I suggest you try it by running
28under gdb with args similar to:
29 -d -n -p5000 -DA=99 -f/tmp/isakmpd.fifo -csamples/VPN-east.conf
30
31That will run isakmpd in the foreground, not connected to any application
32(like an IPsec implementation) logging to stderr with full debugging output,
33listening on UDP port 5000, accepting control commands via the named pipe
34called /tmp/isakmpd.fifo and reading its configuration from the
35VPN-east.conf file (found in the isakmpd/samples directory).
36
37If you are root you can try to run without -n -p5000 thus getting it to
38talk to your IPsec stack and use the standard port 500 instead.
39
40The logging classes are Miscellaneous = 0, Transports = 1, Messages = 2,
41Crypto = 3, Timers = 4, System Dependencies = 5, Security Associations = 6,
42and Exchanges = 7. The debug levels increase in verbosity from 0 (off) to
4399 (max). Read log.[ch] and ui.c to see how to alter the debugging levels.
44
45Now you have setup your daemon and can watch incoming negotiations.
46But how do you get such? Either use http://isakmp-test.ssh.fi/,
47there's an excellent service, just waiting for you. Or you can try to
48start another isakmpd on another port (say -p5001 or so, instead)
49and another fifo (let's say /tmp/other.fifo). Then edit the config
50file to have some peer descriptions that fit your need and issue a
51command like this:
52
53$ echo "c IPsec-east-west" >/tmp/other.fifo
54
55and watch. You can turn on debugging on that isakmpd too of course, for
56greater fun. This rudimentary user interface is slightly described in
57DESIGN-NOTES. If you are going to look at the config file, don't be scared,
58the man page isakmpd.conf(5) covers every detail, and the flexibility will
59be hidden under a userfriendlier layer in a later release. I did this
60first config-file syntax just because it should be easy to parse. The man
61page isakmpd.policy(5) describes the policy model used in conjunction with
62KeyNote.
63
64Happy IKEing!
65
66Niklas Hallqvist <niklas@openbsd.org>
67Niels Provos <provos@openbsd.org>
68H�kan Olsson <ho@openbsd.org>
69