Martin Willi
e0d7c1eda7
Add a lookip plugin stub to lookup connections by virtual IP
2012-10-24 11:43:33 +02:00
Martin Willi
a19d591388
Add NEWS about stroke counters
2012-10-24 11:39:13 +02:00
Martin Willi
3202f4a381
Add "listcounters" command to ipsec.8 manpage
2012-10-24 11:34:31 +02:00
Martin Willi
0c4b9f7cda
Add a "ipsec listcounters" command to stroke
2012-10-24 11:34:31 +02:00
Martin Willi
f9332e0a8b
Add a print method for stroke counters
2012-10-24 11:34:31 +02:00
Martin Willi
2232d88569
Support field with specifiers in %N printf hook
2012-10-24 11:34:30 +02:00
Martin Willi
fc4d1568d1
Add stroke message type counters
2012-10-24 11:34:30 +02:00
Martin Willi
5715af7508
Add stroke counters for invalid IKE messages
2012-10-24 11:34:30 +02:00
Martin Willi
81e0e10344
Add stroke CHILD_SA rekeying counter
2012-10-24 11:34:30 +02:00
Martin Willi
a32a8d4a67
Add stroke IKE rekey counters
2012-10-24 11:34:30 +02:00
Martin Willi
418f4bc7a5
Raise a bus alert when IKE message body parsing fails
2012-10-24 11:34:30 +02:00
Martin Willi
2b95ab7620
Raise a bus alert when IKE message header parsing fails
2012-10-24 11:34:30 +02:00
Martin Willi
f6f16131d0
Raise a bus alert when a received message contains unknown SPIs
2012-10-24 11:34:30 +02:00
Martin Willi
47904e3c74
Define stroke counter types to implement
2012-10-24 11:34:11 +02:00
Martin Willi
8554895b95
Add a stub for IKE event counters in stroke
2012-10-24 11:34:11 +02:00
Martin Willi
b2265a2738
Add a load-tester option to define the IKE version to use for testing
2012-10-24 10:19:33 +02:00
Martin Willi
e19b23e0b9
Remove peer_cfg IKE version matching, as it is done in ike_cfg matching
2012-10-24 10:19:33 +02:00
Martin Willi
7910116384
Respect IKE version while selecting an ike_cfg as responder
2012-10-24 10:19:33 +02:00
Martin Willi
1fdd62ffce
Remove version argument on peer_cfg constructor, use ike_cfg version instead
2012-10-24 10:19:33 +02:00
Martin Willi
9fc7cc6f9b
Add IKE version information to ike_cfg_t
2012-10-24 10:18:35 +02:00
Martin Willi
cf62d073f1
Move ike_version_t definition from peer_cfg_t to ike_cfg_t
2012-10-24 10:17:36 +02:00
Martin Willi
a70851c941
Remove unused this parameter to load_issuer_cert/key(), as it is uninitialized
2012-10-16 14:11:14 +02:00
Martin Willi
c1024a6bd6
Generate a load-tester certificate only for DN or subjectAltName identities
2012-10-16 13:43:54 +02:00
Martin Willi
db97d67825
Add a load-tester initiator_match option to match custom initiator_id
2012-10-16 13:43:54 +02:00
Martin Willi
5359c7a437
Encode non-DN load-tester identities as subjectAltNames
2012-10-16 13:43:54 +02:00
Martin Willi
562b89ccee
Add a load-tester digest option for issuing peer certificates
2012-10-16 13:43:54 +02:00
Martin Willi
3f6e13f553
Load a multiple load-tester CA certificates from a directory
2012-10-16 13:43:54 +02:00
Martin Willi
24eb73b4fa
Added load-tester options to read issuing CA certificate and key from files
2012-10-16 13:43:53 +02:00
Martin Willi
7f3bf2b12f
Remove outdated TODO information
2012-10-10 13:10:28 +02:00
Martin Willi
82f3549fe2
Fix leak of PINs from ipsec.secrets
2012-10-09 11:54:00 +02:00
Martin Willi
565bfc08c6
Add a libfast sendfile() method to send files from disk
2012-10-02 15:37:36 +02:00
Martin Willi
9564f9eb6e
Include all dev headers, even if they are configuration specific
2012-10-02 11:39:55 +02:00
Martin Willi
f0a2fef8a5
In mem_pool, check for an existing ID entry before creating a new one
2012-09-20 11:04:55 +02:00
Martin Willi
a69bc12a3a
Merge branch 'unity'
...
Add Cisco Unity extension support implemented in a dedicated plugin.
2012-09-18 17:22:47 +02:00
Martin Willi
995a9c8a0a
Add a simple test case for the unity plugin, featuring both includes and excludes
2012-09-18 17:20:47 +02:00
Martin Willi
f728ae590b
Build unity plugin in strongSwan test suite
2012-09-18 17:17:49 +02:00
Martin Willi
cc48f36084
Add unity plugin NEWS
2012-09-18 17:17:49 +02:00
Martin Willi
55f126fd55
Update ipsec.conf.5, leftsubnet can handle multiple subnets in IKEv1 with Unity
2012-09-18 17:17:48 +02:00
Martin Willi
77c37ea5e0
As Unity responder, don't change the proposed TS at all, racoon doesn't like that
2012-09-18 17:17:48 +02:00
Martin Willi
336dd7a9c7
Don't complain about multiple TS in IKEv1, as it supported with Unity
2012-09-18 17:17:48 +02:00
Martin Willi
7a7deec283
As initiator, narrow received Unity attributes to configured TS
2012-09-18 17:17:48 +02:00
Martin Willi
b8db3775f3
When using Unity, bump up remote TS as initiator to 0.0.0.0/0, too
2012-09-18 17:17:48 +02:00
Martin Willi
284ed1b352
Enable Cisco Unity only if Unity vendor id received
2012-09-18 17:17:48 +02:00
Martin Willi
6e60807637
Exchange 0.0.0.0/0 traffic selectors with Unity, narrowing after exchange
2012-09-18 17:17:48 +02:00
Martin Willi
f2463f1bd6
Add a Unity attribute provider that adds Split-Includes for TS
2012-09-18 17:17:47 +02:00
Martin Willi
e39e697429
Check if subset calculation actually yields a TS in Unity narrowing
2012-09-18 17:17:47 +02:00
Martin Willi
92b5066705
Request Unity configuration attributes for IKEv1 only
2012-09-18 17:17:47 +02:00
Martin Willi
5ff012f717
Add Cisco Unity client support for Split-Include and Local-LAN
2012-09-18 17:17:47 +02:00
Martin Willi
56ea95195a
Add a road-warrior test case requesting both an IPv4 and an IPv6 virtual address
2012-09-18 17:11:03 +02:00
Martin Willi
7ee37114c9
Derive a dynamic TS to multiple virtual IPs
2012-09-18 17:11:03 +02:00
Martin Willi
abdb82fcc5
Use the vararg list constructor in quick mode task
2012-09-18 17:11:03 +02:00
Martin Willi
5f9d62fb91
Add a linked list constructor taking items from a vararg list
2012-09-18 17:11:02 +02:00
Martin Willi
ab2c989c32
Don't allow NULL encryption with PEAP
2012-09-12 13:19:52 +02:00
Martin Willi
acada66a35
Use memmove on overlapping regions, and operate with correct sizeof()
2012-09-12 13:19:52 +02:00
Martin Willi
fb3cf1b708
Whitespace cleanups in tls_eap
2012-09-12 13:19:52 +02:00
Martin Willi
5b96503e13
Use uintptr_t in mem pool to avoid compiler warning if sizeof(void*) != sizeof(int)
2012-09-12 13:19:52 +02:00
Martin Willi
d4cca1beea
Always send a configuration payload in IKEv1 TRANSACTIONs, even if it is empty
2012-09-11 17:20:17 +02:00
Martin Willi
c4acf37502
Don't use host address for dynamic TS in IKEv1 if a virtual IP was expected
2012-09-11 16:18:29 +02:00
Martin Willi
7d82aaea8d
Don't use host address for dynamic TS in IKEv2 if a virtual IP was expected
2012-09-11 16:18:28 +02:00
Martin Willi
4cb0783f3c
Don't return a subset for a dynamic TS unless set_address has been called
2012-09-11 16:18:28 +02:00
Martin Willi
c7294f7a58
Send FAILED_CP_REQUIRED if a configuration payload was expected, but not received
2012-09-11 16:18:28 +02:00
Martin Willi
1e04488f32
Check for an existing lease in all stroke pools before creating a new one
2012-09-11 16:18:28 +02:00
Martin Willi
28a3d5bfbd
Pass full pool list to release_address
2012-09-11 16:18:28 +02:00
Martin Willi
594c58e111
Pass the full list of pools to acquire_address, enumerate in providers
...
If the provider has access to the full pool list, it can enumerate
them twice, for example to search for existing leases first, and
only search for new leases in a second step.
Fixes lease enumeration in attr-sql using multiple pools.
2012-09-11 16:18:28 +02:00
Martin Willi
dc7b79d8a5
Add a linked list constructor initializing from an enumerator
2012-09-11 16:18:28 +02:00
Martin Willi
f942588f95
Add a responder narrow() hook to change TS in the kernel, but not on the wire
2012-09-11 16:14:39 +02:00
Martin Willi
cf85ebbfec
Support RADIUS accounting when using IKEv1 with xauth-eap and eap-radius
2012-09-11 15:22:22 +02:00
Martin Willi
37095ce1c1
Fix leak while enumerating RADIUS Framed-IPs from IKE_SA
2012-09-11 15:22:22 +02:00
Martin Willi
c51af950b1
Add random plugin options to strongswan.conf.5
2012-09-10 17:07:51 +02:00
Martin Willi
7b68cd9212
Add strongswan.conf runtime options for /dev/[u]random files
...
Fixes #221 .
2012-09-10 17:07:51 +02:00
Martin Willi
4c892fe533
In mode_config, destroy temporary pool list instead of the virtual IP list twice
2012-09-05 14:18:52 +02:00
Martin Willi
1323dc1138
Merge branch 'multi-vip'
...
Brings support for multiple virtual IPs and multiple pools in
left/rigthsourceip definitions. Also introduces the new left/rightdns
options to configure requested DNS server address family and respond
with multiple connection specific servers.
2012-08-31 12:55:56 +02:00
Martin Willi
69e056a2c1
Added multiple left/rightsourceip NEWS
2012-08-30 16:43:46 +02:00
Martin Willi
e76f3d0df7
Added NEWS for left/rightdns options
2012-08-30 16:43:45 +02:00
Martin Willi
26bc695806
Updated ipsec.conf.5 with multiple left/rightsourceip support
2012-08-30 16:43:45 +02:00
Martin Willi
2df155958c
Added a note to _updown for the new PLUTO_MY_SOURCEIP* variables
2012-08-30 16:43:45 +02:00
Martin Willi
7f52f621c2
Be less verbose if IP allocation for a single pool fails
2012-08-30 16:43:44 +02:00
Martin Willi
980c468cdc
DHCP plugin returns virtual IPs for IPv4 requests only
2012-08-30 16:43:44 +02:00
Martin Willi
769446a8c7
Check address family in HA virtual IP backend
2012-08-30 16:43:44 +02:00
Martin Willi
40e9089889
Strictly enforce address family match while acquiring mem_pool IPs
2012-08-30 16:43:44 +02:00
Martin Willi
13f11ccf46
Don't parse comma separated pool names in attr-sql
...
We now handle multiple pools at a deeper level, making that special
handling obsolete. Comma separated pools are parsed in stroke.
2012-08-30 16:43:44 +02:00
Martin Willi
7b83cc62e0
Handle comma separated pools as multiple pool names in SQL plugin
2012-08-30 16:43:43 +02:00
Martin Willi
b5d2bf975b
Request and acquire multiple virtual IPs in IKEv1 Mode Config
2012-08-30 16:43:43 +02:00
Martin Willi
61d6ccf51c
Request and acquire multiple virtual IPs in IKEv2 configuration payload
2012-08-30 16:43:43 +02:00
Martin Willi
d55fe264d1
Pass all configured pool names to attribute provider enumerator
2012-08-30 16:43:43 +02:00
Martin Willi
feb8550401
Pass a list instead of a single virtual IP to attribute enumerators
2012-08-30 16:43:42 +02:00
Martin Willi
96c2b3cf89
Support multiple addresses/pools in left/rightsourceip
2012-08-30 16:43:42 +02:00
Martin Willi
497ce2cf51
Support multiple address pools configured on a peer_cfg
2012-08-30 16:43:42 +02:00
Martin Willi
101d26babe
Support multiple virtual IPs on peer_cfg and ike_sa classes
2012-08-30 16:43:42 +02:00
Martin Willi
584c063e36
Ported tun_device initialization to OS X utun
2012-08-28 11:16:31 +02:00
Martin Willi
d8eec395b2
Add a getter for the mem_pool_t base address
2012-08-24 11:19:07 +02:00
Martin Willi
da646ab94a
Remove unused ipsec.conf left/rightnatip keyword
2012-08-21 09:38:01 +02:00
Martin Willi
2b08ae4524
Add description about DNS server variables to _updown
2012-08-21 09:38:01 +02:00
Martin Willi
e0d3014a17
Add a DNS attribute handler to updown, passing servers to updown script
2012-08-21 09:38:01 +02:00
Martin Willi
c60f1da424
Add a description of the leftdns option to ipsec.conf.5
2012-08-21 09:38:01 +02:00
Martin Willi
63e460542c
Add a stroke attribute_handler requesting DNS servers given with leftdns
2012-08-21 09:38:01 +02:00
Martin Willi
9937ca069a
Serve ipsec.conf rightdns servers through stroke attribute provider
2012-08-21 09:38:01 +02:00
Martin Willi
17319aa28d
Add a left/rightdns keyword to configure connection specific DNS attributes
2012-08-21 09:38:00 +02:00
Martin Willi
f26796deb5
Remove unused src/dst variables in send_no_marker()
2012-08-21 09:34:32 +02:00
Martin Willi
88a5abf5e2
Don't use POSIX semaphores if a MONOTONIC clock is available
...
POSIX semaphores use CLOCK_REALTIME, but our semaphore_t abstraction
expects CLOCK_MONOTONIC based times. Use the mutex/condvar based
fallback if time_monotonic() actuall returns monotonic times.
2012-08-20 18:01:20 +02:00