Summary: | client isn’t blocked immediately despite a blocking fw rule | ||
---|---|---|---|
Product: | IPFire | Reporter: | SecCon <dev> |
Component: | --- | Assignee: | Michael Tremer <michael.tremer> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | Minor Usability | ||
Priority: | - Unknown - | CC: | adolf.belka, carlo.fusco, michael.tremer |
Version: | 2 | ||
Hardware: | unspecified | ||
OS: | Unspecified |
Description
SecCon
2023-07-29 06:56:25 UTC
To help clarify the discussion we had on this topic in the community forum, this is my summary. TLDR: Firewall Rule Not Affecting Established Connections A new firewall rule does not immediately affect an already established and tracked connection until a new connection is established by negotiating a new lease with the DHCP server. To resolve this, the established connection can be forced to disconnect using the command: conntrack -D -s <IP of client>. For instance, when blocking access from the green interface to the red interface for a specific IP address, merely creating a new rule will not take effect on existing connections. Question for the Development Team: Should the Web User Interface code be modified to force a new connection in such corner cases? Please disregard me mentioning in that thread the firewall behavior toward a DHCP connection on port 67, it has nothing to do with this report. Hello, I am not sure what to do with this report. I understand that this is not ideal, however, it is what an SPI firewall does. There is no (easy) way to find any connections that would match such a rule (because we might overmatch since the order of rules matters) and so we cannot reset those connections. I would say, that we will take this onboard for a redesign in IPFire 3, but leave this for now in IPFire 2. |