Can linux firewall traffic not necessarily intended for it (promisc mode)?
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Can linux firewall traffic not necessarily intended for it (promisc mode)?
Simple question for you linux firewall gurus out there:
Can linux (running in promiscuous mode) intercept and block packets via firewall rules (basically block inappropriate packets via a firewall, but the traffic isn't physically going through linux (say, in a traditional dual-nic setup)?
I want linux to firewall incoming and outgoing traffic from our LAN to our WAN connection, but I don't want the connection physically broken if the linux box happens to go down.
In other words, I want traffic to do this: LAN -> linux -> WAN, without the linux step being a major point of failure from a hardware point of view.
The problem is that our WAN router doesn't have the capability to diplicate all I/O to one host, so I thought that I might be able to rig something with an old hub we have (put the hub between the WAN router and our LAN switches, and put the linux box on that hub).
I know there are fancy proxy/firewall systems (expensive network appliances) that do similar things, but this is a different situation.
I'm working with a very tight budget (we're a very small operation) and trying to improvise with what hardware we have on hand.
Distribution: FC1, Gentoo, Mdk 8.1, RH7-8-9, Knoppix, Zuarus rom 3.13
Posts: 98
Rep:
Unless the linux box is in-line then no it can't block. There is linux software that can respond to network triggers and send a spoofed rst packet to 'kill' a tcp connection based on rules. But tcp isn't the only protocol to watch for.
You may want to have a look at the honeynet project. There may be some info there. I've seen plenty of interactive connection killers and this may be what you want to look at. But far as protections that are not in-line, those are typically passive (report only) IDS solutions. A firewall has to be in-line or else it's not a firewall.
ipv4 networks were not designed to allow what you ask.. since in the wrong hands it could be a really bad thing.. it's possible but on a really limited scope. And for good reason.
I hope the honeynet project has something that will help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.