summaryrefslogtreecommitdiff
path: root/sbin/iked
AgeCommit message (Collapse)Author
2021-01-26Add support for RSA-PSS PKCS1 signatures. Don't enable them bytobhe
default for now because of interoperability issues. ok patrick@
2021-01-24hmac-sha2-384 and hmac-sha2-512 are enabled by default.tobhe
2021-01-23Fix typos.tobhe
From Ryan Kavanagh ok patrick@
2021-01-21Handle NO_PROPOSAL_CHOSEN for CREATE_CHILD_SA.tobhe
ok markus@
2021-01-21Add support for INVALID_KE_PAYLOAD in CREATE_CHILD_SAtobhe
exchange. In the case of an invalid KE error, retry CREATE_CHILD_SA exchange with different group instead of restarting the full IKE handshake. ok markus@
2021-01-20Make sure to enforce matching dstid as initiator. Use policy lookuptobhe
to make sure the negotiated SA matches the selected policy. ok patrick@
2021-01-18Sync SA configuration payload to new SA after IKE SA rekeying.tobhe
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
2020-12-28Add back keyword "any" to match any IP address, which actually workstobhe
after recent fixes.
2020-12-27Fix "any" and "dynamic" keywords for flows and add proper IPv6 support.tobhe
For traffic selectors with a keyword on either 'from' or 'to' side, install flow with address family of the opposite side. If both source and destination address are keywords, install flows for both address families. The 'dynamic' keyword is special as it will only install flows for the address family of the dynamically assigned address (specified with the 'config address' option). ok patrick@
2020-12-22Log SPI with SPI_SH() wherever possible.tobhe
2020-12-21Use policy_test() to reassign existing SAs to updated policies aftertobhe
'ikectl reload'. This prevents initiation of new additional SAs for each policy every time the config is reloaded. ok patrick@
2020-12-20Don't leak ipsec_hosts when building hosts_list.tobhe
ok patrick@
2020-12-17Use strtonum() instead of atoi() to parse port option.tobhe
2020-12-17Sort command line options.tobhe
ok bluhm@
2020-12-15Fix leak of REQUEST string.tobhe
2020-12-13Make sure flow src and dst addresses have the same address family.tobhe
ok patrick@
2020-12-11The keyword "any" does not actually work properly for traffic selectors.tobhe
To match all traffic use 0.0.0.0/0 or ::/0. ok patrick@
2020-12-10Print valid ikesa/childsa configuration at startup. Comma seperatedtobhe
transforms are not supported. ok patrick@
2020-12-06Add support for RSASSA-PSS signature verification (RFC 7427).tobhe
ok patrick@
2020-12-05Make len unsigned.tobhe
ok patrick@
2020-12-04Log pfkey type and message length on write failure.tobhe
2020-12-03Fix type mismatch. auth_method should be uint8_t.tobhe
ok markus@
2020-12-02The skip steps must be set up for each attribute independentlytobhe
otherwise the wrong rules might me skipped, e.g. if you have policies with different listen addresses that are not sorted by address family. ok patrick@
2020-12-01Don't log ESRCH as warning.tobhe
2020-11-30We need to rekey every child SA (even if acquired): Otherwise we cantobhe
get out of sync with the peer and the peer would keep on using the expired SA because the lifetime is not negotiated. ok patrick@
2020-11-29Add 'set stickyaddress' option. If this option is enabled, iked will trytobhe
to assign the same 'config address' when an IKESA is negotiated with the DSTID of an existing IKESA. The original IKESA will be closed and the address will be transferred to the new IKESA. ok patrick@
2020-11-28Add support for multiple address pools. The parser already allowstobhe
specifying multiple pools, make ikev2_cp_setaddr() iterate over the pools to find a matching address. ok patrick@
2020-11-27Remove redundant state change. ikev2_ikesa_delete() sets the correct state.tobhe
2020-11-26Use a counter instead of random IV for AES-GCM. Security depends ontobhe
choosing a unique IV for every encryption operation, using a counter as IV eliminates the risk of random collisions. ok markus@ patrick@
2020-11-25Fix proposal error handling. If a proposal contains an unknown transformtobhe
type or id, ignore the proposal instead of failing the exchange. ok patrick@
2020-11-24Fix duplicate sa->sa_cp assignment.tobhe
2020-11-23Ignore duplicate sigsha2 notify, don't fail the exchange.tobhe
2020-11-22Fix comment typo.tobhe
2020-11-21Clean up NATT hack. Pass 'frompeer' as parameter instead of manipulatingtobhe
msg header to get the correct addresses and spis. ok patrick@
2020-11-20add -s to synopsis and usage; -S before -s in options list;Jason McIntyre
2020-11-20Add -s socket option to specify control socket. This can be useful iftobhe
multiple iked instances running in different rdomains are used. ok patrick@
2020-11-19More sa cleanup + constify.tobhe
ok patrick@
2020-11-18Constify sa in ikev2_pld_eap(). The parser code must not change anytobhe
sa or policy state, this should help make it clearer. ok patrick@
2020-11-17Remove redundant indirection via msg_parent. This is only needed intobhe
ikev2_pld_parse().
2020-11-16Reenable ikev2_init_auth() return value check. Make sure sa_stateok()tobhe
returns 0 on error. This code path is taken multiple times until all requirements for sa_stateok() are met, so don't delete the SA because of a single failure. ok patrick@
2020-11-16Backout ikev2_init_auth() return check to fix regression withtobhe
certificate authentication. Reported by Mark Patruck <mark (at) wrapped (dot) cx>
2020-11-15Document new 'dynamic' keyword to create flows from or to a dynamicallytobhe
assigned address.
2020-11-14Make sure not to replace 0.0.0.0 with dynamic address if it is a a networktobhe
address (addr_net is set).
2020-11-13addr_net is already checked in ikev2_cp_setaddr() before sessingtobhe
sa_addrpool, so we don't need to re-check here. ok patrick@
2020-11-12Close SA if ikev2_init_auth() fails.tobhe
ok markus@
2020-11-12Fail if ikev2_init_ike_auth() is entered with invalid state.tobhe
2020-11-11Cleanup after proc_init() in proc_close().tobhe
2020-11-07Implement 'from dynamic', which installs flows where 'dynamic' is replacedtobhe
with the received dynamic IP addresse. ok patrick@
2020-11-06Set correct netmask on patched addresses for debug printing.tobhe