I want to test an iPad app's response to dropped packets by adding a blackhole route on our WiFi network. I know the command is like this:

ip route add blackhole 

However I'm not sure where to run it. Do I need to run this command on the wireless router itself?

  • What kind of wireless router? This question should have been asked on Super User – Mike Pennington May 8 '12 at 14:12
  • An AirPort; thanks, I didn't know about Super User. – EricFromChina May 8 '12 at 14:27
  • No problem... I flagged it for migration to Super User; no need to cross-post – Mike Pennington May 8 '12 at 14:28

If possible, use an IP access-control list (ACL) on the wifi router that filters alternatively put a null route for on the router, if the Apple AirPort has that kind of routing capability (I'm not sure which specific model you have).

Those options are binary, they either drop all of your traffic or none of it; if you use a simulator like WANEm, then you can configure it to drop a percentage of your traffic... similar to what you might see in a flaky wifi network. However, this is quite involved and would require some linux skills.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.