Tobias Brunner
181801317b
testing: Add /etc/resolv.conf when building strongSwan
2019-04-04 09:36:38 +02:00
Tobias Brunner
ceca26c88e
testing: Enable Python eggs in testing environment (i.e. vici's Python bindings)
2019-04-04 09:36:38 +02:00
Tobias Brunner
ebe2bedebd
configure: Fix package version for python packages for developer releases
...
According to PEP 440 the suffix for development releases is .devN and
not just devN.
2019-04-04 09:36:38 +02:00
Tobias Brunner
0396969a36
vici: Add support for interface ID configurable on IKE_SA
2019-04-04 09:36:38 +02:00
Tobias Brunner
fafa76984d
child-sa: Pass default interface ID inherited from IKE_SA
...
Also pass optional arguments as struct.
2019-04-04 09:36:38 +02:00
Tobias Brunner
dec3c184a6
ike-sa: Add property for interface ID
2019-04-04 09:36:38 +02:00
Tobias Brunner
9347f72494
ipsec-types: Move allocation of unique interface IDs to helper function
2019-04-04 09:31:38 +02:00
Tobias Brunner
c56b8c1a26
peer-cfg: Add property for interface ID
2019-04-04 09:31:38 +02:00
Tobias Brunner
28b702ad8b
xfrmi: Use helpers for nested Netlink attributes
2019-04-04 09:31:38 +02:00
Tobias Brunner
2feba5aa22
kernel-netlink: Add helper functions for nested attributes
2019-04-04 09:31:38 +02:00
Tobias Brunner
760d7c9b4f
testing: Add scenarios that use XFRM interfaces
...
The network namespace scenario requires a kernel patch in 4.19 and 4.20
kernels (the fix is included in 5.0 kernels).
2019-04-04 09:31:38 +02:00
Tobias Brunner
801a5d3133
kernel-netlink: Don't install routes for CHILD_SAs with interface ID
2019-04-04 09:31:38 +02:00
Tobias Brunner
5b2078ad09
testing: Enable XFRM interfaces and network namespaces in 4.19 and 5.0 kernel
2019-04-04 09:31:38 +02:00
Tobias Brunner
d74ddd7893
xfrmi: Move to a separate directory to fix monolithic build
2019-04-04 09:31:38 +02:00
Tobias Brunner
eef9236602
kernel-netlink: Add --list option to XFRM interfaces utility
2019-04-04 09:31:38 +02:00
Tobias Brunner
19b6d9a622
swanctl: Report interface IDs in --list-sas
2019-04-04 09:31:38 +02:00
Tobias Brunner
aa841dbbfc
vici: Report interface IDs
2019-04-04 09:31:38 +02:00
Tobias Brunner
3fa8c3e529
updown: Pass interface ID to updown script
2019-04-04 09:31:38 +02:00
Tobias Brunner
8ab336285a
ike: Reuse interface ID during CHILD_SA rekeyings
2019-04-04 09:31:38 +02:00
Tobias Brunner
a6014d99b7
child-sa: Configure interface ID on SAs and policies
2019-04-03 12:00:08 +02:00
Tobias Brunner
18ed5a07db
vici: Make interface ID configurable
2019-04-03 12:00:08 +02:00
Tobias Brunner
07166ce25e
ipsec-types: Add helper to parse interface ID
2019-04-03 12:00:08 +02:00
Tobias Brunner
f99bd2a5a6
kernel-interface: Consider interface ID when allocating reqids
2019-04-03 12:00:08 +02:00
Tobias Brunner
72c96dbf9f
child-cfg: Add property for interface ID
2019-04-03 12:00:08 +02:00
Tobias Brunner
b32c3ce8fe
kernel-netlink: Make interface ID configurable on SAs and policies
2019-04-03 12:00:08 +02:00
Tobias Brunner
d1cd2a0541
include: Add XFRM attribute identifier for interface ID
2019-04-03 12:00:08 +02:00
Tobias Brunner
888593bb5b
kernel-netlink: Add utility to create XFRM interfaces
...
This is mainly to see what's necessary to create them (in case we
integrate this into the daemon) and to experiment in our testing
environment without having to add a patched version of iproute2 (the
4.20.0 version in stretch-backports doesn't support XFRM interfaces
yet). The regular version of iproute2 can be used for other operations
with these interfaces (delete, up, addrs etc.).
2019-04-03 12:00:08 +02:00
Tobias Brunner
735f9e6eb6
kernel-netlink: Calculate length of Netlink messages correctly
...
This is relevant when adding e.g. strings whose length are not aligned.
2019-04-03 12:00:08 +02:00
Tobias Brunner
f43302dc10
Use Botan 2.10.0 for tests
2019-04-01 11:01:46 +02:00
Tobias Brunner
35b82000f1
testing: Disable gcrypt plugin for swanctl
...
Sometimes swanctl hangs when initializing the plugin and it apparently
gathers entropy.
2019-03-28 18:16:56 +01:00
Tobias Brunner
d49ad922c1
conf: Use actually configured path for strongswan.conf
...
References #2984 .
2019-03-27 10:07:16 +01:00
Tobias Brunner
333adbc25b
generator: Don't print any tainted values in DBG3 messages for U_INT_4
...
The bits not written to are marked tainted by valgrind, don't print
them in the debug messages. Also use more specific printf-specifiers
for other values.
2019-03-27 10:00:09 +01:00
Tobias Brunner
6ec9f68f32
sql: Handle %any better when looking up shared secrets
...
This can be the case for IKEv1 since 419ae9a20a ("ikev1: Default remote
identity to %any for PSK lookup if not configured").
Closes strongswan/strongswan#128 .
2019-03-14 13:55:58 +01:00
Tobias Brunner
4f8c00e3ed
Merge branch 'nm-ipv6'
...
Adds support for IPv6 to the NetworkManager backend and plugin.
Fixes #1143 , #2586 .
2019-03-14 13:46:33 +01:00
Tobias Brunner
398ea12cdb
nm: Remove deprecated variables from autogen.sh
2019-03-14 13:42:08 +01:00
Tobias Brunner
05b7f1cbfe
charon-nm: Add IPv6 support
2019-03-14 13:42:08 +01:00
Tobias Brunner
0af3a4f103
charon-nm: Handle IPv6 DNS server attributes
2019-03-14 13:42:08 +01:00
Tobias Brunner
0b117dc960
charon-nm: Set local address to %any so IPv6 may be used as outer address
2019-03-14 13:42:08 +01:00
Tobias Brunner
5538e29071
charon-nm: Request virtual IPv6 address and appropriate TS
2019-03-14 13:42:08 +01:00
Tobias Brunner
3567bf60ac
nm: Enable IPv6 tab in NM connection dialog
2019-03-14 13:42:08 +01:00
Tobias Brunner
83674787d5
forecast: Only reinject packets that are marked or from the configured interface
...
This seems to avoid broadcast loops (i.e. processing and reinjecting the
same broadcast packet over and over again) as the packets we send via
AF_PACKET socket are neither marked nor from that interface.
2019-03-14 11:56:20 +01:00
Tobias Brunner
00a953d090
kernel-netlink: Use address labels instead of deprecation for IPv6 virtual IPs
...
In order to avoid that the kernel uses virtual tunnel IPs for traffic
over physical interfaces we previously deprecated the virtual IP. While
this is working it is not ideal. This patch adds address labels for
virtual IPs, which should force the kernel to avoid such addresses to
reach any destination unless there is an explicit route that uses it as
source address.
2019-03-14 11:33:59 +01:00
Tobias Brunner
b4a23e3cea
Merge branch 'android-updates'
...
Adds a copy function for VPN profiles and an option to set custom DNS
servers.
2019-03-14 10:56:07 +01:00
Tobias Brunner
023d47a08a
child-create: Add missing space in DH retry log message
2019-03-13 10:30:49 +01:00
Tobias Brunner
7b9a8b3f75
android: New release after adding copy function and DNS server config
2019-03-08 17:08:11 +01:00
Tobias Brunner
347665420b
Merge branch 'openssl-chapoly'
...
Adds support for ChaCha20-Poly1305 via OpenSSL.
Fixes #2946 .
2019-03-08 15:56:01 +01:00
Tobias Brunner
a21710d380
openssl: Add support for ChaCha20-Poly1305
...
It's available since OpenSSL 1.1.0.
2019-03-08 15:55:52 +01:00
Tobias Brunner
8fc6b2d0e0
openssl: Generalize the GCM implementation a bit
...
This will allow us to use the implementation also for other algorithms.
2019-03-08 15:55:52 +01:00
Tobias Brunner
451c2e7d58
Merge branch 'ikev1-redundant-updown'
...
Avoids calling updown script for redundant CHILD_SAs after IKEv1 rekey
collisions.
Fixes #2902 .
2019-03-08 15:52:39 +01:00
Tobias Brunner
7f5cef5d1c
ikev1: Don't trigger updown event and close action for redundant CHILD_SAs
2019-03-08 15:49:34 +01:00
Tobias Brunner
bbc3d2a016
task-manager-v1: Add utility function to check if CHILD_SA is redundant
2019-03-08 15:49:34 +01:00
Tobias Brunner
090e2cf54c
vici: Correctly parse inactivity timeout as uint32_t
...
Using parse_time() directly actually overwrites the next member in the
child_cfg_create_t struct, which is start_action, which can cause
incorrect configs if inactivity is parsed after start_action.
Fixes #2954 .
2019-03-08 15:47:25 +01:00
Tobias Brunner
4ad397ef79
swanctl: Fix documentation of default value of hostaccess
2019-03-07 18:49:29 +01:00
Tobias Brunner
2ef473be15
android: Use helper to parse IP addresses where appropriate
2019-03-05 19:02:05 +01:00
Tobias Brunner
7028e9d31e
android: Add helper to parse IP addresses from strings
...
Using InetAddress.fromName() is not ideal as it might result in a DNS
resolution, which causes an exception if we do it from the main thread.
2019-03-05 18:56:09 +01:00
Tobias Brunner
8e7ad9ace8
android: Make DNS servers configurable in the GUI
2019-03-05 18:17:56 +01:00
Tobias Brunner
1a39c3d98d
android: Import DNS servers
2019-03-05 17:45:48 +01:00
Tobias Brunner
dd5de792cf
android: Use configured custom DNS servers
2019-03-05 17:36:09 +01:00
Tobias Brunner
dda8b891dc
android: Add properties for DNS servers
2019-03-05 16:51:21 +01:00
Tobias Brunner
94cb3b4ddd
android: Add menu option to copy a profile
...
Some users requests something like that to use different server IPs.
Interestingly, it's actually also possible to configure multiple
hostnames/IPs, separated by commas, as server address in the profile, which
are then tried one after another.
It's also useful when testing stuff to quickly compare the behavior with
some setting changed between two otherwise identical profiles.
2019-03-05 16:40:20 +01:00
Tobias Brunner
da4e08909e
android: Remove buildToolsVersion
...
Finally a default is configured and we don't have to update this
constantly.
2019-03-05 15:32:33 +01:00
Tobias Brunner
20fdb2d42b
android: Update Gradle plugin
2019-03-05 15:32:33 +01:00
Tobias Brunner
023cf17a90
load-tester: Update expired CA certificate
...
Closes strongswan/strongswan#126 .
2019-02-28 17:31:43 +01:00
Tobias Brunner
8cafef2e10
travis: OpenSSL version bump
2019-02-26 16:03:28 +01:00
Tobias Brunner
d091703a9e
agent: Don't keep socket to ssh/gpg-agent open
...
Instead, create a socket when necessary. Apparently, it can prevent
the agent from getting terminated (e.g. during system shutdown) if e.g.
charon-nm is still running with an open connection to the agent.
2019-02-20 10:43:19 +01:00
Tobias Brunner
0f193be23d
libimcv: Add Debian 9.7 to IMV database
2019-01-30 12:26:19 +01:00
Tobias Brunner
c7f579fa17
kernel-netlink: Fix compilation on old kernels (< 2.6.39)
2019-01-24 10:55:24 +01:00
Tobias Brunner
220b0cb29c
unit-tests: Verify that E and emailAddress result in the same ID
2019-01-18 11:15:16 +01:00
Tobias Brunner
6639288b1a
Use Botan 2.9.0 for tests
2019-01-16 17:11:46 +01:00
Tobias Brunner
e4a3ef2e4d
Use https:// for URLs in documents
...
Also adds contribution guidelines (for Github) with links to the wiki.
2018-12-20 16:13:02 +01:00
Tobias Brunner
d1e58e11f7
NEWS: More news for 5.7.2
2018-12-18 14:48:18 +01:00
Tobias Brunner
db82c0f594
Fixed some typos, courtesy of codespell
2018-12-18 11:14:19 +01:00
Tobias Brunner
0329645182
Merge branch 'radius-accounting-unclaimed'
...
Adds all IPs to RADIUS Accounting-Stop messages even those not claimed by
a client. For instance, if the connection fails with FAILED_CP_REQUIRED,
adding the unclaimed addresses allows the RADIUS server to release the
leases early.
Fixes #2856 .
2018-12-18 10:34:17 +01:00
Tobias Brunner
61efac6512
eap-radius: Don't clear unclaimed IPs early if accounting is enabled
2018-12-18 10:28:51 +01:00
Tobias Brunner
2de6d9d8d3
eap-radius: Add unclaimed IPs to Accounting-Stop messages
...
Some RADIUS servers may use these to release them early.
2018-12-18 10:28:51 +01:00
Tobias Brunner
0407d72acf
eap-radius: Add method to explicitly clear unclaimed IPs
...
Instead of just enumerating them, removing and then destroying the entry
avoids having to keep the mutex locked.
2018-12-18 10:28:51 +01:00
Tobias Brunner
533efa91e2
eap-radius: Add RADIUS Accounting session ID to Access-Request messages
...
This allows e.g. associating database entries for IP leases and
accounting directly from the start.
Fixes #2853 .
2018-12-17 09:46:09 +01:00
Tobias Brunner
501bd53a6c
swanctl: Make credential directories relative to swanctl.conf
...
All directories are now considered relative to the loaded swanctl.conf
file, in particular, when loading it from a custom location via --file
argument. The base directory, which is used if no custom location for
swanctl.conf is specified, is now also configurable at runtime via
SWANCTL_DIR environment variable.
Closes strongswan/strongswan#120 .
2018-12-14 09:11:14 +01:00
Tobias Brunner
322daff844
openssl: Make sure to release the functional ENGINE reference
...
The functional reference created by ENGINE_init() was never released,
only the structural one created by ENGINE_by_id(). The functional
reference includes an implicit structural reference, which is also
released by ENGINE_finish().
Closes strongswan/strongswan#119 .
2018-12-12 12:00:29 +01:00
Tobias Brunner
be1c7e3815
Merge branch 'ikev1-adopt-child-tasks'
...
Makes sure to adopt active and queued Quick Mode tasks if the peer
reauthenticates the IKE_SA while creating lots of CHILD_SAs.
Closes strongswan/strongswan#117 .
2018-12-07 10:40:08 +01:00
Tobias Brunner
5e97a5e64b
ike: Implement adopt_child_tasks() outside task managers
2018-12-07 10:32:12 +01:00
Tobias Brunner
f536f6477d
adopt-children-job: Adopt child-creating tasks from the old IKE_SA
2018-12-07 10:32:12 +01:00
Tobias Brunner
b71604011a
ike-sa: Expose task_manager_t::remove_task()
2018-12-07 10:32:12 +01:00
Tobias Brunner
4505e3c0df
task-manager: Add method to remove a task from a queue
2018-12-07 10:32:12 +01:00
Tobias Brunner
44558547af
ike-sa-manager: Migrate child creating tasks during IKEv1 reauth
2018-12-07 10:32:12 +01:00
Tobias Brunner
00c889f4ec
ike-sa: Expose task_manager_t::adopt_child_tasks()
2018-12-07 10:32:12 +01:00
Tobias Brunner
157150ca91
charon-cmd: Register atexit() handler for libcharon_deinit twice
...
Similar to cbe9e575ee , this avoids issues with libraries that are
pulled in via plugins and register their own atexit() handlers.
2018-12-07 10:30:08 +01:00
Tobias Brunner
10f8834bf9
ikev2: Don't recreate IKE_SA if deletion fails after make-before-break reauth
...
Fixes: 7457143072 ("During reauthentication reestablish IKE_SA even if deleting the old one fails.")
Fixes #2847 .
2018-12-07 10:28:21 +01:00
Tobias Brunner
01f462f0d3
ikev2: Ignore COOKIE notifies we already received
...
This could be due to a delayed response to an IKE_SA_INIT retransmit.
Fixes #2837 .
2018-12-07 10:25:30 +01:00
Tobias Brunner
13f92f649e
Merge branch 'ha-pool-offset'
...
Ensure an even distribution of a pool's addresses among all segments.
Fixes #2828 .
2018-12-07 10:16:21 +01:00
Tobias Brunner
5dbb826da5
ha: Divide virtual IPs evenly among all segments
2018-12-07 10:15:40 +01:00
Tobias Brunner
16a898f5f7
ha: Add getter for the number of segments
2018-12-07 10:15:05 +01:00
Tobias Brunner
a8f91cd466
ha: Improve distribution of pool addresses over segments
...
This is particularly important for higher number of segments, but even
with small numbers there is a significant difference. For instance,
with 4 segments the fourth segment had no IPs assigned with the old
code, no matter how large the pool, because none of the eight bits used
for the segment check hashed/mapped to it.
2018-12-07 10:12:14 +01:00
Tobias Brunner
872b9b3e8d
kernel-pfkey: Read reqid directly from acquire if possible
...
Upcoming versions of FreeBSD will include an SADB_X_EXT_SA2 extension in
acquires that contains the reqid set on the matching policy. This allows
handling acquires even when no policies are installed (e.g. to work with
FreeBSD's implementation of VTI interfaces, which manage policies
themselves).
2018-12-03 12:01:43 +01:00
Tobias Brunner
c99d3b6f63
ikev2: Only set STAT_INBOUND for valid and expected messages
2018-12-03 12:00:24 +01:00
Tobias Brunner
631abb6810
scepclient: Don't use a block-scope buffer for the default DN
...
The correct behavior will depend on the compiler.
Fixes #2843 .
2018-12-03 11:54:05 +01:00
Tobias Brunner
686a1b971d
Merge branch 'openssl-25519/448'
...
Adds support for X25519/448 and Ed25519/448 via OpenSSL 1.1.1.
2018-11-30 16:48:02 +01:00
Tobias Brunner
a4e698b6f9
travis: Don't run sonarcloud in forked repositories
2018-11-30 16:03:10 +01:00
Tobias Brunner
2a58030b78
travis: Use the latest OpenSSL release for unit tests
...
But also run the unit tests against the 1.0 version installed with
Ubuntu 16.04.
2018-11-30 16:03:10 +01:00
Tobias Brunner
7195914daf
travis: Only use GCC for crypto plugin tests
...
They are already build-tested with Clang via "all" and others.
2018-11-30 15:57:35 +01:00