0

I'm familiar with this post here: Using tc to delay packets to only a single IP address

Which will delay outbound packets to a single IP address. I want to do the opposite, which is to delay all outbound packets except for a single ip address. Is this doable using tc? I've been going through documentation (https://omf.mytestbed.net/projects/omf/wiki/NetEM_examples_of_rules) and tutorials without any progress.

1 Answers1

0

Use fw match instead of u32 match then you can use iptables rules with MARK target to invert the condition (! -d X.X.X.X -j MARK --set-mark i).

Xavier Lucas
  • 12,815
  • 2
  • 44
  • 50