Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115355 - kmyfirewall-1.0 multiport rules syntax error
Summary: kmyfirewall-1.0 multiport rules syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-12 16:50 UTC by Matteo Azzali (RETIRED)
Modified: 2005-12-12 18:24 UTC (History)
0 users

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


Attachments
fixes multiport syntax error (against iptables) (kmyfirewall-1.0_gentoo_multiport.diff,1.78 KB, patch)
2005-12-12 16:52 UTC, Matteo Azzali (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Azzali (RETIRED) gentoo-dev 2005-12-12 16:50:48 UTC
When adding a multiport rule, the resulting line (to pass to iptables) become
flawed:
"-p tcp -p tcp --match multiport" and
"-p udp -p udp --match multiport" cause errors when applying firewall
(since repetition) and
"--equal-ports" is wrong syntax for "--ports"

Reproducible: Always
Steps to Reproduce:
1.add a multiport-matching rule 
2.try to apply firewall rules
3.

Actual Results:  
error applying rules, this stops the process.

Expected Results:  
apply all the rules to iptables without errors.
Comment 1 Matteo Azzali (RETIRED) gentoo-dev 2005-12-12 16:52:51 UTC
Created attachment 74596 [details, diff]
fixes multiport syntax error (against iptables)

I needed to add in a comment since "new bugreport" form didn't allowed to 
add.
Patch is also already sent to developers of kmyfirewall to be evaluated.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-12-12 18:24:58 UTC
Indeed. Thanks Matteo.