Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from May 8 '12 at 14:46

This question came from our site for professional and enthusiast programmers.

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
up vote 0 down vote accepted

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .