kernel-netlink.opt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. charon.plugins.kernel-netlink.buflen = <min(PAGE_SIZE, 8192)>
  2. Buffer size for received Netlink messages.
  3. charon.plugins.kernel-netlink.force_receive_buffer_size = no
  4. Force maximum Netlink receive buffer on Netlink socket.
  5. If the maximum Netlink socket receive buffer in bytes set by
  6. _receive_buffer_size_ exceeds the system-wide maximum from
  7. /proc/sys/net/core/rmem_max, this option can be used to override the limit.
  8. Enabling this option requires special privileges (CAP_NET_ADMIN).
  9. charon.plugins.kernel-netlink.fwmark =
  10. Firewall mark to set on the routing rule that directs traffic to our routing
  11. table.
  12. Firewall mark to set on the routing rule that directs traffic to our routing
  13. table. The format is [!]mark[/mask], where the optional exclamation mark
  14. inverts the meaning (i.e. the rule only applies to packets that don't match
  15. the mark).
  16. charon.plugins.kernel-netlink.mss = 0
  17. MSS to set on installed routes, 0 to disable.
  18. charon.plugins.kernel-netlink.mtu = 0
  19. MTU to set on installed routes, 0 to disable.
  20. charon.plugins.kernel-netlink.parallel_route = no
  21. Whether to perform concurrent Netlink ROUTE queries on a single socket.
  22. Whether to perform concurrent Netlink ROUTE queries on a single socket.
  23. While parallel queries can improve throughput, it has more overhead. On
  24. vanilla Linux, DUMP queries fail with EBUSY and must be retried, further
  25. decreasing performance.
  26. charon.plugins.kernel-netlink.parallel_xfrm = no
  27. Whether to perform concurrent Netlink XFRM queries on a single socket.
  28. charon.plugins.kernel-netlink.policy_update = no
  29. Whether to always use XFRM_MSG_UPDPOLICY to install policies.
  30. charon.plugins.kernel-netlink.port_bypass = no
  31. Whether to use port or socket based IKE XFRM bypass policies.
  32. Whether to use port or socket based IKE XFRM bypass policies.
  33. IKE bypass policies are used to exempt IKE traffic from XFRM processing.
  34. The default socket based policies are directly tied to the IKE UDP sockets,
  35. port based policies use global XFRM bypass policies for the used IKE UDP
  36. ports.
  37. charon.plugins.kernel-netlink.process_rules = no
  38. Whether to process changes in routing rules to trigger roam events.
  39. Whether to process changes in routing rules to trigger roam events. This is
  40. currently only useful if the kernel based route lookup is used (i.e. if
  41. route installation is disabled or an inverted fwmark match is configured).
  42. charon.plugins.kernel-netlink.receive_buffer_size = 0
  43. Maximum Netlink socket receive buffer in bytes.
  44. Maximum Netlink socket receive buffer in bytes. This value controls how many
  45. bytes of Netlink messages can be received on a Netlink socket. The default
  46. value is set by /proc/sys/net/core/rmem_default. The specified value cannot
  47. exceed the system-wide maximum from /proc/sys/net/core/rmem_max, unless
  48. _force_receive_buffer_size_ is enabled.
  49. charon.plugins.kernel-netlink.roam_events = yes
  50. Whether to trigger roam events when interfaces, addresses or routes change.
  51. charon.plugins.kernel-netlink.set_proto_port_transport_sa = no
  52. Whether to set protocol and ports in the selector installed on transport
  53. mode IPsec SAs in the kernel.
  54. Whether to set protocol and ports in the selector installed on transport
  55. mode IPsec SAs in the kernel. While doing so enforces policies for inbound
  56. traffic, it also prevents the use of a single IPsec SA by more than one
  57. traffic selector.
  58. charon.plugins.kernel-netlink.spdh_thresh {}
  59. XFRM policy hashing threshold configuration for IPv4 and IPv6.
  60. XFRM policy hashing threshold configuration for IPv4 and IPv6.
  61. The section defines hashing thresholds to configure in the kernel during
  62. daemon startup. Each address family takes a threshold for the local subnet
  63. of an IPsec policy (src in out-policies, dst in in- and forward-policies)
  64. and the remote subnet (dst in out-policies, src in in- and
  65. forward-policies).
  66. If the subnet has more or equal net bits than the threshold, the first
  67. threshold bits are used to calculate a hash to lookup the policy.
  68. Policy hashing thresholds are not supported before Linux 3.18 and might
  69. conflict with socket policies before Linux 4.8.
  70. charon.plugins.kernel-netlink.spdh_thresh.ipv4.lbits = 32
  71. Local subnet XFRM policy hashing threshold for IPv4.
  72. charon.plugins.kernel-netlink.spdh_thresh.ipv4.rbits = 32
  73. Remote subnet XFRM policy hashing threshold for IPv4.
  74. charon.plugins.kernel-netlink.spdh_thresh.ipv6.lbits = 128
  75. Local subnet XFRM policy hashing threshold for IPv6.
  76. charon.plugins.kernel-netlink.spdh_thresh.ipv6.rbits = 128
  77. Remote subnet XFRM policy hashing threshold for IPv6.
  78. charon.plugins.kernel-netlink.retries = 0
  79. Number of Netlink message retransmissions to send on timeout.
  80. charon.plugins.kernel-netlink.timeout = 0
  81. Netlink message retransmission timeout, 0 to disable retransmissions.
  82. charon.plugins.kernel-netlink.ignore_retransmit_errors = no
  83. Whether to ignore errors potentially resulting from a retransmission.
  84. charon.plugins.kernel-netlink.xfrm_acq_expires = 165
  85. Lifetime of XFRM acquire state and allocated SPIs in kernel.
  86. Lifetime of XFRM acquire state created by the kernel when traffic matches a
  87. trap policy. The value gets written to /proc/sys/net/core/xfrm_acq_expires.
  88. Indirectly controls the delay between XFRM acquire messages triggered by the
  89. kernel for a trap policy. The same value is used as timeout for SPIs
  90. allocated by the kernel. The default value equals the total retransmission
  91. timeout for IKE messages, see IKEv2 RETRANSMISSION in
  92. **strongswan.conf**(5).