IPTables for a blackhole
Im looking for an IPTables aficionado who can help me here.
Here is the situation. I have a host with two IP addresses. One is management, the other is the blackhole.
When we have a know-bad destination address (botnet, callout, etc) and we want to know all the sources attempting to use it, we set a company wide route to force traffic to be "next hop" to be the balckhole IP. I have snort sitting on that interface and snort tells me who the sources are that try to callout. So the source tries to go to 220.127.116.11 (bad) but instead gets routed to 10.10.10.5 (blackhole with snort). No biggie.
If you are tempted to say "Why not monitor your egress, FW, etc - that seems like overkill!?" Just trust me, this is the only way to capture all the sources given the very disparate network that we have. Lots of egress. The blackhole route eliminates multiple local egresses and forces everyone to my central IP.
So here is my request. Because the traffic destined towards the balckhole is likely malicious - I am paranoid. I want to put in an IPtables rule to ensure that my blackhole IP is fully passive - it does not respond. But I DO need it to reply to ARPs so that the switch sees the blackhole IP as alive and continues make it routable (and possibly ICMP for convenience/heath checks)
So Can I put in a rule that basically allows everything IN to the interface, but only allows ARPs (or maybe just all layer two stuff?) out? If possible Arps and ICMP to specific set of destinations?
Is that all crazy?
Thank you! Checks in the mail.