Package Details: kcm-ufw 0.4.3-4

Git Clone URL: https://aur.archlinux.org/kcm-ufw.git (read-only)
Package Base: kcm-ufw
Description: KDE4 control module for UFW (Uncomplicated Firewall)
Upstream URL: http://kde-apps.org/content/show.php/UFW+KControl+Module?content=137789
Keywords: kcm kde ufw
Licenses: GPL
Submitter: adaptee
Maintainer: ava1ar
Last Packager: FadeMind
Votes: 99
Popularity: 0.171992
First Submitted: 2011-02-25 06:28
Last Updated: 2015-12-02 07:00

Latest Comments

hepha commented on 2016-07-02 04:41

hello
this is new
KDE QuickGit :: ufw-kde.git/summary - https://quickgit.kde.org/?p=ufw-kde.git&l=en_US

ava1ar commented on 2016-03-03 03:06

@Aventura5
Since kcm-ufw is KDE4 module, you won't find it in the GUI - to start it, just run the command:
kcmshell4 ufw

Aventura5 commented on 2016-03-02 15:47

I just installed it successfully but it doesn't show up in the app menu and I can't find a command to run it.

youngunix commented on 2015-10-02 08:17

The git link above doesn't seem to work (happens with all packages as far as I can tell), but you can access the PKGBUILD from here https://aur.archlinux.org/cgit/aur.git/tree/?h=kcm-ufw. I've created a git repo on GitHub if you want to add it as a git url for cloning: https://github.com/youngunix/kcm-ufw.git.

FadeMind commented on 2015-07-13 08:38

Adopted, sources mirror updated.

rat commented on 2015-04-04 17:53

Thanks dixi_minga works!!!

dixi_minga commented on 2015-01-18 00:44

here are some ftp-mirrors:
http://www.filewatcher.com/m/kcm_ufw-0.4.3.tar.bz2.766909-1.html

for example you can change in PKGBUILD source to:
source=(ftp://ftp.hawo.stw.uni-erlangen.de/gentoo-distfiles/distfiles/kcm_ufw-${pkgver}.tar.bz2)

dixi_minga commented on 2015-01-18 00:38

here are some ftp-mirrors:
http://www.filewatcher.com/m/kcm_ufw-0.4.3.tar.bz2.766909-1.html

AJSlye commented on 2015-01-17 21:31

http://craigd.wikispaces.com/file/view/kcm_ufw-0.4.3.tar.bz2
Getting a subscription expired. :(

hazey commented on 2014-12-29 22:22

Any word or ideas on this? Project seems like its still alive and well just the source link being used has moved? Or should we be looking into alternative packages?

quantumphaze commented on 2014-12-10 13:19

The source in PKGBUILD and the kde-apps site is a dead link.
http://craigd.wikispaces.com/file/view/kcm_ufw-0.4.3.tar.bz2

However, I found it on github so hope remains that this project is not dead.
https://github.com/shsorbom/kcm-ufw-debian

Silberling commented on 2014-12-01 16:00

I get this when installing:

curl: (22) The requested URL returned error: 402 Payment Required

PuzzleMan commented on 2014-11-29 05:41

pkgname=kcm-ufw
pkgver=0.4.3
pkgrel=2
pkgdesc="KDE4 control module for Ufw(Uncomplicated Firewall)"
arch=('i686' 'x86_64')
url="http://kde-apps.org/content/show.php/UFW+KControl+Module?content=137789"
license=('GPL')
depends=('ufw' 'kdebase-workspace' 'polkit-kde' 'openssl' 'python2' )
makedepends=('automoc4' 'cmake' 'docbook-xml' 'docbook-xsl')
source=(http://mentors.debian.net/debian/pool/main/k/kcm-ufw/kcm-ufw_${pkgver}.orig.tar.xz)
md5sums=('068cc73a3c4d74f0fe636c541e9afefb')

build() {

cd "${srcdir}"

if [ -d build ] ; then
rm build -rf
fi

mkdir build && cd build

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQT_QMAKE_EXECUTABLE=qmake-qt4 ..

make

# only works with python2
sed -i '1s/\<python\>/python2/' ./kcm_ufw_helper.py

}

package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install || return 1
}

heaven commented on 2014-10-28 20:38

It worked for some time but then stopped. Systemsettings → Firewall → Querying firewall status... and nothing.

But UFW does work:
$ sudo ufw status
Status: active

To Action From
-- ------ ----
137,138/udp ALLOW Anywhere
135,139,445/tcp ALLOW Anywhere
SSH ALLOW Anywhere
123 ALLOW Anywhere

Any suggestions?

hazey commented on 2013-09-29 02:33

Correction - My bad. :)

I did get a python error, as follows:
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 "/lib/python2.7/site-packages/ufw/frontend.py", line 153, in __init__ self.backend = UFWBackendIptables(dryrun) File "/lib/python2.7/site-packages/ufw/backend_iptables.py", line 45, in __init__ ufw.backend.UFWBackend.__init__(self, "iptables", dryrun, files) File "/lib/python2.7/site-packages/ufw/backend.py", line 81, in __init__ nf_caps = ufw.util.get_netfilter_capabilities(self.iptables) File "/lib/python2.7/site-packages/ufw/util.py", line 734, in get_netfilter_capabilities raise OSError(errno.ENOENT, out) OSError: [Errno 2] iptables v1.4.19.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.

--------------

I removed kcm-ufw, tested ufw on its own - same error. I tried running iptables manually, got some misc errors but point being it couldnt start/filter table issues. I checked the kernel lib to ensure iptables was in there when I realized the kernel lib folder was 3.11.2-1, when uname -a was showing 3.11.1-1 which is when I remembered I upgraded my kernel and forgot to reboot. Rebooted, problem solved, KCM-UFW working flawlessly so far - will let you know if I find anything but think it's good!

If anyone has the python error, it's due to iptables not being within the kernel libs, or in my case not rebooting after a kernel upgrade. You want to make sure /lib/modules/`uname -r` exists and contains the iptables filter, can do:
find /lib/modules/`uname -r` -name iptable_filter.ko

Thanks for maintaining jsst!

hazey commented on 2013-09-29 02:00

/removed and reposted for edit/

Also, I do get A python error as well but I have a feeling it is only because the firewall isn't activated at all? Even when it shows enabled, I come back in and it's disabled as mentioned - logs show nothing other than successfully activated service org.kde.ufw HOWEVER it says that BEFORE I authenticate to give it access? Here's the adding rule error, but again have a feeling it is only because the original issue/not enabling?

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 "/lib/python2.7/site-packages/ufw/frontend.py", line 153, in __init__ self.backend = UFWBackendIptables(dryrun) File "/lib/python2.7/site-packages/ufw/backend_iptables.py", line 45, in __init__ ufw.backend.UFWBackend.__init__(self, "iptables", dryrun, files) File "/lib/python2.7/site-packages/ufw/backend.py", line 81, in __init__ nf_caps = ufw.util.get_netfilter_capabilities(self.iptables) File "/lib/python2.7/site-packages/ufw/util.py", line 734, in get_netfilter_capabilities raise OSError(errno.ENOENT, out) OSError: [Errno 2] iptables v1.4.19.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.

---------
I actually think this is an issue with UFW, I am fully updated as of today kernel wise/etc and what I did was remove kcm-ufw, ufw, then just try installing UFW on its own. I ran ufw status or if I run ufw disable ufw enable/etc I get the same error. So it's not an issue with kcm-ufw, it's UFW, any ideas what would be causing this?

hazey commented on 2013-09-29 01:53

Also, I do get A python error as well but I have a feeling it is only because the firewall isn't activated at all? Even when it shows enabled, I come back in and it's disabled as mentioned - logs show nothing other than successfully activated service org.kde.ufw HOWEVER it says that BEFORE I authenticate to give it access? Here's the adding rule error, but again have a feeling it is only because the original issue/not enabling?

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 "/lib/python2.7/site-packages/ufw/frontend.py", line 153, in __init__ self.backend = UFWBackendIptables(dryrun) File "/lib/python2.7/site-packages/ufw/backend_iptables.py", line 45, in __init__ ufw.backend.UFWBackend.__init__(self, "iptables", dryrun, files) File "/lib/python2.7/site-packages/ufw/backend.py", line 81, in __init__ nf_caps = ufw.util.get_netfilter_capabilities(self.iptables) File "/lib/python2.7/site-packages/ufw/util.py", line 734, in get_netfilter_capabilities raise OSError(errno.ENOENT, out) OSError: [Errno 2] iptables v1.4.19.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.

hazey commented on 2013-09-29 01:47

Hey jsst,
Mmmm everything went well and seemed to go well until I realized it's not enabling for some reason,

I installed, went into Settings -> Firewall, hit enable and it asked for sudo pass/authorization so did that, said it enabled (I hit refresh to be sure, said enabled still), went to add a rule and it gave an error not able to add the rule, backed out and refreshed still said was running, tried saving a profile with allow/allow for incoming/outgoing and then backed out to settings, went back into firewall and it's all default/cleared/firewall disabled, no profiles, etc... So I don't think it's ever starting iptables? Which would be why it gave an error trying to add a rule, everytime I back out and come back into the settings it's all cleared/firewall is disabled/etc.. Nothing seems to save, and I don't even think activate (when enabling firewall), I hit refresh and it's all disabled/empty still.

Any ideas? Thanks!

jsst commented on 2013-09-22 17:09

Hazey, let me know how that works out. The build issues have been fixed, the python errors I cannot reproduce.

The module works fine the way I use it. I removed the "does not work" warning in the Wiki since upstream specifically fixed it to work with UFW>0.31 (more than a year ago).

hazey commented on 2013-09-17 03:14

This working again? Last comment sounds like it's working okay but no one has commented, however comments after last update have reported errors? I'll give it a shot and post back if any issues, hopefully this is fixed again!

jsst commented on 2013-07-25 18:04

This seems to works fine now. Could someone using ufw confirm that?

youngunix commented on 2013-04-23 02:35

@agent_pumuckl: Doesn't work!
Still getting the following error on <3.8.8-1-ARCH - i686/x86_64>:

[CODE]

The follwing error pops up when adding a rule in "kcm-ufw-0.4.3"
===============================================================

Failed to insert rule.

Traceback (most recent call last): File "/lib/python2.7/site.py",
line 563, in main() File "/lib/python2.7/site.py",
line 545, in main known_paths = addusersitepackages(known_paths) File "/lib/python2.7/site.py",
line 278, in addusersitepackages user_site = getusersitepackages() File "/lib/python2.7/site.py",
line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/lib/python2.7/site.py",
line 243, in getuserbase USER_BASE = get_config_var('userbase') File "/lib/python2.7/sysconfig.py",
line 472, in get_config_var return get_config_vars().get(name) File "/lib/python2.7/sysconfig.py",
line 424, in get_config_vars _init_posix(_CONFIG_VARS) File "/lib/python2.7/sysconfig.py",
line 303, in _init_posix raise IOError(msg) IOError: invalid Python installation: unable to open //include/python2.7/pyconfig.h (No such file or directory)
[/CODE]

Anonymous comment on 2013-04-07 07:59

A workaround to get kcm-ufw to run is:


sudo mkdir -p /include/python2.7
sudo ln -s /usr/include/python2.7/pyconfig.h /include/python2.7/pyconfig.h

artemklevtsov commented on 2013-03-24 03:36

Sombody make it works? I see that settings not save.

xgdgsc commented on 2013-02-24 06:35

Failed to insert rule.
Traceback (most recent call last): File "/lib/python2.7/site.py", line 563, in main() File "/lib/python2.7/site.py", line 545, in main known_paths = addusersitepackages(known_paths) File "/lib/python2.7/site.py", line 278, in addusersitepackages user_site = getusersitepackages() File "/lib/python2.7/site.py", line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/lib/python2.7/site.py", line 243, in getuserbase USER_BASE = get_config_var('userbase') File "/lib/python2.7/sysconfig.py", line 521, in get_config_var return get_config_vars().get(name) File "/lib/python2.7/sysconfig.py", line 420, in get_config_vars _init_posix(_CONFIG_VARS) File "/lib/python2.7/sysconfig.py", line 299, in _init_posix raise IOError(msg) IOError: invalid Python installation: unable to open //include/python2.7/pyconfig.h (No such file or directory)

How to solve this? It shows when trying to add rules.

fettouhi commented on 2013-02-08 14:52

Doesn't build with KDE 4.10

[ 18%] [ 22%] Building CXX object helper/CMakeFiles/kcm_ufw_helper.dir/kcm_ufw_helper_automoc.o
Building CXX object helper/CMakeFiles/kcm_ufw_helper.dir/helper.o
Generating logviewer.moc
I/O warning : failed to load external entity "/usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/autoidx.xsl"
compilation error: file /usr/share/apps/ksgmltools2/customization/kde-include-common.xsl line 4 element import
xsl:import : unable to load /usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/autoidx.xsl
I/O warning : failed to load external entity "/usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/chunk.xsl"
compilation error: file /usr/share/apps/ksgmltools2/customization/kde-include-common.xsl line 5 element import
xsl:import : unable to load /usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/chunk.xsl
unable to parse /home/af/kcm-ufw/src/kcm_ufw-0.4.3/docs/es/index.docbook
I/O warning : failed to load external entity "/usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/autoidx.xsl"
compilation error: file /usr/share/apps/ksgmltools2/customization/kde-include-common.xsl line 4 element import
xsl:import : unable to load /usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/autoidx.xsl
I/O warning : failed to load external entity "/usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/chunk.xsl"
compilation error: file /usr/share/apps/ksgmltools2/customization/kde-include-common.xsl line 5 element import
xsl:import : unable to load /usr/share/xml/docbook/xsl-stylesheets-1.78.0/html/chunk.xsl
unable to parse /home/af/kcm-ufw/src/kcm_ufw-0.4.3/docs/en/index.docbook
make[2]: *** [docs/es/index.cache.bz2] Fejl 1
make[1]: *** [docs/es/CMakeFiles/es-handbook.dir/all] Fejl 2
make[1]: *** Venter på uafsluttede job....
make[2]: *** [docs/en/index.cache.bz2] Fejl 1
make[1]: *** [docs/en/CMakeFiles/en-handbook.dir/all] Fejl 2
Generating ruleslist.moc
Generating blocker.moc
[ 22%] Built target kcm_ufw_automoc
Linking CXX executable kcm_ufw_helper
[ 22%] Built target kcm_ufw_helper
make: *** [all] Fejl 2

einseenai commented on 2012-11-05 04:12

The workaround of agent_pumuckl seems to work, but when I uncheck IPv6 support it gets back immediately itself.

Anonymous comment on 2012-10-02 11:33

Manually making all sorts of links like that is pretty easy to lose track of or forget about. So, some might consider pushing that to the pkgbuild itself on their end until someone figures out a non-hacky way to fix it, so at least pacman knows. This appears to work for me:

(below "only works with python2" and sed line)

# workaround for not recognizing ufw
mkdir -p ${pkgdir}/include/python2.7
cd ${pkgdir}/include/python2.7
ln -s ../../usr/include/python2.7/pyconfig.h

Probably won't help those with compiler issues btw.. but it does fix ufw connecting and reading/writing properly with this tool on my machine.

Thanks @agent_pumuckl & @adaptee & all else.

msx commented on 2012-09-17 01:14

Won't compile again and @agent_pumuckl tip won't do it here :'(

francoism commented on 2012-08-25 14:45

@agent_pumuckl: thanks seems to work. :)

Thar commented on 2012-08-19 08:56

Hey there, I can't seem to get this version to work. Tried with ufw 0.30.1-2, 0.31-1 and 0.31.1-2. With each one of them, kcm-ufw doesn't recognize ufw running and can't read or save any rules. Clues?

fettouhi commented on 2012-08-07 14:07

I can confirm that this workaround works and kcvm-ufw runs now even with KDE 4.9.0.

Anonymous comment on 2012-08-07 09:23

A workaround to get kcm-ufw to run is:


sudo mkdir -p /include/python2.7
sudo ln -s /usr/include/python2.7/pyconfig.h /include/python2.7/pyconfig.h

Anonymous comment on 2012-07-22 04:57

No go here either, build terminates with:

make[2]: *** [docs/en/index.cache.bz2] Error 1
make[1]: *** [docs/en/CMakeFiles/en-handbook.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

also a whole bunch of docbook errors:

index.docbook:9: element article: validity error : No declaration for attribute lang of element article
<article lang="&language;">
^
index.docbook:11: element title: validity error : No declaration for element title
<title>The Firewall Handbook</title>
^
index.docbook:13: parser error : Entity 'Craig.Drummond' not defined
<author>&Craig.Drummond; &Craig.Drummond.mail;</author>


...and dozens of other similar errors.

fettouhi commented on 2012-07-14 18:18

I just rebuild kcm-ufw again after updating glibc but now it doesn't see ufw running and using it gives

Traceback (most recent call last): File "/lib/python2.7/site.py", line 563, in main() File "/lib/python2.7/site.py", line 545, in main known_paths = addusersitepackages(known_paths) File "/lib/python2.7/site.py", line 278, in addusersitepackages user_site = getusersitepackages() File "/lib/python2.7/site.py", line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/lib/python2.7/site.py", line 243, in getuserbase USER_BASE = get_config_var('userbase') File "/lib/python2.7/sysconfig.py", line 521, in get_config_var return get_config_vars().get(name) File "/lib/python2.7/sysconfig.py", line 420, in get_config_vars _init_posix(_CONFIG_VARS) File "/lib/python2.7/sysconfig.py", line 299, in _init_posix raise IOError(msg) IOError: invalid Python installation: unable to open //include/python2.7/pyconfig.h (No such file or directory)

msx commented on 2012-07-05 08:50

I could compile this package two days ago but now I get the following error:

[ 22%] Built target kcm_ufw_automoc
Linking CXX executable kcm_ufw_helper
[ 22%] Built target kcm_ufw_helper
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Full log here: http://pastebin.com/cAm7ZJHP

fettouhi commented on 2012-05-23 20:15

0.4.3 is out now!

Funkin-Stoopid commented on 2012-04-23 00:53

I have the same error message

MatejLach commented on 2012-04-11 19:18

I get the following error, when trying to add a rule (allow incoming for deluge)

Failed to insert rule.
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'

Any ideas?

MatejLach commented on 2012-04-11 19:01

This module does not seems to react on the ufw daemon, as my firewall is not enabled on startup - any ideas?

fettouhi commented on 2012-03-14 22:37

I spoke to the developer and he was unaware that ufw 0.31 was released. Since ufw 0.31 goes into Ubuntu 12.04 and he is still running 11.10. I gave him some output and will look into it.

Funkin-Stoopid commented on 2012-03-12 04:22

I can confirm but I think we should have to contact UFW KControl Module developer.

CyberConan commented on 2012-03-11 17:07

The config files path change with ufw 0.31, the kde module now don't work :(

Marvn commented on 2011-12-27 10:29

0.4.1 is out

msx commented on 2011-07-04 04:53

@Steve
Great, good job!

Anonymous comment on 2011-06-08 00:11

msx It turns out that Bleachbit was responsible for this in the end, so just whitelist /usr/share/apps/ksgmltools2/ folder and all is good.

adaptee - Sorry for all the spam ;)

Anonymous comment on 2011-05-24 17:11

Hi Mmsx Your bug report was closed as a downstream problem, I made an Arch bug report here:https://bugs.archlinux.org/task/24422 To be honest I don't know what's going on.
Steve

msx commented on 2011-05-02 03:20

Done, I filled a bug at the KDE bugtracker, thanks for your aid: Bug 272205 - A presumed bug in KDELIBS (latest-stable)

Anonymous comment on 2011-05-01 18:21

Well google turned up this thread http://www.linuxquestions.org/questions/slackware-14/slackware-13-1-installing-kmymoney-from-sb-868229/ so it seems the same is happening in slackware at least.

msx commented on 2011-04-30 19:28

@SteveK: tnx, that worked nice :D the thing is how we know it's an upstream bug and not an Arch KDE Team packaging bug? May be I should make aware the guys at the team about this glitch before reporting an upstream bug.
@adaptee sorry for all the fuzz!

Anonymous comment on 2011-04-28 08:43

@msx I had the same problem and reinstalling kdelibs (even though it was up to date) solved it. Guess it's a kde bug.

msx commented on 2011-04-28 01:02

@adaptee: still no luck here bro :( please check up this pastebin when you have a minute, thanks in advance!

http://pastebin.com/DATVnBPY

adaptee commented on 2011-04-21 04:53

@msx, thanks for your reminder

oops, forgot to add docbook-xml and docbook-xsl into makedepends(). It should build now

msx commented on 2011-04-21 01:37

Hi @adaptee, I'm having this problem since the new update when trying install from AUR: http://pastebin.com/3wVXWrEf

adaptee commented on 2011-02-25 15:04

@hdhoang, thanks for you reminder

hdhoang commented on 2011-02-25 13:51

Please patch usr/lib/kde4/libexec/kcm_ufw_helper.py to use python2, thanks.