diff --git a/lib/tc.js b/lib/tc.js index 4debd46..ca509c7 100644 --- a/lib/tc.js +++ b/lib/tc.js @@ -74,6 +74,30 @@ async function setup(defaultInterface) { 'dev', 'ifb0' ); + await sudo( + 'tc', + 'filter', + 'add', + 'dev', + defaultInterface, + 'parent', + 'ffff:', + 'protocol', + 'ipv6', + 'u32', + 'match', + 'u32', + '0', + '0', + 'flowid', + '1:1', + 'action', + 'mirred', + 'egress', + 'redirect', + 'dev', + 'ifb0' + ); } async function setLimits(up, down, halfWayRTT, packetLoss, indexFace) {