see comments below
On 09/01/2015 02:47 PM, Anand Nekkunti
wrote:
Hi All
From firewalld doc and my experiments , I understood that we don't
have any option to add/remove port to/from service
runtime/permanent (this can double for zone) . The only way is
modifying service xml file but it requires firewall reload (which
cause the loosing run time settings).
Is there any way to reload firewall without loosing run
time settings or is there any way to reload particular service.
Regards
Anand.N
On 09/01/2015 12:49 PM, Christopher
Blum wrote:
There is a function in the d-bus interface:
getZoneOfInterface(s:
interface) → s
that will return the current zone of the interface and
you can then add ports to that interface.
As far as I see it, the hooks get only executed when I
start the volume, right? So when I created and started the
volume, but then change the zone of the interface, we need
to detect that (I guess it would be enough to handle that on
reboot) and move the ports/services to the new zone.
Regarding Org.fedoraproject.firewalld1.config.service - I
think that would need additional tests if that is really
only for the persistent config, or if the changes are also
applied in the running config.
it seems firewalld not supporting for run time service
update, but we can add and remove ports
from zone
we can get the services which are enabled in zone using
below command
firewall-cmd --zone=$zone --list-services
I have updated hook script in my patch[1] , it identify
the zones which have gluster services enabled and it add/remove the
port in zone(s) so that we can avoid
firewall reload. I have tested this script with different
test cases
[1].http://review.gluster.org/#/c/11989/
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel
|
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel