firewalld 22.04
Jerry Geis
jerry.geis at gmail.com
Mon Feb 26 18:57:37 UTC 2024
I ran this script:
/usr/bin/firewall-cmd --new-zone 000-allow --permanent
/usr/bin/firewall-cmd --zone=000-allow --add-source=10.20.0.0/16
--permanent
/usr/bin/firewall-cmd --reload
And I get this error: - What did I do wrong ??? I am trying to Create a new
ZONE before BLOCK zone - so my local connections that are "trusted" skip
all the 55K entries in my firewall. AS I read it I needed a new zone name
"alphabetically" before block or drop.
I get this error:
ERROR:dbus.proxies:Introspect error on
:1.6:/org/fedoraproject/FirewallD1/config: dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible
causes include: the remote application did not send a reply, the message
bus security policy blocked the reply, the reply timeout expired, or the
network connection was broken.
ERROR:dbus.connection:Unable to set arguments ('000-allow', {'version': '',
'short': '', 'description': '', 'target': '{chain}_{zone}', 'services':
dbus.Array([], signature=dbus.Signature('s')), 'ports': dbus.Array([],
signature=dbus.Signature('(ss)')), 'icmp_blocks': dbus.Array([],
signature=dbus.Signature('s')), 'masquerade': False, 'forward_ports':
dbus.Array([], signature=dbus.Signature('(ssss)')), 'interfaces':
dbus.Array([], signature=dbus.Signature('s')), 'sources': dbus.Array([],
signature=dbus.Signature('s')), 'rules_str': dbus.Array([],
signature=dbus.Signature('s')), 'protocols': dbus.Array([],
signature=dbus.Signature('s')), 'source_ports': dbus.Array([],
signature=dbus.Signature('(ss)')), 'icmp_block_inversion': False,
'forward': False}) according to signature None: <class 'TypeError'>:
Expected a string or unicode object
Error: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/firewall/client.py", line 50, in
_impl
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/firewall/client.py", line 2704, in
addZone
path = self.fw_config.addZone2(name, settings.getSettingsDbusDict())
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in
__call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in
__call__
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 643, in
call_blocking
message.append(signature=signature, *args)
TypeError: Expected a string or unicode object
ERROR:dbus.proxies:Introspect error on
:1.6:/org/fedoraproject/FirewallD1/config: dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible
causes include: the remote application did not send a reply, the message
bus security policy blocked the reply, the reply timeout expired, or the
network connection was broken.
Thanks
jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240226/6b80d5fb/attachment.html>
More information about the ubuntu-users
mailing list