Permanent Changes

Justin Brown justin.brown at fandingo.org
Tue Apr 8 18:58:19 UTC 2014


I'm trying to add a few services to the permanent configuration of a
zone using Python. I've gone over the DBus interface quite
extensively, but I can't figure out how to make
/org/fedoraproject/FirewallD1 addService() persistent.

I thought that /org/fedoraproject/FirewallD1/config addService() might
be correct, but the method doesn't seem to work (testing in
qdbusviewer) and has a drastically different method definition:

    <method name="addService">
      <arg direction="in" type="s" name="service"/>
      <arg direction="in" type="(sssa(ss)asa{ss})" name="settings"/>
      <arg direction="out" type="o"/>
    </method>

1) Is there a way through DBus to make a change permanent?
2) If not, how do I make permanent changes to a zone without using
firewall-cmd shell commands?

Thanks,
Justin


More information about the firewalld-devel mailing list