On 08/17/2015 03:22 PM, Christopher
Blum wrote:
I prefer second option(by hooks) because of easy implementation and configuration is permanent , I have written script glusterfs_firewall.sh(find attached file) using this we can create Glusterfs service and add/delete port to service(it also add Glusterfs firewall service to default zone ). 1. Default ports : This script need be called during post installation so that it creates Glusterfs firewall service with default ports and enables Glusterfs service in default zone. #glusterfs_firewall.sh -r 2. Ports for bricks - this script need be called by hooks by passing port number after allocating brick port by glusterd. #glusterfs_firewall.sh -p port_num (ex: glusterfs_firewall.sh -p 41700) 3. Ports Deallocation - ports can be removed from Glustrerfs service(during brick stop) # glusterfs_firewall.sh -d port_num (ex: glusterfs_firewall.sh -d 41700)
|
Attachment:
glusterfs_firewall.sh
Description: application/shellscript
_______________________________________________ Gluster-devel mailing list Gluster-devel@xxxxxxxxxxx http://www.gluster.org/mailman/listinfo/gluster-devel