SolydK: UFW KControl module installed by default.

Here is the place were the team and the community projects meet together. Help us to develop SolydXK projects or contribute your ideas for future releases.
User avatar
negora
Posts: 53
Joined: 18 May 2013 16:50

SolydK: UFW KControl module installed by default.

Postby negora » 18 Jul 2013 15:37

I know that you can manage the UFW rules with the GTK application GUFW, which in installed by default in SolydK. But in my opinion it would be more appropriate to include the UFW KControl module in the KDE System Settings panel: http://kde-apps.org/content/show.php?content=137789 . Just as Linux Mint or Sabayon already do.

A firewall is a key part in every OS and I believe that adding this module would help to give it the relevance that it deserves in SolydK.

Thank you for your hard work ;) .

User avatar
Arjen Balfoort
Site Admin
Posts: 8986
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby Arjen Balfoort » 18 Jul 2013 16:14

That's a great idea, and I didn't even know about its existence!

Luckily, Clem has provided a package (kcm-ufw), and Ubunut the needed dependency (python-ufw).

[EDIT]
Removed from the repository: see below.
Bummer!


SolydXK needs you!
Development | Testing | Translations

User avatar
negora
Posts: 53
Joined: 18 May 2013 16:50

Re: SolydK: UFW KControl module installed by default.

Postby negora » 18 Jul 2013 16:56

Schoelje: Thank you for such a fast answer, he he he.

In my case it has been installed correctly. However, when I enable the firewall it seems not to respond accordingly. If I exit the module and enter again, the check box to enable it appears unmarked again.

Also, if a I try to add a rule, a pop-up comes up with this message:

Code: Select all

Failed to insert rule.
Traceback (most recent call last): File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 171, in ufw=UFWFrontend(False) File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 67, in __init__ ufw.frontend.UFWFrontend.__init__(self, dryrun) File "/usr/lib/python2.7/dist-packages/ufw/frontend.py", line 153, in __init__ self.backend = UFWBackendIptables(dryrun) File "/usr/lib/python2.7/dist-packages/ufw/backend_iptables.py", line 45, in __init__ ufw.backend.UFWBackend.__init__(self, "iptables", dryrun, files) File "/usr/lib/python2.7/dist-packages/ufw/backend.py", line 51, in __init__ self._do_checks() File "/usr/lib/python2.7/dist-packages/ufw/backend.py", line 205, in _do_checks raise UFWError(err_msg) ufw.common.UFWError: "Couldn't stat '/etc/default/ufw'"

User avatar
Arjen Balfoort
Site Admin
Posts: 8986
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby Arjen Balfoort » 18 Jul 2013 17:35

Too much Ubuntu for Debian, I'm afraid.

Removing from the repository again.


SolydXK needs you!
Development | Testing | Translations

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby zerozero » 19 Jul 2013 01:53

====
Edit
[see Schoelje's post here http://forums.solydxk.nl/viewtopic.php?f=14&t=969#p9935 for the 64bit version]
Edit
====

can someone test this?
was built on a fresh solydK-production fully updated;
build and installation had no additional dependencies and here (i only test it in this system) works fine and the settings survive reboots
snapshot1.png
bliss of ignorance

User avatar
negora
Posts: 53
Joined: 18 May 2013 16:50

Re: SolydK: UFW KControl module installed by default.

Postby negora » 19 Jul 2013 07:43

zerozero wrote:kcm-ufw-0.4.3 amd64
can someone test this?
was built on a fresh solydK-production fully updated;
build and installation had no additional dependencies and here (i only test it in this system) works fine and the settings survive reboots
Well done. Thank you! :)

I've just tested it and the main functions work OK. I've enabled the firewall, set some rules, rebooted, and the configuration has been preserved.

One of the features that does not work is enabling or disabling the IPv6 support. It causes the firewall to be disabled when you click on the corresponding check-box. I don't know if it's something from the module or something internal of the system.

Another feature that acts weird is importing and deleting profiles. You have to exit the module and go back again in order to make the profiles appear in the menu "Load profile" and "Delete profile".

When I'm at home I'll test these functions in other operative systems such as Linux Mint, to know if these are well known bugs or not.

User avatar
Arjen Balfoort
Site Admin
Posts: 8986
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby Arjen Balfoort » 19 Jul 2013 07:45

Cannot enable without IP6 support. Is that a feature?

Inserting rule:
Failed to insert rule.
Traceback (most recent call last): File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 44, in import ufw.common ImportError: No module named ufw.common

Missing dependency...checking


SolydXK needs you!
Development | Testing | Translations

User avatar
negora
Posts: 53
Joined: 18 May 2013 16:50

Re: SolydK: UFW KControl module installed by default.

Postby negora » 19 Jul 2013 07:47

Schoelje: remember to re-install the package "ufw". The package from ZeroZero doesn't ask for that dependency (yet). Maybe that's what is missing in your specific case.

User avatar
Arjen Balfoort
Site Admin
Posts: 8986
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby Arjen Balfoort » 19 Jul 2013 08:09

negora wrote:Schoelje: remember to re-install the package "ufw". The package from ZeroZero doesn't ask for that dependency (yet). Maybe that's what is missing in your specific case.
I've adapted the .deb file:
  • ufw 0.31 or higher is a dependency
  • priority set to optional
  • section set to misc
  • added maintainer's url: solydxk.nl
  • added package description
[EDIT]
Deleted package: see 2 posts further...


SolydXK needs you!
Development | Testing | Translations

User avatar
negora
Posts: 53
Joined: 18 May 2013 16:50

Re: SolydK: UFW KControl module installed by default.

Postby negora » 19 Jul 2013 08:24

Schoelje wrote:
negora wrote:Schoelje: remember to re-install the package "ufw". The package from ZeroZero doesn't ask for that dependency (yet). Maybe that's what is missing in your specific case.
I've adapted the .deb file:
  • ufw 0.31 or higher is a dependency
  • priority set to optional
  • section set to misc
  • added maintainer's url: solydxk.nl
  • added package description
Nice! After you've updated that features of the package I guess that you could put it in the repositories in a safe way.

By the way, I've tested this module on Linux Mint KDE 15 and suffers from the same failures. So the problems are not connected to Debian or the compilation. In some way these are "good news", he he he.

Anyway, being able to disable IPv6 is not something too relevant for common desktop users. Advanced users still can do that using the command-line, editing the file /etc/default/ufw .

About the issue of the profiles, although it would be good to have it solved, I do not think that it interferes too much either. Many people just set the ports to block/unblock once in an installation.

Very good and fast work, ZeroZero and Schoelje. Thanks ;) .

User avatar
Arjen Balfoort
Site Admin
Posts: 8986
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby Arjen Balfoort » 19 Jul 2013 08:32

Forgot this one:
  • Added systemsettings as a dependency
Install package on 32-bits: no can do!
So, we'll need the 32-bits version too...zerozero? ;)
Attachments
kcm-ufw_0.4.3-1_amd64.deb
(844.63 KiB) Downloaded 158 times


SolydXK needs you!
Development | Testing | Translations

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby zerozero » 19 Jul 2013 08:55

Schoelje wrote:So, we'll need the 32-bits version too...zerozero?
tonight :)
bliss of ignorance

User avatar
negora
Posts: 53
Joined: 18 May 2013 16:50

Re: SolydK: UFW KControl module installed by default.

Postby negora » 19 Jul 2013 09:12

AGAIN, thank you, ha ha ha ;) .

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby zerozero » 19 Jul 2013 09:15

negora wrote:AGAIN, thank you, ha ha ha ;) .
thank you for bringing this up 8-)

i just checked in chakra (where this package is part of the default installation) and
Schoelje wrote:Cannot enable without IP6 support. Is that a feature?
happens the same.
bliss of ignorance

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby zerozero » 20 Jul 2013 03:22

the 32bit build is done as well
kcm-ufw_0.4.3-1_i386.deb
(850.86 KiB) Downloaded 170 times
bliss of ignorance

User avatar
Arjen Balfoort
Site Admin
Posts: 8986
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: SolydK: UFW KControl module installed by default.

Postby Arjen Balfoort » 20 Jul 2013 08:00

For the sake of experiment I've uploaded the packages to the community component of our repository.
In sources.list:

Code: Select all

deb http://packages.solydxk.com/ solydxk main upstream import community


SolydXK needs you!
Development | Testing | Translations

User avatar
negora
Posts: 53
Joined: 18 May 2013 16:50

Re: SolydK: UFW KControl module installed by default.

Postby negora » 20 Jul 2013 08:03

I've tested the 32-bit version for a few minutes and seems to be OK too. I'll continue checking it this afternoon.


Return to “Suggestions & ideas / Open Projects”

Who is online

Users browsing this forum: No registered users and 3 guests