Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176862 - net-firewall/firehol-1.250-r1 breaks "group with" functionality
Summary: net-firewall/firehol-1.250-r1 breaks "group with" functionality
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical
Assignee: Dominik Stadler (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 171719
  Show dependency tree
 
Reported: 2007-05-02 23:40 UTC by Mike Nerone
Modified: 2007-05-05 12:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Nerone 2007-05-02 23:40:04 UTC
I posted this to bug #171719, but I realized that since that bug is closed, I'd better post a new one. The patch in that bug broke "group with". Example (output captured from "firehol debug", with IPs changed to protect the innocent, or even me):

firehol-1.250, CORRECT:

# === CONFIGURATION STATEMENT =================================================
# CONF:INIT>>>  group with dst 1.2.3.4


# INFO>>> Starting new group No 1, under 'main'

# INFO>>> Creating chain 'in_group1' under 'in_main' in table 'filter'
/sbin/iptables -t filter -N in_group1
/sbin/iptables -t filter -A in_main -d 1.2.3.4 -j in_group1

# INFO>>> Creating chain 'out_group1' under 'out_main' in table 'filter'
/sbin/iptables -t filter -N out_group1
/sbin/iptables -t filter -A out_main -s 1.2.3.4 -j out_group1


firehol-1.250-r1, BROKEN:

# === CONFIGURATION STATEMENT =================================================
# CONF:INIT>>>  group with dst 1.2.3.4


# INFO>>> Starting new group No 1, under 'main'

# INFO>>> Creating chain 'in_group1' under 'in_main' in table 'filter'
/sbin/iptables -t filter -N in_group1
/sbin/iptables -t filter -A in_main -s 1.2.3.4 -j in_group1

# INFO>>> Creating chain 'out_group1' under 'out_main' in table 'filter'
/sbin/iptables -t filter -N out_group1
/sbin/iptables -t filter -A out_main -d 1.2.3.4 -j out_group1

Consider the input side for the moment: as you can see, when clearly using
"group with" to to apply only to a *destination* of 1.2.3.4 (this box has
multiple IPs and this group is for services I want only accessible on 1.2.3.4),
firehol-1.250-r1 generates an input rule with "-s 1.2.3.4", checking only the
source address. The mirror mistake is made on the output side. firehol-1.250
did it correctly.

This mistake ended up cutting off all access to my server and will do so to other users of firehol using the "group with" facility.

Reproducible: Always

Steps to Reproduce:
Comment 1 Dominik Stadler (RETIRED) gentoo-dev 2007-05-05 12:10:33 UTC
In the discussion at http://sourceforge.net/tracker/index.php?func=detail&aid=1685505&group_id=58425&atid=487692 the author of firehol states that the patch for "group with" is not necessary. Additionally this bug indicates that it even can break things, therefore I have added -r2 that reverts this patch.

Sorry for any problem caused by this.