Hi Guys I recently have made the transition to Centos 7 and have been playing with firewalld I wanted to create a basic bash script
to automate the configuration process and would gradually like to add more and more advanced concepts to it with the input of you guys.
I am a noob when it comes to scripting and figured this project could benefit a few people and speed up the config process. I wish to
document the process so that others can add and gain knowledge.
The initial layout / process of the script I have in mind is the following please feel free to add / input and aid me on my quest

Since this forum is full of Linux Gods on a different level of knowledge to myself.If you have some free time please feel free input my goal is to document everything so others can gain something from this project.
(Rough layout of Firewalld Configuration Script Version 1.0 )
1) Script loads and checks if user is running as root if not script exits:
2) User is presented with a menu with the following options: - Start firewalld, Stop, Status, disable iptables,
add service - user presented with a menu of popular services to allow through firewall i.e ssh, http, samba ( all services are added permanent )
remove service does the same as above but removes services.
add ports, remove ports ( user specifies a port range and wheter it's UDP / TCP options are made permanent)
menu options for the following? : List rules, get services, reload firewall, enable at boot?
3) Advanced configuration options - takes user to another menu with the following options:
: get default zone information
: get active zones
: get zones - show all available zones
: set default zone to : home, public,
:assign ip address to a zone:
restart: system
So that is the kind of script I want to initially start building the order above will need some input and tweaking. Please feel free to comment and to input /
aid me final script will be available for anyone to use