Volker Rümelin
6d3e7a64a0
IKEv1 support for PKCS#7 wrapped certificates
2013-01-11 10:21:56 +01:00
Volker Rümelin
10eee5fcba
Fixed some typos in comments
2013-01-11 10:21:51 +01:00
Tobias Brunner
97973f8609
Use a connection specific option to en-/disable IKEv1 fragmentation
2012-12-24 13:00:01 +01:00
Tobias Brunner
e645c15b9c
Include source port in init hash for fragmented messages
2012-12-24 12:29:31 +01:00
Tobias Brunner
2f62bb1549
Add an option to en-/disable IKE fragmentation
...
Fragments are always accepted but will not be sent if disabled. The
vendor ID is only sent if the option is enabled.
2012-12-24 12:29:31 +01:00
Tobias Brunner
5cafefcd5d
Split larger messages into fragments if IKE fragmentation is supported by peer
2012-12-24 12:29:31 +01:00
Tobias Brunner
c849305ad7
Log message size for in- and outbound IKE messages
2012-12-24 12:29:30 +01:00
Tobias Brunner
07df944c9c
Add support to create IKE fragments
...
All fragments currently use the same fragment ID (1) as that's what
other implementations are doing.
2012-12-24 12:29:30 +01:00
Tobias Brunner
c4daac2c0b
Log added NAT-T vendor IDs
2012-12-24 12:29:27 +01:00
Tobias Brunner
667720c801
Detect a peer's support for IKE fragmentation
...
Fragments are accepted even if this vendor ID is not seen.
2012-12-24 12:29:27 +01:00
Tobias Brunner
fe26ddada9
Map fragmented initial initial Main or Aggressive Mode messages to the same IKE_SA
2012-12-24 12:29:27 +01:00
Tobias Brunner
b816037739
Allow ID_PROT/AGGRESSIVE messages for established IKE_SAs if they contain fragments
...
Other implementations send fragments always in an initial message type
even for transaction or quick mode exchanges.
2012-12-24 12:29:27 +01:00
Tobias Brunner
8fc8383439
Don't handle fragmented messages larger than charon.max_packet
2012-12-24 12:29:27 +01:00
Tobias Brunner
7d85f94165
Don't update an IKE_SA-entry's cached message ID when handling fragments
2012-12-24 12:29:26 +01:00
Tobias Brunner
30216000d3
Store inbound IKE fragments and reassemble the message when all fragments are received
2012-12-24 12:29:26 +01:00
Tobias Brunner
9b1659f52c
Add message rules to properly handle IKE fragments
...
These are sent in unencrypted messages and are the only payload
contained in such messages.
2012-12-24 10:24:48 +01:00
Tobias Brunner
ddfad8b67e
Reset the encrypted flag when handling IKE messages that contain a fragment
...
Racoon sets the encrypted bit for messages containing a fragment, but these
messages are not really encrypted (the fragmented message is though).
2012-12-24 10:24:48 +01:00
Tobias Brunner
8f0ab6dd36
Payload added to handle IKE fragments
2012-12-24 10:24:48 +01:00
Martin Willi
656e01eab3
Add parantheses to avoid compiler warning
2012-12-24 10:12:23 +01:00
Andreas Steffen
9787b9f2e0
Send empty CDATA batch if TNC client has no data to send
2012-12-23 22:16:30 +01:00
Tobias Brunner
ef33a4ab82
Fixed some typos, courtesy of codespell
2012-12-20 09:35:26 +01:00
Adrian-Ken Rueegsegger
ba8b28b67f
Raise an alert if IKE SA is kept
...
This alert is raised when the establishment of a child SA fails but the
IKE SA is kept.
2012-12-20 09:15:07 +01:00
Volker Rümelin
0ff8d20a89
Add support for draft-ietf-ipsec-nat-t-ike-03 and earlier
...
This adds support for early versions of the draft that eventually
resulted in RFC 3947.
2012-12-19 11:03:42 +01:00
Martin Willi
32c3ac95e4
Add missing error_notify_msg.h to distribution tarball
2012-12-19 10:40:33 +01:00
Martin Willi
3044085006
Add an error-notify sample application to listen to error notifications
2012-12-19 10:40:33 +01:00
Martin Willi
0aaf5ccfa6
Add an error-notify plugin to send catched alerts to listening applications
2012-12-19 10:40:33 +01:00
Martin Willi
578f72ceb0
Raise an alert if half-open timeout limit reached
2012-12-19 10:40:33 +01:00
Martin Willi
c57fe7ac6f
Raise an alert if an authorize() hook fails
2012-12-19 10:40:33 +01:00
Martin Willi
45d6134218
Raise an alert if allocating virtual IPs fails
2012-12-19 10:40:33 +01:00
Martin Willi
f285b9efc8
Raise an alert if kernel policy installation fails
2012-12-19 10:40:33 +01:00
Martin Willi
bcf3147e0a
Raise an alert if kernel SA installation fails
2012-12-19 10:40:33 +01:00
Martin Willi
24f30ec92f
Raise an alert on traffic selector mismatch
2012-12-19 10:40:32 +01:00
Martin Willi
c794455666
Raise alerts when enforcing IKE_SA unique policy
2012-12-19 10:40:32 +01:00
Martin Willi
5dd9c3087f
Raise an alert if CHILD_SA proposals mismatch
2012-12-19 10:40:32 +01:00
Martin Willi
bab949bb26
Raise an alert if IKE proposals mismatch
2012-12-19 10:40:32 +01:00
Martin Willi
3f7f5388a5
Raise an alert of generating local authentication data fails
2012-12-19 10:40:32 +01:00
Tobias Brunner
0080daa787
Fix deadlock in IMC/IMV managers
...
Since reserve_id() might be called from e.g. notify_connection_change()
using a write lock will not work as this can't be acquired while holding
the read lock.
Also, with the previous code it was possible that two IMCs/IMVs added by
two threads at the same time would get the same ID assigned.
2012-12-18 15:59:29 +01:00
Tobias Brunner
6a8eeba540
Properly select IMC/IMV according to given primary ID in reserve_id()
2012-12-18 15:59:29 +01:00
Martin Willi
d9d0f12222
If load-tester requests a virtual IP, use a dynamic local traffic selector
2012-12-17 14:22:25 +01:00
Tobias Brunner
283898d6e0
Fix traffic selectors also as initiator in case of transport mode over NAT
2012-12-13 15:27:29 +01:00
Tobias Brunner
2990671748
Fix debug output if responder selected invalid traffic selectors during QM
2012-12-13 15:27:28 +01:00
Martin Willi
df75cc5c5f
Migrate RADIUS accounting state while IKE_SA unique id changes during rekey
2012-12-11 10:40:59 +01:00
Martin Willi
251b740712
Migrate cache and fire lookip events for unique_id change during IKE_SA rekey
2012-12-10 17:04:26 +01:00
Martin Willi
43b4c2ea75
Inherit virtual IP and attributes from old to new, not from new to old
2012-12-10 17:01:00 +01:00
Andreas Steffen
92e75e4535
optionally skip dlclose() of IMCs/IMVs in order to track memory leaks
2012-12-09 19:35:23 +01:00
Martin Willi
137ea41f45
Properly trigger ike_updown() event if IKEv1 DPD times out
...
Fixes missing RADIUS Accounting Stop, #257 .
2012-12-04 11:11:50 +01:00
Martin Willi
01bc9bf428
Fix GPL license header to properly "sed" it
2012-11-30 18:00:33 +01:00
Martin Willi
c543616315
Add locking to IMC/IMV managers to add/remove IMC/IMVs on the fly
2012-11-30 15:49:23 +01:00
Martin Willi
016d343a50
Add wrappers to IMC/IMV managers loading IMC/IMVs from function pointers
2012-11-30 15:48:20 +01:00
Martin Willi
be18ee8123
If adding an IMC/IMV fails, terminate() it only if it has been initialize()d
2012-11-30 15:48:13 +01:00