After download script following command as root server:
~$ cd /root
~$ git clone https://github.com/xcaro/iptables-firewall-shell-script.git scripts
~$ cd scripts
~$ chmod +x *.fw
Then, you can edit firewall rules as per your requirements:
~$ vi /root/scripts/start.fw
Install firewall:
~$ echo '/root/scripts/start.fw' >> /etc/rc.local
Start firewall from a shell prompt:
~$ /root/scripts/start.fw
Stop firewall from a shell prompt:
~$ /root/scripts/stop.fw