I'm testing my webapplication which connects to two DBs. I can't stop them but I want to simulate outage of one of them.
So I opened one terminal where I'm pinging DB server:
ping 172.21.7.188
In the second terminal I did:
sudo iptables -A INPUT -s 172.21.7.188 -j DROP
sudo iptables -A OUTPUT -d 172.21.7.188 -j DROP
But I don't see any change - pings still return. What am I doing wrong?