LuLu
LuLu copied to clipboard
Please add Bandwidth Throttling
Please add Bandwidth Throttling per rule.
I checked the possibilities for the Network Extension used by LuLu and it seems to me that this is not possible at the moment. The Network Extension in the Content Filter configuration makes it possible set a verdict to be provided for each data flow.
Documentation says: "An on-device network content filter examines user network content as it passes through the network stack and determines if it should block that content or allow it to pass on to its final destination."
This verdict is of type NEFilterNewFlowVerdict which has as possible values only: allowVerdict
, dropVerdict
, pauseVerdict
, filterDataVerdictWithFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:
, remediateVerdictWithRemediationURLMapKey:remediationButtonTextMapKey:
, needRulesVerdict
, and URLAppendStringVerdictWithMapKey:
.
In my interpretation, it doesn't seem to be possible to define an allowVerdict
with a bandwidth information to be used. It would be possible to work around using filterDataVerdictWithFilterInbound:peekInboundBytes:filterOutbound:peekOutboundBytes:
, but that would add some complexity to the project design. Imagine that it would be necessary to add time and traffic counters before allowing a flow... or allowing it with a small amount of bytes if the limit is exceeded.
Can you think of any other way to do this without adding too much complexity to the project?