I am testing the timeout handling for an outbound CURL in a PHP app I am developing after an outage at an affiliate brought down my site. I am looking for a way to intentionally slowdown or permanently stall outbound connections to a specific IP address so I can tune my timeout schema. Is there any way to do this?
Asked
Active
Viewed 178 times
3 Answers
1
The linux traffic shaper, although normally used to enforce QoS, is also perfect to degrade connections arbitrarily.

Stephanie
- 149
- 3
0
To completely block traffic you could do an iptables drop command for the outbound traffic to that dst address.
ie
iptables -A OUTPUT --dst 129.232.64.145 -j DROP

Jodie C
- 743
- 6
- 9