]> git.ipfire.org Git - thirdparty/strongswan.git/log
thirdparty/strongswan.git
12 years agoRemove the constructor from the IMV agent interface
Andreas Steffen [Wed, 29 May 2013 22:08:38 +0000 (00:08 +0200)] 
Remove the constructor from the IMV agent interface

12 years agoDefined a generic IMV agent interface
Andreas Steffen [Wed, 29 May 2013 22:06:12 +0000 (00:06 +0200)] 
Defined a generic IMV agent interface

12 years agoMoved all functionality into imv_os_agent_t class turning imv_os_t into an IF-IMV...
Andreas Steffen [Wed, 29 May 2013 21:21:04 +0000 (23:21 +0200)] 
Moved all functionality into imv_os_agent_t class turning imv_os_t into an IF-IMV skeleton

12 years agoMoved batch_ending into separate source file
Andreas Steffen [Mon, 27 May 2013 05:41:58 +0000 (07:41 +0200)] 
Moved batch_ending into separate source file

12 years agodo not process workitems with NULL result
Andreas Steffen [Fri, 24 May 2013 14:56:42 +0000 (16:56 +0200)] 
do not process workitems with NULL result

12 years agofixed enumeration of workitems for a given session
Andreas Steffen [Fri, 24 May 2013 10:51:56 +0000 (12:51 +0200)] 
fixed enumeration of workitems for a given session

12 years agogenerate workitems based on group policy
Andreas Steffen [Thu, 23 May 2013 20:12:10 +0000 (22:12 +0200)] 
generate workitems based on group policy

12 years agoAdded file and directory reference measurements to workitems
Andreas Steffen [Thu, 23 May 2013 13:30:55 +0000 (15:30 +0200)] 
Added file and directory reference measurements to workitems

12 years agoadd overall recommendation to session database entry
Andreas Steffen [Sun, 19 May 2013 10:43:55 +0000 (12:43 +0200)] 
add overall recommendation to session database entry

12 years agodon't define a default database URI
Andreas Steffen [Fri, 17 May 2013 20:32:04 +0000 (22:32 +0200)] 
don't define a default database URI

12 years agocreated a simple IMV Policy Manager
Andreas Steffen [Fri, 17 May 2013 19:38:54 +0000 (21:38 +0200)] 
created a simple IMV Policy Manager

12 years agoregister received scanner attributes
Andreas Steffen [Fri, 17 May 2013 19:38:21 +0000 (21:38 +0200)] 
register received scanner attributes

12 years agoused tnc_policy_update functions for default policy
Andreas Steffen [Fri, 17 May 2013 19:36:11 +0000 (21:36 +0200)] 
used tnc_policy_update functions for default policy

12 years agorefactored IMV policy management
Andreas Steffen [Thu, 16 May 2013 21:07:24 +0000 (23:07 +0200)] 
refactored IMV policy management

12 years agoimplemented policy rules for OS IMV
Andreas Steffen [Mon, 13 May 2013 22:21:56 +0000 (00:21 +0200)] 
implemented policy rules for OS IMV

12 years agocheck for zero-length device ID
Andreas Steffen [Sun, 5 May 2013 08:13:13 +0000 (10:13 +0200)] 
check for zero-length device ID

12 years agoITA-HSR/Device ID attribute & IMV OS state machine
Andreas Steffen [Sat, 4 May 2013 19:06:36 +0000 (21:06 +0200)] 
ITA-HSR/Device ID attribute & IMV OS state machine

12 years agoexecute an _imv_policy script
Andreas Steffen [Thu, 2 May 2013 20:15:12 +0000 (22:15 +0200)] 
execute an _imv_policy script

12 years agoimplemented IMV session control
Andreas Steffen [Sun, 28 Apr 2013 20:47:09 +0000 (22:47 +0200)] 
implemented IMV session control

12 years agoManage files and directories
Andreas Steffen [Mon, 22 Apr 2013 22:06:34 +0000 (00:06 +0200)] 
Manage files and directories

12 years agoMerge branch 'kernel-libipsec'
Tobias Brunner [Fri, 21 Jun 2013 15:03:35 +0000 (17:03 +0200)] 
Merge branch 'kernel-libipsec'

Adds a new kernel interface plugin that uses TUN devices and libipsec to
provide IPsec process in userland.

It works on Linux, FreeBSD and Mac OS X.  In particular the latter two
platforms may gain from this approach as their respective kernels don't
provide support for AES-GCM.

kernel-pfroute has been improved (source address lookup) and a second
plugin (osx-attr) installs configuration attributes (currently DNS
servers only) via SystemConfiguration on Mac OS X.

12 years agoosx-attr: add plugin installing config attributes using SystemConfiguration
Martin Willi [Wed, 15 May 2013 13:56:17 +0000 (15:56 +0200)] 
osx-attr: add plugin installing config attributes using SystemConfiguration

Currently installs DNS servers only, by prepending IP addresses to the
DNS configuration of the primary networking service.

12 years agokernel-pfroute: Simplify route lookup after fixing sockaddr parsing
Tobias Brunner [Tue, 18 Jun 2013 16:06:46 +0000 (18:06 +0200)] 
kernel-pfroute: Simplify route lookup after fixing sockaddr parsing

12 years agokernel-pfroute: Alignment of sockaddrs is not always the same
Tobias Brunner [Tue, 18 Jun 2013 15:50:51 +0000 (17:50 +0200)] 
kernel-pfroute: Alignment of sockaddrs is not always the same

12 years agokernel-pfroute: struct sockaddr arguments are 4 byte aligned
Tobias Brunner [Tue, 18 Jun 2013 14:55:03 +0000 (16:55 +0200)] 
kernel-pfroute: struct sockaddr arguments are 4 byte aligned

This was noticed on Mac OS X where, if the default route is returned,
RTA_NETMASK has sa_len set to 0, but skipping zero bytes to read the
next address makes no sense, of course.  Using 0 for sa_len seems
a bit strange, in particular, because struct sockaddr has by definition
a minimum length of 16 bytes.  But it seems FreeBSD actually does the
same.

12 years agokernel-libipsec: Ignore failures when installing routes for multicast or broadcast...
Tobias Brunner [Mon, 17 Jun 2013 19:51:23 +0000 (21:51 +0200)] 
kernel-libipsec: Ignore failures when installing routes for multicast or broadcast policies

12 years agokernel-pfroute: Improve route lookup depending on information we get back
Tobias Brunner [Mon, 17 Jun 2013 13:56:44 +0000 (15:56 +0200)] 
kernel-pfroute: Improve route lookup depending on information we get back

Kernels don't provide the same information for all routes.

12 years agokernel-pfroute: Try to ensure we get a source address or interface name
Tobias Brunner [Mon, 17 Jun 2013 13:38:35 +0000 (15:38 +0200)] 
kernel-pfroute: Try to ensure we get a source address or interface name

12 years agoike: Force NAT-T/UDP encapsulation if kernel interface requires it
Tobias Brunner [Mon, 17 Jun 2013 08:23:04 +0000 (10:23 +0200)] 
ike: Force NAT-T/UDP encapsulation if kernel interface requires it

12 years agokernel-libipsec: Add a feature to request UDP encapsulation of ESP packets
Tobias Brunner [Mon, 17 Jun 2013 08:13:56 +0000 (10:13 +0200)] 
kernel-libipsec: Add a feature to request UDP encapsulation of ESP packets

12 years agotun-device: Packets sent over utun devices on Mac OS X have the protocol family prepended
Tobias Brunner [Sun, 16 Jun 2013 18:05:08 +0000 (20:05 +0200)] 
tun-device: Packets sent over utun devices on Mac OS X have the protocol family prepended

12 years agokernel-pfroute: Use DST as nexthop for host routes
Tobias Brunner [Sun, 16 Jun 2013 16:59:13 +0000 (18:59 +0200)] 
kernel-pfroute: Use DST as nexthop for host routes

These are created as cache/clone on Mac OS X.

12 years agokernel-pfroute: Implement get_source_addr()
Tobias Brunner [Sun, 16 Jun 2013 09:40:16 +0000 (11:40 +0200)] 
kernel-pfroute: Implement get_source_addr()

12 years agokernel-pfroute: Properly install routes with interface and gateway
Tobias Brunner [Sun, 16 Jun 2013 08:49:25 +0000 (10:49 +0200)] 
kernel-pfroute: Properly install routes with interface and gateway

12 years agokernel-libipsec: Install a gateway for routes on platforms other than Linux
Tobias Brunner [Sun, 16 Jun 2013 08:47:39 +0000 (10:47 +0200)] 
kernel-libipsec: Install a gateway for routes on platforms other than Linux

This seems required e.g. on FreeBSD but doesn't work on Linux.

12 years agokernel-pfroute: Activate TUN device before setting address
Tobias Brunner [Sat, 15 Jun 2013 16:56:11 +0000 (18:56 +0200)] 
kernel-pfroute: Activate TUN device before setting address

On FreeBSD, for some reason, we don't learn the interface is up
otherwise.  Even though ifconfig lists it as up at the same time.

12 years agotun-device: Avoid opening /dev/tunX multiple times (e.g. on FreeBSD)
Tobias Brunner [Sat, 15 Jun 2013 15:46:25 +0000 (17:46 +0200)] 
tun-device: Avoid opening /dev/tunX multiple times (e.g. on FreeBSD)

12 years agokernel-libipsec: Router reads packets from multiple TUN devices
Tobias Brunner [Sat, 15 Jun 2013 14:21:08 +0000 (16:21 +0200)] 
kernel-libipsec: Router reads packets from multiple TUN devices

These devices are collected via kernel_listener_t interface.

12 years agokernel-libipsec: Use separate class to route packets between charon, libipsec and...
Tobias Brunner [Sat, 15 Jun 2013 12:21:34 +0000 (14:21 +0200)] 
kernel-libipsec: Use separate class to route packets between charon, libipsec and TUN device

12 years agokernel-pfroute: Raise tun event when creating/destroying TUN devices for virtual IPs
Tobias Brunner [Thu, 13 Jun 2013 15:51:16 +0000 (17:51 +0200)] 
kernel-pfroute: Raise tun event when creating/destroying TUN devices for virtual IPs

12 years agokernel: Add an event kernel interfaces can raise if they create/destroy a TUN device
Tobias Brunner [Thu, 13 Jun 2013 15:03:17 +0000 (17:03 +0200)] 
kernel: Add an event kernel interfaces can raise if they create/destroy a TUN device

12 years agoprintf-hook: Avoid double-free when freeing Vstr config
Tobias Brunner [Wed, 12 Jun 2013 14:13:32 +0000 (16:13 +0200)] 
printf-hook: Avoid double-free when freeing Vstr config

Thread-specific objects get freed when the thread value object is
destroyed (wasn't the case earlier, i.e. before 2b19dd35), which
may cause the second call to vstr_free_conf() to fail in an assert
in Vstr (depending on how it was built).

12 years agokernel-libipsec: Track policies and automatically install routes
Tobias Brunner [Tue, 11 Jun 2013 16:53:28 +0000 (18:53 +0200)] 
kernel-libipsec: Track policies and automatically install routes

The routes direct traffic matching the remote traffic selector to the
TUN device.

If the remote traffic selector includes the IKE peer a very specific route
is installed to allow IKE traffic.

12 years agokernel-libipsec: Handle packets between charon socket, libipsec and TUN device
Tobias Brunner [Tue, 11 Jun 2013 16:52:23 +0000 (18:52 +0200)] 
kernel-libipsec: Handle packets between charon socket, libipsec and TUN device

12 years agokernel-libipsec: Create a TUN device and use it to install virtual IPs
Tobias Brunner [Tue, 11 Jun 2013 16:47:55 +0000 (18:47 +0200)] 
kernel-libipsec: Create a TUN device and use it to install virtual IPs

12 years agokernel-libipsec: Add plugin that implements kernel_ipsec_t using libipsec
Tobias Brunner [Tue, 11 Jun 2013 16:43:01 +0000 (18:43 +0200)] 
kernel-libipsec: Add plugin that implements kernel_ipsec_t using libipsec

12 years agokernel-netlink: Routes don't require a gateway/nexthop
Tobias Brunner [Tue, 11 Jun 2013 14:05:40 +0000 (16:05 +0200)] 
kernel-netlink: Routes don't require a gateway/nexthop

12 years agocharon-cmd: Document auxiliary options
Tobias Brunner [Fri, 21 Jun 2013 14:58:16 +0000 (16:58 +0200)] 
charon-cmd: Document auxiliary options

12 years agocharon-cmd: Link strongswan.conf(5) and charon-cmd(8) man pages
Tobias Brunner [Fri, 21 Jun 2013 14:35:19 +0000 (16:35 +0200)] 
charon-cmd: Link strongswan.conf(5) and charon-cmd(8) man pages

12 years agocharon-cmd: Use fixed number of character to align command descriptions
Tobias Brunner [Thu, 20 Jun 2013 20:01:42 +0000 (22:01 +0200)] 
charon-cmd: Use fixed number of character to align command descriptions

If the command and argument is longer than that write the first line of
description to the following line.

12 years agocharon-cmd: Shortened and fixed command descriptions
Tobias Brunner [Thu, 20 Jun 2013 19:54:11 +0000 (21:54 +0200)] 
charon-cmd: Shortened and fixed command descriptions

12 years agocharon-cmd: Simplify usage output for authentication profiles
Tobias Brunner [Thu, 20 Jun 2013 19:35:34 +0000 (21:35 +0200)] 
charon-cmd: Simplify usage output for authentication profiles

The man page describes the min full.

12 years agocharon-cmd: Add Aggressive Mode profiles to man page
Tobias Brunner [Thu, 20 Jun 2013 19:15:56 +0000 (21:15 +0200)] 
charon-cmd: Add Aggressive Mode profiles to man page

12 years agocharon-cmd: Add man page for charon-cmd(8)
Tobias Brunner [Sun, 16 Jun 2013 17:06:40 +0000 (19:06 +0200)] 
charon-cmd: Add man page for charon-cmd(8)

12 years agocharon-cmd: Add --debug argument to set the default log level
Tobias Brunner [Fri, 21 Jun 2013 13:55:52 +0000 (15:55 +0200)] 
charon-cmd: Add --debug argument to set the default log level

12 years agocharon-cmd: Handle simple command line arguments like --help before the others
Tobias Brunner [Fri, 21 Jun 2013 13:41:12 +0000 (15:41 +0200)] 
charon-cmd: Handle simple command line arguments like --help before the others

12 years agoplugin-loader: Move logging of failed features to status()
Tobias Brunner [Fri, 21 Jun 2013 12:46:17 +0000 (14:46 +0200)] 
plugin-loader: Move logging of failed features to status()

Still log an error message if critical features fail, as loaded
plugins/features are not logged in that case.

This way loaded plugins are printed before failed features and
the relation is easier to make for users.  It also allows programs
to log this message on a different level.

12 years agoplugin-loader: Add method to print loaded plugins on a given log level
Tobias Brunner [Fri, 21 Jun 2013 12:45:38 +0000 (14:45 +0200)] 
plugin-loader: Add method to print loaded plugins on a given log level

12 years agoplugin-loader: Collect statistics while loading features, print them in case features...
Tobias Brunner [Thu, 20 Jun 2013 18:49:42 +0000 (20:49 +0200)] 
plugin-loader: Collect statistics while loading features, print them in case features failed to load

There is no need to explicitly search for failed features in critical
plugins as this is now detected while loading the features.

12 years agoplugin-loader: Use different log level if failed feature is in critical plugin
Tobias Brunner [Thu, 20 Jun 2013 18:36:15 +0000 (20:36 +0200)] 
plugin-loader: Use different log level if failed feature is in critical plugin

12 years agoplugin-loader: Log message when failing to load plugin
Tobias Brunner [Thu, 20 Jun 2013 18:33:53 +0000 (20:33 +0200)] 
plugin-loader: Log message when failing to load plugin

12 years agoplugin-loader: Reduce verbosity while loading plugins
Tobias Brunner [Thu, 20 Jun 2013 18:27:45 +0000 (20:27 +0200)] 
plugin-loader: Reduce verbosity while loading plugins

12 years agoFix crash if the initiator has no suitable proposal available
Tobias Brunner [Fri, 26 Apr 2013 13:36:42 +0000 (15:36 +0200)] 
Fix crash if the initiator has no suitable proposal available

Could be triggered with a typo in the ike or esp options when ! is used.

12 years agoMerge branch 'unit-tests-ecdsa'
Martin Willi [Fri, 21 Jun 2013 08:39:16 +0000 (10:39 +0200)] 
Merge branch 'unit-tests-ecdsa'

Adds support for testing plugin functionality to test-runner. Introduces some
good/bad tests for ECDSA/RSA which would have caught those RSA/ECDSA signature
vulnerabilities.

12 years agoleak-detective: (re-)whitelist some OpenSSL functions
Martin Willi [Thu, 20 Jun 2013 08:06:07 +0000 (10:06 +0200)] 
leak-detective: (re-)whitelist some OpenSSL functions

Some static allocations in plugins won't get freed, because in the test case
process the plugins are not destroyed. If a plugin would clean up allocations
done while just using the plugin, these show up as leak in the child process,
letting tests fail.

12 years agounit-tests: load plugins in test-runner from build directory
Martin Willi [Thu, 20 Jun 2013 07:34:18 +0000 (09:34 +0200)] 
unit-tests: load plugins in test-runner from build directory

12 years agounit-tests: link test-runner against -lpthread
Martin Willi [Wed, 19 Jun 2013 13:37:49 +0000 (15:37 +0200)] 
unit-tests: link test-runner against -lpthread

12 years agounit-tester: remove obsolete rsa_gen test, now covered in unit-tests
Martin Willi [Wed, 19 Jun 2013 13:50:04 +0000 (15:50 +0200)] 
unit-tester: remove obsolete rsa_gen test, now covered in unit-tests

12 years agounit-tests: add RSA test cases, very similar to ECDSA
Martin Willi [Wed, 19 Jun 2013 13:33:47 +0000 (15:33 +0200)] 
unit-tests: add RSA test cases, very similar to ECDSA

12 years agounit-tests: test with /dev/urandom if random plugin is in use
Martin Willi [Wed, 19 Jun 2013 13:32:19 +0000 (15:32 +0200)] 
unit-tests: test with /dev/urandom if random plugin is in use

12 years agounit-tests: test supported ECDSA schemes only
Martin Willi [Wed, 19 Jun 2013 13:31:25 +0000 (15:31 +0200)] 
unit-tests: test supported ECDSA schemes only

12 years agoMove test-runners has_feature() function to plugin loader
Martin Willi [Wed, 19 Jun 2013 12:52:52 +0000 (14:52 +0200)] 
Move test-runners has_feature() function to plugin loader

12 years agounit-tests: enforce CET/CEST timezone to properly test non-UTC time formatting
Martin Willi [Tue, 11 Jun 2013 16:31:35 +0000 (18:31 +0200)] 
unit-tests: enforce CET/CEST timezone to properly test non-UTC time formatting

12 years agounit-tests: don't use ck_assert() to test a cleared chunk, as it allocates data
Martin Willi [Tue, 11 Jun 2013 16:29:49 +0000 (18:29 +0200)] 
unit-tests: don't use ck_assert() to test a cleared chunk, as it allocates data

The new allocation might be in the freed area, affecting the test result.

12 years agounit-tests: define 64-bit constats with ULL, fixing compiler warning on 32-bit
Martin Willi [Tue, 11 Jun 2013 15:45:45 +0000 (17:45 +0200)] 
unit-tests: define 64-bit constats with ULL, fixing compiler warning on 32-bit

12 years agoLimit cleanup of .gc{no,da} files to src and scripts subfolders
Martin Willi [Tue, 11 Jun 2013 15:27:40 +0000 (17:27 +0200)] 
Limit cleanup of .gc{no,da} files to src and scripts subfolders

Other folders in the build tree might not be related to the strongSwan tree,
or are not even accessible.

12 years agounit-tests: test some zeroed ECDSA signatures that never should succeed
Martin Willi [Tue, 9 Apr 2013 14:00:19 +0000 (16:00 +0200)] 
unit-tests: test some zeroed ECDSA signatures that never should succeed

12 years agounit-tests: perform signing/validation with keys ECDSA keys generated or loaded
Martin Willi [Tue, 9 Apr 2013 13:49:09 +0000 (15:49 +0200)] 
unit-tests: perform signing/validation with keys ECDSA keys generated or loaded

12 years agounit-tests: add an ECDSA test case loading keys
Martin Willi [Tue, 9 Apr 2013 13:31:43 +0000 (15:31 +0200)] 
unit-tests: add an ECDSA test case loading keys

12 years agounit-tests: perform a first ECDSA test case if ECDSA is supported
Martin Willi [Tue, 9 Apr 2013 13:06:28 +0000 (15:06 +0200)] 
unit-tests: perform a first ECDSA test case if ECDSA is supported

12 years agounit-tests: add a helper function checking if a plugin feature is available
Martin Willi [Tue, 9 Apr 2013 13:05:24 +0000 (15:05 +0200)] 
unit-tests: add a helper function checking if a plugin feature is available

12 years agounit-tests: add a test case checking if all test vectors have been passed
Martin Willi [Tue, 9 Apr 2013 12:35:38 +0000 (14:35 +0200)] 
unit-tests: add a test case checking if all test vectors have been passed

12 years agocrypto-factory: count the number of test vector failures during registration
Martin Willi [Tue, 9 Apr 2013 12:30:13 +0000 (14:30 +0200)] 
crypto-factory: count the number of test vector failures during registration

12 years agounit-tests: load all libstrongswan plugins in test-runner
Martin Willi [Tue, 9 Apr 2013 12:05:12 +0000 (14:05 +0200)] 
unit-tests: load all libstrongswan plugins in test-runner

12 years agostroke: Add statusall-nb as alias for statusallnb
Tobias Brunner [Fri, 21 Jun 2013 08:43:46 +0000 (10:43 +0200)] 
stroke: Add statusall-nb as alias for statusallnb

12 years agostroke: Add non-blocking versions of up and down
Tobias Brunner [Sun, 16 Jun 2013 14:30:21 +0000 (16:30 +0200)] 
stroke: Add non-blocking versions of up and down

stroke up-nb and stroke down-nb do not block until the command has
finished.  Instead, they return right after initiating the respective
operation.

12 years agostarter: Make ipsec.conf path configurable via command line
Tobias Brunner [Thu, 13 Jun 2013 17:07:55 +0000 (19:07 +0200)] 
starter: Make ipsec.conf path configurable via command line

12 years agopubkey: Improve comparison of raw public key certificate objects
Tobias Brunner [Wed, 5 Jun 2013 09:30:05 +0000 (11:30 +0200)] 
pubkey: Improve comparison of raw public key certificate objects

12 years agoikev2: use protocol of selected proposal to delete a failed CHILD_SA
Martin Willi [Thu, 20 Jun 2013 10:05:13 +0000 (12:05 +0200)] 
ikev2: use protocol of selected proposal to delete a failed CHILD_SA

Depending on the failure, the protocol might not yet be set on the CHILD_SA.

12 years agocharon-cmd: use a copy of pid in initiate callback
Martin Willi [Thu, 20 Jun 2013 09:02:28 +0000 (11:02 +0200)] 
charon-cmd: use a copy of pid in initiate callback

When cancelling a connection that gets established, cmd_connection_t gets
freed before terminate() is called. This results in kill()ing invalid PID.

12 years agocharon-cmd: add IKEv1 aggressive mode profiles
Martin Willi [Thu, 20 Jun 2013 09:01:37 +0000 (11:01 +0200)] 
charon-cmd: add IKEv1 aggressive mode profiles

12 years agoNEWS: Add first bunch of 5.1.0 highlights
Martin Willi [Thu, 20 Jun 2013 08:29:25 +0000 (10:29 +0200)] 
NEWS: Add first bunch of 5.1.0 highlights

12 years agoMerge branch 'nat-transport'
Martin Willi [Wed, 19 Jun 2013 14:36:27 +0000 (16:36 +0200)] 
Merge branch 'nat-transport'

Enable transport mode in NAT situations when using IKEv2. Additionally brings
an extended leftsubnet format, where each subnet can take a separate protocol
and port.

12 years agoman: update ipsec.conf.5, describing new proto/port definition within leftsubnet
Martin Willi [Wed, 5 Jun 2013 10:03:22 +0000 (12:03 +0200)] 
man: update ipsec.conf.5, describing new proto/port definition within leftsubnet

12 years agostroke: support %dynamic in left/rightsubnet for dynamic selectors
Martin Willi [Wed, 5 Jun 2013 09:43:19 +0000 (11:43 +0200)] 
stroke: support %dynamic in left/rightsubnet for dynamic selectors

This has the same meaning as omitting left/rightsubnet, i.e. replace it
by the IKE address. Supporting %dynamic allows configurations with multiple
dynamic selectors in a left/rightsubnet, each with potentially different
proto/port selectors.

12 years agokernel-netlink: install selectors on SA for transport/BEET mode without proto/port
Martin Willi [Wed, 5 Jun 2013 09:39:35 +0000 (11:39 +0200)] 
kernel-netlink: install selectors on SA for transport/BEET mode without proto/port

If a transport/BEET SA has different selectors for different proto/ports,
installing just the proto/port of the first SA would break any additional
selector.

12 years agostroke: support a specific proto/port for each net defined in left/rightsubnet
Martin Willi [Wed, 5 Jun 2013 09:38:51 +0000 (11:38 +0200)] 
stroke: support a specific proto/port for each net defined in left/rightsubnet

12 years agoikev2: properly fall back to tunnel mode if transport/BEET mode not configured
Martin Willi [Wed, 5 Jun 2013 08:48:57 +0000 (10:48 +0200)] 
ikev2: properly fall back to tunnel mode if transport/BEET mode not configured

12 years agoikev2: support transport mode over NAT
Martin Willi [Wed, 5 Jun 2013 07:46:02 +0000 (09:46 +0200)] 
ikev2: support transport mode over NAT

12 years agoMerge branch 'consistent-reqid'
Martin Willi [Wed, 19 Jun 2013 14:31:06 +0000 (16:31 +0200)] 
Merge branch 'consistent-reqid'

Checks if a trap policy exists when installing a CHILD_SA as responder,
reuse that reqid and keeping the trap untouched. This makes auto=route on
both sides more reliable.

In addition, we no prevent to refcount an existing policy if the reqid differs;
this should not happen anymore. We now can properly reject new CHILD_SAs in
such conflicts, instead of silently breaking an existing policy.