Services: Kea DHCPv6: Waste less Prefix space when calculating IA_NA and IA_PD
Reserve only the first delegation-sized block, or a /64 when larger,
for on-link IA_NA use. Make the remaining space available to IA_PD
through multiple non-overlapping CIDR pools instead of using only
the upper half of the interface prefix.
For example, a /57 with /60 delegations now provides seven /60s
instead of four, reserving the first /60 for on-link use.
Add Util tests covering prefix splitting and the resulting PD capacity.
Ipsec: (unnamed) connection handling (#10986)
In the strongswan codebase when what we know as an "ikeid" is requested before it can be assigned it will return "(unnamed)". Add handling for this in our code.
pluginctl: enforce primary mode as selected by caller
While here sort the mode cases and add a print_help() wrapper.
Reported by: @dmuensterer
(cherry picked from commit 84c6837c90e7dec510972860cc19ab08c12f7466)
configd: restrict service stop and similar actions to wheel,wwwonly (#11233)
Addition to https://github.com/opnsense/core/commit/676d307294fe22d84b73f9639559702872b554bf
which restricted each service's own stop, the state kill actions,
clearing logs and disconnecting IPsec sessions. Still open:
- service stop
- filter flush states, filter flush sources
- system flush config_history
- ids drop alertlog
- openvpn kill
- captiveportal disconnect
None has a description, so none can be scheduled, and their only
callers in core are the web GUI and the API.
(cherry picked from commit dba1fac31a5ceae325f8e5a8ffb13366893728b0)
radvd: ditch the use of legacy_interface_stats() to probe for MTU
This should increase performance quite a bit. We already have the full
ifconfig data cached above. Iteration of 24e028dc10.
configd: restrict service stop and similar actions to wheel,wwwonly (#11233)
Addition to https://github.com/opnsense/core/commit/676d307294fe22d84b73f9639559702872b554bf
which restricted each service's own stop, the state kill actions,
clearing logs and disconnecting IPsec sessions. Still open:
- service stop
- filter flush states, filter flush sources
- system flush config_history
- ids drop alertlog
- openvpn kill
- captiveportal disconnect
None has a description, so none can be scheduled, and their only
callers in core are the web GUI and the API.
interfaces: small simplification on dhclient-script
Reorder the add_new_routes / add_new_alias in the TIMEOUT case
to be in the order that the average case above also uses.
interfaces: flatten the successful TIMEOUT branch #11231
The ping may not always go through. The lease life cycle
changes by assuming it is valid, but connectivity should
only be positively impacted by this.
While here remove the sleep and suprious inline exit. The newwanip
should keep the force this we could enter this condition after a cold
boot as long as the lease is still valid on paper.
Suggested by: @firestrife23
interfaces: remove the PPP uptime option
Was modified in 4d495ea6cc3d3c99366, f129c4682b2a et al. to a state where
the option could still be enabled but never read. The /conf bound historic
log is still filled but nothing reads it. Let's retire it for 27.1.
One other goal here is to reduce the incoming impact of a MVC/API rewrite.
Discussed with: @swhite2
(cherry picked from commit 3e63c1cbf8819ffd7cc3de8dea16fa2a13eccffc)
interfaces: move assignments TODO file to /var/lib/php/tmp
It belongs to the GUI since the controller handles its life cycle.
While here also avoid hardcoding the path since we have a getter.
interfaces: introduce DAD sleep for 6to4/6rd trackers; closes #11179
Add the sleep in the fringe cases only and consolidate the wait
as + 2 to simplify and make it more reliable.
(cherry picked from commit 97be9723322c8a1f3570e5ebfbe4c73e41620028)
IPsec: Pre-Shared Keys - check uniqueness when only the remote identifier changes (#11224)
The reference to ident.check001 sat straight under <Constraints>, where
getConstraintValidators() skips it, so the identifier pair was only
checked when the local identifier changed.
(cherry picked from commit 3ad974d007a26bc33f3c61260a64ddefd7a53863)