kernel-netlink: Add an option to install routes for SAs with XFRM interfaces
Since these might conflict with IKE traffic, this requires special care. One option is to install bypass policies for the peer, which install appropriate (throw) routes. However, that won't work if the traffic to the gateway itself should be protected, in particular, for host-to-host tunnels. So an alternative is to set a mark for the IKE socket and then exclude that traffic from table 220 via the kernel-netlink plugin's fwmark option.
This commit is contained in:
@@ -28,6 +28,16 @@ charon.plugins.kernel-netlink.hw_offload_feature_interface = lo
|
||||
cannot be used to obtain the appropriate feature flag, this option can
|
||||
be used to specify an alternative interface for offload feature detection.
|
||||
|
||||
charon.plugins.kernel-netlink.install_routes_xfrmi = no
|
||||
Whether to install routes for SAs that reference XFRM interfaces.
|
||||
|
||||
Whether routes via XFRM interfaces are automatically installed for SAs that
|
||||
reference such an interface via _if_id_. If the traffic selectors include
|
||||
the IKE traffic to the peer, this requires special care (e.g. installing
|
||||
bypass policies and/or routes, or setting a mark on the IKE socket and
|
||||
excluding such packets from the configured routing table via _fwmark_
|
||||
option).
|
||||
|
||||
charon.plugins.kernel-netlink.mss = 0
|
||||
MSS to set on installed routes, 0 to disable.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user