Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140001 - Shorewall 3.2 series
Summary: Shorewall 3.2 series
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL: http://www.shorewall.net
Whiteboard:
Keywords:
: 141667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-11 08:36 UTC by Vieri
Modified: 2006-11-22 00:03 UTC (History)
4 users (show)

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


Attachments
shorewall 3.2.0 ebuild (shorewall-3.2.0.ebuild,2.87 KB, text/plain)
2006-07-11 08:37 UTC, Vieri
Details
shorewall initscript (shorewall-r2,1.84 KB, text/plain)
2006-07-11 08:38 UTC, Vieri
Details
shorewall-lite ebuild (shorewall-lite-3.2.0.ebuild,1.63 KB, text/plain)
2006-07-11 08:38 UTC, Vieri
Details
shorewall-lite initscript (shorewall-lite,1.52 KB, text/plain)
2006-07-11 08:39 UTC, Vieri
Details
Shorewall initscript (shorewall-r2,1.67 KB, text/plain)
2006-07-11 10:59 UTC, Vieri
Details
Shorewall-lite iniscript (shorewall-lite,1.46 KB, text/plain)
2006-07-11 10:59 UTC, Vieri
Details
shorewall-3.2.1-install.sh.patch (shorewall-3.2.1-install.sh.patch,613 bytes, patch)
2006-08-10 12:43 UTC, Natanael Copa
Details | Diff
shorewall-3.2.2.ebuild (shorewall-3.2.2.ebuild,3.04 KB, text/plain)
2006-08-10 12:50 UTC, Natanael Copa
Details
Updated install.sh patch (shorewall-3.2.1-install.sh.patch,740 bytes, patch)
2006-08-21 05:51 UTC, Vieri
Details | Diff
net-firewall/shorewall-3.2.3 ebuild (shorewall-3.2.3.ebuild,3.32 KB, text/plain)
2006-08-27 11:50 UTC, Vieri
Details
net-firewall/shorewall-lite-3.2.3 ebuild (shorewall-lite-3.2.3.ebuild,1.63 KB, text/plain)
2006-08-27 11:54 UTC, Vieri
Details
net-firewall/shorewall-3.2.5 ebuild (shorewall-3.2.5.ebuild,3.20 KB, text/plain)
2006-10-29 23:58 UTC, Vieri
Details
shorwall-iproute2-minimal-useflag.patch (shorwall-iproute2-minimal-useflag.patch,473 bytes, patch)
2006-11-01 09:29 UTC, Martin Scherer
Details | Diff
net-firewall/shorewall-3.2.5 ebuild (shorewall-3.2.5.ebuild,3.49 KB, text/plain)
2006-11-02 23:49 UTC, Vieri
Details
patch-3.2.5-1.diff (patch-3.2.5-1.diff,889 bytes, patch)
2006-11-02 23:49 UTC, Vieri
Details | Diff
patch-3.2.5-2.diff (patch-3.2.5-2.diff,746 bytes, patch)
2006-11-02 23:50 UTC, Vieri
Details | Diff
net-firewall/shorewall-3.2.6.ebuild (shorewall-3.2.6.ebuild,3.38 KB, text/plain)
2006-11-19 04:06 UTC, Vieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vieri 2006-07-11 08:36:51 UTC
ebuilds for Shorewall 3.2 series
Comment 1 Vieri 2006-07-11 08:37:39 UTC
Created attachment 91468 [details]
shorewall 3.2.0 ebuild
Comment 2 Vieri 2006-07-11 08:38:13 UTC
Created attachment 91469 [details]
shorewall initscript
Comment 3 Vieri 2006-07-11 08:38:40 UTC
Created attachment 91470 [details]
shorewall-lite ebuild
Comment 4 Vieri 2006-07-11 08:39:07 UTC
Created attachment 91471 [details]
shorewall-lite initscript
Comment 5 Vieri 2006-07-11 08:45:29 UTC
Shorewall 3.2 implements major changes.
Shorewall 3.0 is treated in http://bugs.gentoo.org/show_bug.cgi?id=112942 
Comment 6 Vieri 2006-07-11 10:59:21 UTC
Created attachment 91487 [details]
Shorewall initscript

Cleaned header
Comment 7 Vieri 2006-07-11 10:59:58 UTC
Created attachment 91488 [details]
Shorewall-lite iniscript

Cleaned header.
Comment 8 Vieri 2006-07-23 09:45:43 UTC
Please version bump to 3.2.1 as important bugs have been fixed upstream.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-07-25 00:49:46 UTC
*** Bug 141667 has been marked as a duplicate of this bug. ***
Comment 10 Andrej Kacian (RETIRED) gentoo-dev 2006-07-31 17:11:16 UTC
netmon, ping?
Comment 11 Vieri 2006-08-10 09:48:37 UTC
Version bump to 3.2.2.
Bypass Sandbox access violation I am unfamiliar with (pointer appreciated):
* emerge -C shorewall shorewall-lite
* emerge shorewall shorewall-lite
If noone has time for this then maybe this ebuild could be put up in CVS and marked M~ testing / hard masked ?
Comment 12 Natanael Copa 2006-08-10 12:43:15 UTC
Created attachment 93934 [details, diff]
shorewall-3.2.1-install.sh.patch

The sandbox violation comes from the install script trying to change current CONFIG_PATH to "/usr/share/shorewall/configfiles:/usr/share/shorewall" in any existing /usr/share/shorewall/configfiles/shorewall.conf.  (thats why it helps to unmerge it first)

There should be some info telling that this change is needed to be done manually.

Attatched patch just removes the sandbox violating line.
Comment 13 Natanael Copa 2006-08-10 12:50:36 UTC
Created attachment 93935 [details]
shorewall-3.2.2.ebuild

ebuild for 3.2.2 with sandbox violation fix.
Comment 14 Vieri 2006-08-11 08:13:54 UTC
I would prefer having the install script do everything :-).
Changing these lines in install.sh by adding ${PREFIX} seems to satisfy sandbox:

qt mywhich perl && perl -p -w -i -e 's|^CONFIG_PATH=.*|CONFIG_PATH=/usr/share/shorewall/configfiles:/usr/share/shorewall|;' ${PREFIX}/usr/share/shorewall/configfiles/shorewall.conf

qt mywhich perl && perl -p -w -i -e 's/^STARTUP_ENABLED=No/STARTUP_ENABLED=Yes/;s/^IP_FORWARDING=On/IP_FORWARDING=Keep/;s/^SUBSYSLOCK=.*/SUBSYSLOCK=/;' ${PREFIX}/etc/shorewall/shorewall.conf

Help/suggestions are being requested upstream.
Comment 15 Natanael Copa 2006-08-11 08:47:41 UTC
As I understand the script, it changes your current config, in case you already have shorewall installed. ebuilds are not supposed to change your config. etc-update is supposed to take care of that.

You will *never* have the file installed in your sandbox (unless you copy it from live filesystem first and then do the replace).

so adding a ${PREFIX} is doing the same as removing it.

...if I understand the script correctly.
Comment 16 Vieri 2006-08-11 10:01:06 UTC
yes but the install script has always been that way as you can see for example under "# Check for /etc/shorewall". Previous shorewall ebuilds don't handle that either.
etc-update or dispatch-conf take care of the config files in etc/shorewall so the second line might as well be ignored:

qt mywhich perl && perl -p -w -i -e
's/^STARTUP_ENABLED=No/STARTUP_ENABLED=Yes/;s/^IP_FORWARDING=On/IP_FORWARDING=Keep/;s/^SUBSYSLOCK=.*/SUBSYSLOCK=/;'
${PREFIX}/etc/shorewall/shorewall.conf

However, the first line refers to a "non-dispatchconf-standard" config file location: 
${PREFIX}/usr/share/shorewall/configfiles/
and the ebuild specifies that keepdir is only for /var/lib/shorewall.
So when one emerges to a newer shorewall, /usr/share/shorewall/configfiles/ content will be lost and replaced with the new files. This is ok just as long as the user keeps using the default config dir, i.e. /etc/shorewall.

In other words, install.sh does "too much" but it's "enough" for the build as a whole.

However, I may be wrong.
Comment 17 Cristian Rodriguez 2006-08-11 11:14:46 UTC
fixed in Shorewall svn ;-)
Comment 18 Vieri 2006-08-18 10:35:17 UTC
Maybe setting up an overlay for shorewall (or net-firewall as a whole) could be interesting?
http://overlays.gentoo.org
Comment 19 Natanael Copa 2006-08-21 02:49:03 UTC
(In reply to comment #18)
> Maybe setting up an overlay for shorewall (or net-firewall as a whole) could be
> interesting?
> http://overlays.gentoo.org

How would that be better than commit it to official gentoo tree?
Comment 20 Vieri 2006-08-21 04:41:46 UTC
(In reply to comment #19)
> How would that be better than commit it to official gentoo tree?

Shorewall-lite is a new package and there's no ebuild for that in the official tree. Putting it up on an overlay would make users have the chance to cleanly get it, test it and eventually someone will put it in the main portage tree.
Or at least that's how I think it can be useful.
Maybe the "sunrise overlay" could be fine for this.
However, shorewall-lite won't work if the user didn't install shorewall 3.2 on one of his/her systems.
Of course, committing it to the official tree directly would be nice but since the Gentoo Shorewall maintainers are busy I really think the "overlays" idea is constructive and should make users participate more actively.
Comment 21 Vieri 2006-08-21 05:51:50 UTC
Created attachment 94767 [details, diff]
Updated install.sh patch

install.sh script updated upstream and can be used with Natanael's ebuild (practically speaking, it has the same effect as Natanael's patch but it comes from Shorewall's svn).

However, I think we can wait for 3.2.3.
Comment 22 Natanael Copa 2006-08-21 07:37:34 UTC
(In reply to comment #21)
> 
> However, I think we can wait for 3.2.3.
> 

Sounds like a good idea. :)
Comment 23 Vieri 2006-08-27 11:50:52 UTC
Created attachment 95223 [details]
net-firewall/shorewall-3.2.3 ebuild

Shorewall 3.2.3 has a fix for the sandbox violation error.
Installs and upgrades cleanly.
Comment 24 Vieri 2006-08-27 11:54:40 UTC
Created attachment 95224 [details]
net-firewall/shorewall-lite-3.2.3 ebuild

Shorewall-lite 3.2.3: new package.
Comment 25 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-09-18 05:26:29 UTC
in cvs, thanks for the work.
Comment 26 Vieri 2006-09-19 10:57:15 UTC
(In reply to comment #25)
> in cvs, thanks for the work.

Thanks for putting shorewall 3.2 in portage.
I am reopening this bug because shorewall-lite has been forgotten ;-(
(I know this is a new package and may require more dev work to allow it into portage)
Comment 27 Vieri 2006-09-28 08:43:18 UTC
Please version bump for shorewall 3.2.4 and shorewall-lite 3.2.4
Comment 28 Markus Ullmann (RETIRED) gentoo-dev 2006-10-09 14:09:04 UTC
Can you provide a gentoo-style init script for it?
Comment 29 Natanael Copa 2006-10-09 14:50:51 UTC
(In reply to comment #28)
> Can you provide a gentoo-style init script for it?
> 

won't the already attatched init scripts work?
https://bugs.gentoo.org/attachment.cgi?id=91488
Comment 30 Markus Ullmann (RETIRED) gentoo-dev 2006-10-10 05:22:12 UTC
All in CVS now, thanks for reporting :)
Comment 31 Vieri 2006-10-29 23:58:50 UTC
Created attachment 100763 [details]
net-firewall/shorewall-3.2.5 ebuild

version bump 3.2.5.
New proposed ebuild just adds one einfo line which states  that the user should read the Release Notes (especially useful for migration issues).
Otherwise, please just rename 3.2.4.
Comment 32 Vieri 2006-10-30 00:03:41 UTC
net-firewall/shorewall 3.2.5
net-firewall/shorewall-lite 3.2.5
version bump

Also requesting 3.0.9 to go stable on x86 and amd64 as that is the last version of the 3.0 series and 3.2 has been around for a while now.
Comment 33 Martin Scherer 2006-11-01 09:26:44 UTC
Hi there,

shorewall3-series fail to operate properly if iproute2 is build with the minimal useflag

USE="minimal" emerge iproute2 is missing the /sbin/ip utility needed by shorewall to do anything (start stop etc.)

after a "blind" update of iproute2 with globally set USE="minimal" and a reboot i got locked out of my system...

patch should fix it, please apply it :-)
---
with patch:
gateway All # emerge =iproute2-2.6.16.20060323 shorewall -av -k

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary     UD] sys-apps/iproute2-2.6.16.20060323 [2.6.18.20061002] USE="berkdb minimal* -atm"
[ebuild   R   ] net-firewall/shorewall-3.2.4  USE="doc" 0 kB
---
will deny to merge a broken shorewall...


greets

martin
Comment 34 Martin Scherer 2006-11-01 09:29:23 UTC
Created attachment 100975 [details, diff]
shorwall-iproute2-minimal-useflag.patch
Comment 35 Vieri 2006-11-02 23:49:11 UTC
Created attachment 101126 [details]
net-firewall/shorewall-3.2.5 ebuild

This proposed ebuild includes Martin's patch and the latest official Shorewall 3.2.5 patches. If you're not using 3.2.4 yet I suggest going directly for the patched 3.2.5.
Comment 36 Vieri 2006-11-02 23:49:42 UTC
Created attachment 101127 [details, diff]
patch-3.2.5-1.diff
Comment 37 Vieri 2006-11-02 23:50:24 UTC
Created attachment 101128 [details, diff]
patch-3.2.5-2.diff
Comment 38 Vieri 2006-11-03 11:11:46 UTC
>=3.2.3 multi-ISP users should visit:

http://www1.shorewall.net/pub/shorewall/CURRENT_STABLE_VERSION_IS_3.2/shorewall-3.2.5/known_problems.txt

The attached 3.2.5 ebuild includes these patches.
Comment 39 Vieri 2006-11-19 04:06:58 UTC
Created attachment 102333 [details]
net-firewall/shorewall-3.2.6.ebuild

shorewall and shorewall-lite 3.2.6 version bump.
Reattached shorewall ebuild for clarity with latest considerations.
Comment 40 Jakub Moc (RETIRED) gentoo-dev 2006-11-22 00:03:25 UTC
OK, can we stop recycling this bug perpetually? Fixed, closed. New version -> new bug. Thanks.