diff options
-rw-r--r-- | server/BandwidthController.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/BandwidthController.cpp b/server/BandwidthController.cpp index 85b1f5b7..4f9e33ea 100644 --- a/server/BandwidthController.cpp +++ b/server/BandwidthController.cpp @@ -692,6 +692,13 @@ int BandwidthController::prepCostlyIface(const char *ifn, QuotaType quotaType) { snprintf(cmd, sizeof(cmd), "-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, ifn, costCString); res |= runIpxtablesCmd(cmd, IptJumpNoAdd); + + snprintf(cmd, sizeof(cmd), "-D bw_FORWARD -i %s --jump %s", ifn, costCString); + runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide); + + snprintf(cmd, sizeof(cmd), "-I bw_FORWARD %d -i %s --jump %s", ruleInsertPos, ifn, costCString); + res |= runIpxtablesCmd(cmd, IptJumpNoAdd); + return res; } |