Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 123.123.123.123 (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?
Thanks Kustom42 - that may be all I need. I would need to specify only the blackhole interface, but yes that might be all.
I do not know IPtables, so if it is just that simple - awesome.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.