
UFW KControl Module
Source (link to git-repo or to original if based on someone elses unmodified work):
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
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.
Ratings & Comments
48 Comments
Any chance you will port this to work with Kde Frameworks Plasma 5?
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: Can you help me please? :)
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.
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
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.
to have it working in kubuntu 12.10 one needs to install also python-ufw
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.
Thank you very much for telling it!
Apparently there is a workaround, but I don't like it: https://aur.archlinux.org/packages.php?ID=46880
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.
Are you going to release the update anytime soon?
D'oh! Sorry, I had forgotten all about this. I'll try to upload the fixed version later.
(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'
+1 on archlinux
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.
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.
Tested and working! Thanks!
[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'
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.
0.4.1 is working again without problem.
/lib/ufw/ has been moved to /usr/lib/ufw/, and now this module no longer works.
It's true, I've noticed since several days ago. Kubuntu 12.04 Beta.
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.
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)
Hello. I think the versions on the download links are old. Maybe KDE-Apps has not updated the links. Thank you :-)