UFW KControl Module

System Software

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

18
Score 83.7%
Description:

This is a KDE control center module to configure and control the Uncomplicated Firewall, as shipped with Kubuntu 10.10. The following features are supported:

1. Enable/disable firewall
2. Configure firewall default settings
3. Add, edit, and remove rules
4. Re-order rules via drag'n'drop
5. Import/export of rules
6. Setting of some IP tables modules

The module will appear under "Network and Connectivty" category.

**NOTE** 0.4.2 requires UFW 0.31 (as shipped with Kubuntu 12.04). For UFW 0.30 (as shipped with Kubuntu 11.10) please use 0.4.1
Last changelog:

7 years ago

0.4.3
-----
1. Actually get this to work with Kubuntu 12.04!!!

0.4.2
-----
1. Add support for UFW 0.31 - thanks to ufw-frontends author Darwin Baustista for very kindly supplying a patch.

0.4.1
-----
1. Fix loading of profiles.

0.4.0
-----
1. Add a simple log file viewer.
2. Save profiles into /etc/kcm_ufw - this way they are system-wide.
3. Store rule descriptions in etc/kcm_ufw, as they are part of this kcm, not ufw itself.
4. Block further actions, until current one is complete.
5. Set size of policy combos in simple and advanced pages to the same size - to mimimize flicker. (Not sure why they have different sizes.)
6. Make text field of simple port the same size as the combo.
7. Change column order of rules list to "Action, From, To, ..."
8. Make 'Add Rule' dialog non-modal, so that 'Log Viewer' and 'Add Rule' can be used concurrently.
9. Shorten IPv6 address - if possible.
10. Fix selection of host radio when editing rules.
11. Fix installation of JPEG files for Spanish documentation.
12. Default to installing all translations.

ab4bd

3 years ago

Any chance you will port this to work with Kde Frameworks Plasma 5?

Report

dadexix86

5 years ago

Hello,
I am trying to build on Kubuntu 13.10.

Although I installed the libqt4-dev package and many other for development, I am encountering this error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /home/davide/Scaricati/kcm_ufw-0.4.3/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed

CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message):
Unable to compile a basic Qt application. Qt has not been found correctly.
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
CMakeLists.txt:19 (find_package)


-- Configuring incomplete, errors occurred!


Can you help me please? :)

Report

Axtroz

5 years ago

I think you need the qt4-dev-tools package in order to build Qt applications. Try apt-get install qt4-dev-tools, clean your build directory or unpack the archive and try building again, or better, try finding a .deb package to ensure system consistency.

Report

x11tete11x

5 years ago

Hi im trying to make an rpm package, i do:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`

and then:
make package

and get this:

error: Not a directory: /home/x11tete11x/Descargas/kcm_ufw-0.4.3/build/_CPack_Packages/Linux/RPM/kcm_ufw-0.4.3/usr/share/doc/kde/HTML/es/kcontrol/ufw/common
error: Not a directory: /home/x11tete11x/Descargas/kcm_ufw-0.4.3/build/_CPack_Packages/Linux/RPM/kcm_ufw-0.4.3/usr/share/doc/kde/HTML/en/kcontrol/ufw/common
Not a directory: /home/x11tete11x/Descargas/kcm_ufw-0.4.3/build/_CPack_Packages/Linux/RPM/kcm_ufw-0.4.3/usr/share/doc/kde/HTML/es/kcontrol/ufw/common
Not a directory: /home/x11tete11x/Descargas/kcm_ufw-0.4.3/build/_CPack_Packages/Linux/RPM/kcm_ufw-0.4.3/usr/share/doc/kde/HTML/en/kcontrol/ufw/common
***
CPack Error: Problem copying the package: /home/x11tete11x/Descargas/kcm_ufw-0.4.3/build/_CPack_Packages/Linux/RPM/kcm_ufw-0.4.3.rpm to /home/x11tete11x/Descargas/kcm_ufw-0.4.3/build/kcm_ufw-0.4.3.rpm
CPack Error: Error when generating package: kcm_ufw
make: *** [package] Error 1

can you help me? thx :D

Report

amcollie

6 years ago

I am having a problem with kcm-ufw on debian linux 7 Wheezy x86_64. On my dell inspiron 9400, I have kernel 3.7.1 and kcm-ufw will disable itself if I try to enble logging and will not allow enbbling until logging is turned off and on my acer using stock kernel, I cannot disable ipv6.

Report

avlas

7 years ago

to have it working in kubuntu 12.10 one needs to install also python-ufw

Report

moray33

6 years ago

Thank you very much for telling it!

Report

franciscot

7 years ago

In my issue, The profiles doesnt work properly. The out/in doesnt change with the profile and when I load a profile ufw is always disable.

Report

axanon

7 years ago

Apparently there is a workaround, but I don't like it: https://aur.archlinux.org/packages.php?ID=46880

Report

C

CraigD

7 years ago

I've just checked with KDE4.9 under Kubuntu 12.04 - and v0.4.3 works fine for me.

What errors are you seeing?

p.s. Please send bug reports to my email address (which is in the AUTHORS file in the tarball) - I don’t check kde-apps that often.

Report

afettouhi

7 years ago

Are you going to release the update anytime soon?

Report

C

CraigD

7 years ago

D'oh! Sorry, I had forgotten all about this. I'll try to upload the fixed version later.

Report

moray33

7 years ago

(Kubuntu 12.04) I tried today to add a new rule and when I try i get this:

No se pudo insertar la regla.
Traceback (most recent call last): File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 583, in main() File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 535, in main addRule(ufw, a) File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 393, in addRule rule=fromXml(xml) File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 299, in fromXml rule = ufw.common.UFWRule(action, protocol) AttributeError: UFWFrontend instance has no attribute 'common'

Report

C

CraigD

7 years ago

Only just updated to 12.04... Can you try editing helper/kcm_ufw_helper.py.cmake and add (without dashed lines!)

------------------------
from ufw.common import UFWRule
------------------------

...at about line 47. Then at line 300 (was 299 in error message), change:

------------------------
rule = ufw.common.UFWRule(action, protocol)
------------------------

to

------------------------
rule = UFWRule(action, protocol)
------------------------

Then rebuild, and reinstall kcm_ufw. Does this fix the issue? It seems to for me at least... If so, I'll release an update.

Report

moray33

7 years ago

Tested and working! Thanks!

Report

Aoxo

7 years ago

Kubuntu 12.04
VMWare Player 4.0.2
UFW KControl Module 0.4.2

After finding gufw was crashing on me, I poked around for a KDE counterpart and found this great tool. After following the simple 5 steps to install, interrupted only by a few hours extensive forum searching and riddling around with installing the correct dev tools to compile this (wtb more install notes), I finally managed to build and install it. I created a couple simple rules for samba and things seem to work ok. I enabled the firewall and decided to work on the rest of the rules at a later time. Today I attempted to open up port 80 for a web server and got the following error:

Traceback (most recent call last): File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 583, in main() File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 535, in main addRule(ufw, a) File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 393, in addRule rule=fromXml(xml) File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 299, in fromXml rule = ufw.common.UFWRule(action, protocol) AttributeError: UFWFrontend instance has no attribute 'common'

I've been keeping the system updated, I suppose it's possible something changed elsewhere. I tried recompiling and re-installing but it had no effect.

Report

Shadowed87

7 years ago

+1 on archlinux

Report

afettouhi

7 years ago

[af@andre ~]$ sudo /usr/lib/kde4/libexec/kcm_ufw_helper.py --status --list
Adgangskode:
Traceback (most recent call last):
File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 577, in <module>
main()
File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 516, in main
getStatus(ufw, xmlOut)
File "/usr/lib/kde4/libexec/kcm_ufw_helper.py", line 310, in getStatus
if ufw.backend._is_enabled():
AttributeError: UFWBackendIptables instance has no attribute '_is_enabled'

Report

franciscot

7 years ago

Same problem here. I use kubuntu 11.04 with ufw 0.30, maybe downgrade to 0.41 fix the problem?
My PPA: https://launchpad.net/~leviatan1/+archive/ppa

Anyway, I don't have access to 0.41 source to try it.

Report

franciscot

7 years ago

0.4.1 is working again without problem.

Report

axanon

7 years ago

/lib/ufw/ has been moved to /usr/lib/ufw/, and now this module no longer works.

Report

moray33

7 years ago

It's true, I've noticed since several days ago. Kubuntu 12.04 Beta.

Report

C

CraigD

7 years ago

I'm still on 11.10 :-( However, moving /lib/ufw to /usr/lib/ufw/ should not be the reason for the errors - as the stuff in there is not directly used by this kcm.

What is the output of:

sudo /usr/lib/kde4/libexec/kcm_ufw_helper.py --status --list

This kcm uses 'kcm_ufw_helper.py' to do all the real work. And this python helper links into the ufw python modules.

Report

9

electron222

7 years ago

Hola en los foros de kubuntu-es hay una interesante guia para la instalcion del programa :D
(http://www.kubuntu-es.org/foro/201103/cortafuegos-simple-facil-ufw-kcontrol-module-modulo-kcm-uncomplicated-firewall)

Report

9

YAFU

7 years ago

Hello.
I think the versions on the download links are old. Maybe KDE-Apps has not updated the links.
Thank you :-)

Report

7 years ago

0.4.3
-----
1. Actually get this to work with Kubuntu 12.04!!!

0.4.2
-----
1. Add support for UFW 0.31 - thanks to ufw-frontends author Darwin Baustista for very kindly supplying a patch.

0.4.1
-----
1. Fix loading of profiles.

0.4.0
-----
1. Add a simple log file viewer.
2. Save profiles into /etc/kcm_ufw - this way they are system-wide.
3. Store rule descriptions in etc/kcm_ufw, as they are part of this kcm, not ufw itself.
4. Block further actions, until current one is complete.
5. Set size of policy combos in simple and advanced pages to the same size - to mimimize flicker. (Not sure why they have different sizes.)
6. Make text field of simple port the same size as the combo.
7. Change column order of rules list to "Action, From, To, ..."
8. Make 'Add Rule' dialog non-modal, so that 'Log Viewer' and 'Add Rule' can be used concurrently.
9. Shorten IPv6 address - if possible.
10. Fix selection of host radio when editing rules.
11. Fix installation of JPEG files for Spanish documentation.
12. Default to installing all translations.

12345678910
130
product-maker suther Nov 21 2013 9 excellent
product-maker rudi Sep 27 2013 9 excellent
product-maker damianatorrpm Sep 24 2012 9 excellent
product-maker narya Apr 10 2012 9 excellent
product-maker cyberwan Mar 13 2012 9 excellent
product-maker eRSZ Feb 27 2012 9 excellent
product-maker ElectronOo Feb 15 2012 9 excellent
product-maker elric80 Feb 15 2012 9 excellent
product-maker electron222 Dec 18 2011 9 excellent
product-maker bruno666 Nov 13 2011 9 excellent
product-maker pvt14 Nov 10 2011 9 excellent
product-maker unikum111 Jul 27 2011 9 excellent
product-maker TommyCZ Jul 19 2011 9 excellent
product-maker aspotashev Jul 10 2011 9 excellent
product-maker Brutus180 Jul 03 2011 9 excellent
product-maker jmunin May 26 2011 9 excellent
product-maker cyberconan May 22 2011 9 excellent
product-maker kubicle May 11 2011 9 excellent
product-maker oboulonis May 09 2011 9 excellent
product-maker 442206 May 06 2011 9 excellent
product-maker SeaJey Apr 15 2011 9 excellent
product-maker kbios Apr 12 2011 9 excellent
product-maker deabru Mar 31 2011 9 excellent
product-maker mikko777 Mar 30 2011 9 excellent
product-maker steveke Mar 18 2011 9 excellent
product-maker MetalByte Mar 08 2011 9 excellent
product-maker supportfsf Feb 03 2011 9 excellent
product-maker andreduartesp Jan 27 2011 9 excellent
product-maker nowardev Jan 26 2011 9 excellent
product-maker SilentDis Jan 23 2011 3 bad
product-maker YAFU Jan 23 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
suther
Nov 21 2013
Stincjatclava
May 01 2013
eRSZ
Feb 27 2012
elric80
Feb 15 2012
Sparrowmelody
Dec 26 2011
pvt14
Nov 10 2011
uteck
Jul 23 2011
TommyCZ
Jul 19 2011
aspotashev
Jul 10 2011
MoonBlossom
May 29 2011
oboulonis
May 27 2011
jmunin
May 26 2011
ach
Apr 21 2011
dgvirtual
Apr 09 2011
supportfsf
Apr 02 2011
groo
Feb 17 2011
YAFU
Jan 23 2011
hteles
Jan 23 2011
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.4.3
updated May 23 2012
added Jan 23 2011
downloads 24h
0
pageviews 24h 6
System Tags app software