Giter Site home page Giter Site logo

gufw's People

Contributors

costales avatar dominikborkowski avatar ediw8311xht avatar gschwaer avatar jbicha avatar jeremy447 avatar muzena avatar thibaultmol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gufw's Issues

Unable to init server: Could not connect: Connection refused

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.

No site-packages for python path

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:~$

gufw on debian bullseye "Could not determine the accessibility bus address"

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

Can the choice of the display manager influence gufw?

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.

https://pastebin.com/ChBxQGPN

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.

https://youtu.be/NiDwG0Z4IQU

Chromecast rule doesn't work

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

Installer does not work in Kali

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

Cannot run

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)

/usr/bin/gufw-pkexec: line 2: 3603393 Segmentation fault

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 "$@"

Status toggle button wipes out gufw rules from the profile, and reloads them from ufw

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

LM 20.3 /usr/bin/gufw: line 2: [: too many arguments

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:~ $

Warning/errors in profiles are not handled

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 :

  • Archlinux : Install both mosh and ufw-extras packges
  • Other distros : Copy any profile to another file (# cp /etc/ufw/applications.d/mosh{,2})

Thanks for Gufw! I just released a visual indicator for the gnome status bar which plays nice with it

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.

ufw-status-indicator-ufw-enabled

A few extra space

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"
________________________________^

Is this a Bug? Profiles Just Merge All Rules -- So, What's the Point of Profiles?

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

22.04 /usr/share/gufw/gufw/gufw.py - missing

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 $1|/usr/lib64/python'"${PYTHONVERSION}"'/site-packages/gufw/gufw.py "$@"|' -i bin/gufw-pkexec

But it doesn't seem to be working now with the latest gufw, I hope you can please fix this build issue.

THANKS

From: / To: fields greyed out when going from pre-configured to Advanced tab

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.

Missing "DEV_extra_translations" from 24.04 release

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!

cannot access '/usr/lib/python*/site-packages/gufw/gufw.py': No such file or directory - Ubuntu 20.04

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.

Rule names not shown

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

Booting issue

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

The app won't open in RDP session.

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.

How to apply multi-profile?

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?

ValueError: invalid literal for int() with base 10: 'WARN:'

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:'

Profiles are reset after deactivated

Related to issues #25 (closed) and #54 (open), also PR #55 (closed without merge).

  • gufw 22.04.0-0ubuntu1

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:

  1. I made a backup of my gufw profile: sudo cp /etc/gufw/Início.profile /etc/gufw/Início.profile.bak
  2. Disabled and reactivated gufw: all rules become immutable as if they were created by UFW.
  3. Disabled gufw again.
  4. Restored profile backup: sudo cp /etc/gufw/Início.profile.bak /etc/gufw/Início.profile
  5. Enabled gufw again: now all the rules are gufw and i can edit them again.

Look at this screenshot. Before disable GUFW and after reactivate it. The sizes changes. Profile is reseted!

Captura de tela de 2023-07-10 10-57-41

I have tested to create a custom profile: Daniel.profile. But the problem allways happens.

Any profile is reseted once disabled.

Also, PR #55 fixed this issue, but was closed without merge and any discussion.

....and it all becomes clear

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.......

colours

Completely understand if you have more important things to do, just thought I'd mention it.

Matt

Fonts don't match system size

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!

IP address only? Why not computer name/device name?

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.

Gufw 21.04.0 - Log section Empty?

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.

gufw

Can't edit existing rules anymore

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

'/usr/lib/python*/site-packages/gufw/gufw.py' not found Ubuntu 20.04

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)

Not able to add individual apps to rules.

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.

Gufw doesn't autostart

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.

Installation problem using Fedora 34 and RPM Sphere

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.

Reproduce

  • Make a clean installation of fedora 34 and use RPM Sphere to install gufw. By default gufw isn't available on Fedora 34 repos.
  • Run sudo gufw and look the errors.

How to fix them

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.

forgot "?" character

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.

Gufw in linux mint 20 cinnamon

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:' ''

No escalation to superuser

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.

Gufw doesn't recognise apps like Mozilla Firefox?

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?

Gufw error in Linux Mint 20 (session closed )

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?

Interface highlight colors for deny/allow rules seem to be swapped.

( 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 :)

rules

report

Gufw closes at shutdown

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.

Screenshot_20200812_014022

The first & only time Gufw (or my operating system settings) have failed me. Amazing project, love it otherwise!

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.