Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 208.95.32.0/24 

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 stackoverflow.com 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

1 Answer 1

up vote 0 down vote accepted

If possible, use an IP access-control list (ACL) on the wifi router that filters 208.95.32.0/24... alternatively put a null route for 208.95.32.0/24 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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