costales / gufw Goto Github PK
View Code? Open in Web Editor NEWLinux Firewall
License: GNU General Public License v3.0
Linux Firewall
License: GNU General Public License v3.0
Hello! I have a problem with this program in The Linux Mint OS. When I open the application, the OS close the session inmedietly, and I don't know why it happens. Someone has this problem also?
I installed gufw 20.04.1.
I want to either monitor or make a rule for Firefox, but this doesn't work. 'Report' tab never shows 'mozilla' or 'firefox', and there's no 'mozilla' or 'firefox' item in the Application list to even find in the drop-down menu to test out manually blocking firefox.
Why is detection of some apps or processes not working in this GUI?
costales@acer:~$ ls -ld /usr/lib/python*/site-packages/gufw/gufw.py | awk '{print $9}'
ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory
costales@acer:~$
I get this message if I try
"Immutable Rule. You can't edit a rule from ufw"
I was able to edit rules a week or so ago.
I also noticed all the "Name" columns are blank (I think they've been blank a while, maybe since upgrading to 20.04 LTS)
And now any new rules I add are now in blue text. All my old rules are (and always were) in red text.
Any idea whats going on?
Ubuntu 20.04 LTS
Hi! :-)
Requirements (at INSTALL, for Gufw 14.10+) are inaccurate.
I think they need updating.
good evening
I have linux mint 20 cinnamon and the firewall does not start on my system. I reinstalled gufw and it doesn't work.
when I turn on the firewall in the terminal, I get this error:
`` ValueError: Invalid int () literal base 10: 'WARN:' ''
When i click on the GUFW icon(shield) it gives me the login box and then i put in my password but then nothing happens it doesn't open into the GUFW app nothing opens this is in Kali Linux 20.0
Thank you
https://jellyfin.org/docs/general/administration/port-bindings.html
8096/tcp is used by default for HTTP traffic. This is admin configurable.
8920/tcp is used by default for HTTPS traffic. This is admin configurable.
1900/udp is used for service autodiscovery. This is not admin configurable as it would break client autodiscover.
Using 36" [1440x3440] screen with 24pt fonts. Gufw's default 8pt & 10pt fonts do not read the system recommended defaults, nor rescale the popup window size to ensure that the resulting window can contain the larger font size. This would be very useful for folks who have larger screens, and need larger displays to be able to see them. Thanks so much!
With other themes the launcher is OK, but the taskbar icon not.
the names of the rules are not displayed on v20.04.1 (Ubuntu 20.04).
On v18.04.0 (another machine with Ubuntu 18.04) names are shown
Current behaviour:
Select a pre-configured rule, e.g. SSH. Then press right arrow key in the bottom right to go to the advanced tab.
The From: and To: fields in the bottom of the window are greyed out. Only the [paste] button is functional, which normally pastes the current IP. This is useless since the fields remain greyed out and cannot be edited.
Expected behaviour:
The From: To: fields should ALWAYS be editable, and so the Port fields! This is what the Advanced tab is made for.
I would like to use standard rules (like SSH, SAMBA etc.) and edit them, for example to limit SSH access to the local network. This is a very common objective and should have been easy to accomplish.
Unfortunately the behaviour is very inconsistent. If I paste my IP using the paste button, it will come up with that IP whenever I create a new rule.
At the moment, the only way I can configure the IP range is by creating a simple rule, then go to Advanced. Only then are the fields NOT greyed out. If I then declare the local network, e.g. From: 192.168.1.0/24, it will show whenever I create a new predefined rule and go to the Advanced tab.
( I am on version 20.04.1 )
I do not know if this is a bug or not but when I add a deny rule it shows as green in my rule list, and red for the allow rules, which seems backwards.
Also, when I have a port blocked it will still appear in my firewall report but highlighted green, so I am unsure if that means that connection is still active or if the green means it is being blocked from connecting.
I have added a couple of images of my client below. Thank you :)
Hi Marcos -
Firstly, thank you for taking care of GUFW, it has served me well for many years!
Just one small observation I'd like to make, I'm colourblind and if it wasn't for my better half pointing it out to me then I would never know that there are two 'different' colours for the text in the picture.
For me, they look identical, I couldn't tell you that they were different. Although I am not ruling out that it might be something to do with my style settings or something.......
Completely understand if you have more important things to do, just thought I'd mention it.
Matt
Related to issues #25 (closed) and #54 (open), also PR #55 (closed without merge).
I have the same problem. All my rules were added by GUFW, they all have custom names. But as soon as I disable GUFW and reactivate it, all the rules become immutable, as if they were created by UFW and not by GUFW.
I think this is a bug, not an issue in my system or corrupted files.
I have tested here:
sudo cp /etc/gufw/Início.profile /etc/gufw/Início.profile.bak
sudo cp /etc/gufw/Início.profile.bak /etc/gufw/Início.profile
Look at this screenshot. Before disable GUFW and after reactivate it. The sizes changes. Profile is reseted!
I have tested to create a custom profile: Daniel.profile
. But the problem allways happens.
Manjaro KDE Plasma (latest release) w/additional Gufw packages installed, Gufw apparently turns itself off at shutdown & have to log in to turn firewall "on" each restart/power-on. Gufw log says "gufw on" multiple times in a row, with no "disabled" log in between due to this. I enabled Gufw at startup, however it still makes me login using admin pw & is in the "off" position until I turn it back on.
The first & only time Gufw (or my operating system settings) have failed me. Amazing project, love it otherwise!
Thanks!
sudo python3 setup.py install --prefix=/usr
Traceback (most recent call last):
File "/home/kali/gufw/setup.py", line 20, in
from DistUtilsExtra.auto import setup
ModuleNotFoundError: No module named 'DistUtilsExtra'
cd ..
rm -rf gufw
uname -ra
Linux kali 5.18.0-kali5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1kali6 (2022-07-07) x86_64 GNU/Linux
So i was intrigued to try gufw because it includes "Profiles" where i can set rules that i assumed would be kept independent from other profiles i create. It's like "Zones" in almost every firewall app. Great! ufw has been sorely lacking in that department. So now i should be able to switch to different sets of rules for different situations e.g. when i take my laptop outside i select "Public" to set the rules i want for publc. And when home i select "Home" for those other set of rules. No overlapping. Makes sense.
HOWEVER, upon testing it seems that is not what is being done. Huh? Is this a bug? It's clear that ALL rules are merged. So when i select different profiles all their rules are now exactly the same. I'm scratching my head in wondering how that makes sense. Version 22 so it's clear this is a feature??
Curious, if this is not a bug then I would love to know why profiles exist at all when at the end of the day rules created for each profile just get combined into one all encompassing ruleset. Maybe i am supposed to set something to prevent this?
Just now i see in the FAQ saying: "I see some rules in all profiles: All the ufw rules will be appear in all profiles"
Although i understand that ufw doesnt have any understanding of profiles (outside application.profile) I don't understand why gufw doesnt have it's own config file that keeps track of each user-created profile so when the user switches between them gufw removes the old rules from ufw and puts the new ones in place? Meaning, why is it necessary to merge all the rules, defeating the purpose of profiles?
Thanks for any clarification. I am going to assume that there must be some steps i am missing that stops this from happening because I can't possibly believe this is an intended feature. Maybe its a bug.
I am using Ubuntu 20.04 LTS ... I was using older gufw 20.04.1 via the Ubuntu store but came here to install the latest (22.04). Problem still exists.
Btw, your "INSTALL" file is out of date..the url doesnt work. You might want to set the url to this git instead.
Regards
when i try to run it my desktop asks for my password (like what happens when i run any other app that needs root priviliges) so I put it in and then nothing happens and when I run it in terminal the same thing happens exept I get this error:
"Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/gufw/gufw.py", line 30, in
gufw = Gufw(controler.get_frontend())
File "/usr/lib/python3.10/site-packages/gufw/gufw/view/gufw.py", line 80, in init
self._set_initial_values()
File "/usr/lib/python3.10/site-packages/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/lib/python3.10/site-packages/gufw/gufw/view/listening.py", line 35, in init
self._show_report()
File "/usr/lib/python3.10/site-packages/gufw/gufw/view/listening.py", line 47, in _show_report
report = self.gufw.frontend.get_listening_report()
File "/usr/lib/python3.10/site-packages/gufw/gufw/model/frontend.py", line 111, in get_listening_report
return self.firewall.get_listening_report()
File "/usr/lib/python3.10/site-packages/gufw/gufw/model/firewall.py", line 237, in get_listening_report
return self.backend.get_listening_report()
File "/usr/lib/python3.10/site-packages/gufw/gufw/model/ufw_backend.py", line 525, in get_listening_report
return_report.append('%'.join([actual_protocol, descomponent_fields[0], descomponent_fields[1], descomponent_fields[2], policy]))
IndexError: list index out of range"
Distro: EndavourOS (Based off of arch)
Warpinator is borked. gufw is borked. Both worked fine two days ago. Problem started yesterday. Update issue?
user@computer:~ $ gufw
/usr/bin/gufw: line 2: [: too many arguments
Error executing command as another user: Request dismissed
user@computer:~ $ sudo gufw
[sudo] password for user:
/usr/bin/gufw: line 2: [: =: unary operator expected
Traceback (most recent call last):
File "/usr/share/gufw/gufw/gufw.py", line 30, in
gufw = Gufw(controler.get_frontend())
File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 80, in init
self._set_initial_values()
File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 35, in init
self._show_report()
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 48, in _show_report
self._view_report(report, self.previous_report)
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 83, in _view_report
self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'
user@computer:~ $ gufw --version
/usr/bin/gufw: line 2: [: too many arguments
Error executing command as another user: Request dismissed
user@computer:~ $ sudo gufw --version
/usr/bin/gufw: line 2: [: =: unary operator expected
Traceback (most recent call last):
File "/usr/share/gufw/gufw/gufw.py", line 30, in
gufw = Gufw(controler.get_frontend())
File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 80, in init
self._set_initial_values()
File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 35, in init
self._show_report()
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 48, in _show_report
self._view_report(report, self.previous_report)
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 83, in _view_report
self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'
user@computer:~ $
I have attached the settings.
The problem is that, despite I enable the rule attached, that I have seen in https://gist.github.com/Necklaces/18b68e80bf929ef99312b2d90d0cded2 it does not work. I enable the firewall and the VPN stops working. I do not have any idea of what else could I do...
In the string "I see some rules in all profiles" You have forgotten Last character "?".
line 4006 in gufw.pot
I am using Google Translator. Forgive me if there is a grammar problem in my question.
sudo gufw
[sudo] Passwort für kevin:
/usr/bin/gufw: Zeile 2: [: =: Einstelliger (unärer) Operator erwartet.
ls: Zugriff auf '/usr/lib/python*/site-packages/gufw/gufw.py' nicht möglich: Datei oder Verzeichnis nicht gefunden
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Verbindung ist gescheitert: Connection refused
Basically the same issue as mentioned in the other open issue (which doesn't belong there): #9 (comment)
On ArcoLinux (based on Arch Linux) we have your version
21.04.0-1
package
https://archlinux.org/packages/community/any/gufw/
build
archlinux/svntogit-community@2321982?branch=2321982d0f254f345d927a9ee1622c28366278ca&diff=split
When starting our OS with lightdm gufw launches after giving the password.
When starting our OS with sddm gufw does NOT launch after giving the password.
Instead we get error messages.
Maybe if you see it, it gives you a clue what to look for.
Thanks in advance for your time.
This is the fix for the moment until we understand what is happening.
It seems that we can create our own rules. But when we do not know the ports the app is using it would be handy to have an option where we can select from a menu system or installed apps to add to a rule. Sorry i am not an IT pro so if this is an easy fix on my end i cant seem to find it.
Hello,
I'm trying to build 22.04.0 on Slackware 15.0
Just using python3 setup.py install --prefix=/usr --root=$PKG
in a build script, when I try to run gufw, I get back at the term;
gufw
python3: can't open file '/usr/share/gufw/gufw/gufw.py': [Errno 2] No such file or directory
With 21.04.0 I have this in my build script;
Point gufw-pkexec to the correct python3 location and version.
sed -i "s|lib/python3.5|lib$LIBDIRSUFFIX/python3.7|g" bin/gufw-pkexec
sed 's|/usr/share/gufw/gufw/gufw.py
But it doesn't seem to be working now with the latest gufw, I hope you can please fix this build issue.
THANKS
What can we expect for the next few months regarding this project? Will we still receive updates?
Hi!
Thank you for building Gufw! I've only discovered a week ago and was really delighted to finally discover such a nice and functional GUI. One feature I was looking for is the ability to show a nice visual indicator for the ufw status, at least for gnome, which I am currently using.
However I couldn't find anything like that so I decided to build it myself.
I thought people here would likely be interested in it, so please forgive my shameless plug to it :)
I've just released v1.0.0 and you can find more about it at https://github.com/illtellyoulater/ufw-status-indicator, where you'll more screenshots and detailed installing instructions.
Thank you again and I hope you guys will enjoy using it as much as I enjoy using Gufw.
Ubuntu 20.04
ufw 0.36
Copyright 2008-2015 Canonical Ltd.
user@user-pc:~/Downloads$ sudo gufw
/usr/bin/gufw: line 2: [: =: unary operator expected
ls: cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory
Traceback (most recent call last):
File "/usr/share/gufw/gufw/gufw.py", line 30, in <module>
gufw = Gufw(controler.get_frontend())
File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 80, in __init__
self._set_initial_values()
File "/usr/share/gufw/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 35, in __init__
self._show_report()
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 48, in _show_report
self._view_report(report, self.previous_report)
File "/usr/share/gufw/gufw/gufw/view/listening.py", line 83, in _view_report
self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'ERROR:'
$ ls -l /usr/lib | grep python
drwxr-xr-x 27 root root 24576 May 8 07:20 python2.7
drwxr-xr-x 3 root root 4096 Apr 26 2018 python3
drwxr-xr-x 29 root root 20480 May 8 07:19 python3.6
drwxr-xr-x 31 root root 20480 Jul 25 08:39 python3.8
I have 4 different python versions installed.
python3.8 does have a site-packages directory inside it. but there is no such package gufw.
Port: 8010/tcp
The build fails with the download release archive because it's missing this dir from the repo.
Builds from a git clone, but it's frowned upon to submit a script for my distro (Slackware) that uses any online methods of building besides fetching the available archive.
Would be grateful for a fix!
Hello guys!
I would like to report a problem that arose after updating my Linux distribution. When I start gufw from the command line I get the error messages below:
========================================================================
sudo gufw
Unable to init server: Could not connect: Connection refused
Unable to init server: Não foi possível conectar: Connection refused
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:16578): Gdk-CRITICAL **: 20:39:13.971: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:16578): Gtk-CRITICAL **: 20:39:13.971: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
/usr/bin/gufw, linha 13: 16578 Falha de segmentação (imagem do núcleo gravada)python3 ${LOCATIONS[${i}]} $1
========================================================================
I am using version 19.10 compiled from the packages made available by you at https://launchpad.net/gui-ufw. In consultation on the page I saw that they posted a bug referring to the same error I'm seeing when trying to open the GUFW graphical interface, but there is still no answer to the error found. I believe that the same error occurs with version 20.04, I will install it later and test it.
Launching as normal user just performs nothing (visually). On the command line,
$ gufw
==== AUTHENTICATING FOR com.ubuntu.pkexec.gufw ====
Authentication is required to run the Firewall Configuration
Authenticating as: Kunal (kunaltyagi)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized
This incident has been reported.
Why is there no escalation to superuser? Incidentally, my user has sudo privileges and an escalation to sudo (or gui fallback for sudo) would resolve this.
The app works fine in a normal session. But when I remoted my desktop through RDP connection (xrdp) and tried to open the app, nothing happened even after entering my user password.
OS: Ubuntu 21.04 - 64 bit.
I install the app in Ubuntu store.
Hi together,
I try to let gufw 20.04 work on debian bullseye. It is the version the apt-Installer got from the debian repository. First, I run to in an issue, where the gufw package was not found. To clean this issue, I point the executable path towards /usr/share/gufw/gufw.py by editing /usr/bin/gufw-pkexec. Then I restarted gufw-pkexec and the message "Could not determine the accessibility bus address" was around in the terminal. Besides, the firewall configuration window opened. At the version 22.04 the same issue appears. How this issue can be cleared?
with best regards,
MoDi86
Error on execution in Arch / Gnome 3.38.1
Binary 20.04.1, and builded from source 20.10.0 both crash.
# python3 /usr/lib/python3.8/site-packages/gufw/gufw.py
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/gufw/gufw.py", line 30, in <module>
gufw = Gufw(controler.get_frontend())
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 80, in __init__
self._set_initial_values()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 35, in __init__
self._show_report()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 48, in _show_report
self._view_report(report, self.previous_report)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 83, in _view_report
self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'
I wanted to add the predefined Chromecast rule but there is an error :
[26/08/2020 10:22:26] /usr/sbin/ufw allow out proto udp from any to any port 1900
[26/08/2020 10:22:25] Erreur lors de l'exécution de : /usr/sbin/ufw allow out proto tcp from any to any port 8008-8009 > ERROR: Bad port '8008-8009' |
[26/08/2020 10:22:24] Erreur lors de l'exécution de : /usr/sbin/ufw allow out proto udp from any to any port 32768-61000 > ERROR: Bad port '32768-61000' |
Ubuntu 20.04
gufw 20.04.01
Flatpak is a technology for building, distributing, installing and running applications – primarily targeted at the Linux desktop and desktop applications.
Hello there,
I have for some time been encountering a problem with gufw. I run Arch Linux with the 6.1.6 hardened kernel and Wayland/Sway as a desktop environment and display manager. I have installed ufw and gufw from the official sources. I was asking on different forums if someone has an idea to debug this, but unfortunately I got no answer resolving the problem. I hope someone on here can shed some light on the issue since I would not like to administer the firewall with a GUI sometimes.
Thank you.
Output from the terminal trying to start gufw:
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.059: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.059: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.059: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.059: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.059: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.059: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.059: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gdk-CRITICAL **: 21:12:26.060: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.060: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.061: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.061: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(gufw.py:3603393): Gtk-CRITICAL **: 21:12:26.061: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
/usr/bin/gufw-pkexec: line 2: 3603393 Segmentation fault (core dumped) python3 /usr/lib/python3.10/site-packages/gufw/gufw.py "$@"
There is some extra space in the line 711 & 2765 file:gufw.pot
"NASCAR Racing 2002/03 8 players"
_____________________^
"ManiaDrive HTTP server "
____________________^
It seems Forgot ";" at the end of line 2110 file:gufw.pot
"Network;Services;|Network;File Transfer"
________________________________^
hello. I am using gufw on ubuntu 20.
Since the firewall application pattern for each user group is different, [profile A. Profile B, C, ...] was created.
I want to operate two or more Profiles to be activated/deactivated and applied at the same time
The aws security group was really convenient, I made two or more security groups in advance for each condition, and applied more than two security groups to one vm.
=> I want to use gufw like the way aws security group is used, is there a way?
Hello, thank you for this useful piece of software !
My ufw configuration is invalid :
# ufw status
WARN: Duplicate profile 'mosh', using last found
Status: inactive
While this warning should be fixed on my side, it shouldn't crash gufw (version 20.04.1):
# gufw
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/gufw/gufw.py", line 30, in <module>
gufw = Gufw(controler.get_frontend())
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 80, in __init__
self._set_initial_values()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/gufw.py", line 283, in _set_initial_values
self.listening = ListeningReport(self)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 35, in __init__
self._show_report()
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 48, in _show_report
self._view_report(report, self.previous_report)
File "/usr/lib/python3.8/site-packages/gufw/gufw/view/listening.py", line 83, in _view_report
self.gufw.listening_model.set_value(iter_row, 1, int(line_split[1].strip())) # port
ValueError: invalid literal for int() with base 10: 'WARN:'
How to reproduce :
mosh
and ufw-extras
packges# cp /etc/ufw/applications.d/mosh{,2}
)This is a baffling behavior: turning the firewall off with the toggle button next to Status wipes out all gufw rules from its profile file. Toggling it back on reads them from UFW.
This wouldn't be a problem if not for the fact that Gufw cannot modify rules that originate from UFW, only remove them. So by a mere act of disabling/renabling firewall, user is left with immutable rules. Unless I'm missing something obvious, this is hardly a desirable behavior.
This was tested on latest Ubuntu 22. I believe there is Ubuntu bug that was filed over a year ago, but there seems to be no traction: https://bugs.launchpad.net/gui-ufw/+bug/1956171
This isn't a real problem but this issue will be a great user guide to use gufw
on Fedora. I haven't use this app in other versions of Fedora.
sudo gufw
and look the errors.Well, that's very simple.
I do something like this:
Follow the INSTALL instructions but that doesn't solves the problem.
The INSTALL
will replace the /usr/bin/gufw
and /usr/bin/gufw-pkexec
files so that's great because just one more step is needed:
Right now you should open /usr/bin/gufw-pkexec
file and change the file to:
#!/bin/bash
python3 /usr/lib/python3.9/site-packages/gufw/gufw.py $1
The old line have a wrong path. That's all.
Hello,
I'm running Gufw 21.04.0 with ufw-0.36.1 and rsyslog-8.2110.0 on Slackware 14.2.
When I look at the Log section in Gufw, it only shows me this info;
[01/17/2022 09:29:43 PM] ufw Logging: Medium
[01/17/2022 09:29:35 PM] Gufw Log: Removed
I have /var/log/ufw.log where I see various logging info like;
Jan 17 19:50:57 slack kernel: [UFW AUDIT] IN= OUT=tun0 SRC=10.23.0.33 DST=10.23.0.1 LEN=70 TOS=0x00 PREC=0x00 TTL=64 ID=64565 DF PROTO=UDP SPT=60289 DPT=53 LEN=50
Jan 17 19:50:57 slack kernel: [UFW ALLOW] IN= OUT=tun0 SRC=10.23.0.33 DST=10.23.0.1 LEN=70 TOS=0x00 PREC=0x00 TTL=64 ID=64565 DF PROTO=UDP SPT=60289 DPT=53 LEN=50
Jan 17 19:50:57 slack kernel: [UFW AUDIT] IN= OUT=tun0 SRC=10.23.0.33 DST=10.23.0.1 LEN=74 TOS=0x00 PREC=0x00 TTL=64 ID=64622 DF PROTO=UDP SPT=52840 DPT=53 LEN=54
I thought this type of logging information would also appear in the Gufw log section?
Here is a screen shot of Gufw, showing only those 2 lines I mentioned before.
I appreciate the Firewall and ease of use configuration.
My home network is systems are all DHCP. I don't want to modify my router to manage static IP addresses. I was setting up a remote desktop connection through REMMINA and I had to address firewall settings on my Linux Mint Laptop. Yes, I have the latest version installed and Linux Mint is up-to-date. I am not usually into firewall settings unless to do something like this. I found that I need to put in the actual IP address of my Windows PC. I can certainly ping it by its router name.
For example a windows PC name =
"DESKTOP-ABC123XYZ.fios-router.home" I can ping it by "DESKTOP-ABC123XYZ" as well.
You cannot even put in "LOCALHOST" to refer to the self-named. However you can inject the local IP Address of the Linux machine.
Error Bad destination address.
Error Bad source address.
Am I missing something? I tried to find information in the HELP, but it's just a info pop-up.
Please help.
Thanks.
I'm using this program on my Arch Linux system and for some reasons it doesn't start on boot; instead I have to manually start the service.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.