Image

Imageseadawg wrote in Imagelinux

Using ipchains to block outbound requests?

How would I use ipchains to block outbound requests to a specific IP or domain and reroute it to the localhost, if possible? As an April Fools Day joke, I wanted to reroute traffic from my local network going to espn.com to our router and have a fake "espn.com has been shut down" message.

Would the same ipchains command that works for blocking inbound traffic work for outbound as well? Haven't been able to get it working though...