Skip to content

Instantly share code, notes, and snippets.

View jeanpaul-mupagasi's full-sized avatar
🇷🇼
You don't have to be great to get started, you have to get started to be great.

Mupagasi Jean-Paul jeanpaul-mupagasi

🇷🇼
You don't have to be great to get started, you have to get started to be great.
View GitHub Profile
@logeshvar
logeshvar / firewalld-config.sh
Last active August 25, 2021 09:30
For CentOS 7.x, the following is the firewalld configuration for Bahmni
# Run script with sudo privilege
# Install firewalld
yum install firewalld -y
# Stops and masks iptables if already running
systemctl stop iptables
systemctl mask iptables
# Enable and start firewalld
systemctl start firewalld
@gsluthra
gsluthra / setup-bahmni-firewall.sh
Last active August 25, 2021 09:30
Firewall settings for Bahmni (Allow only SSH, and Browser access to http, https and openerp. Block everything else). If you are using to setup on Digtial Ocean / CentOS v7.6, then scroll to bottom for comments.
# Refer to this link to understand below rules: https://wiki.centos.org/HowTos/Network/IPTables
# Set default input policy to ACCEPT
iptables -P INPUT ACCEPT
# Flush all current rules!
iptables -F
# Allow localhost interface
iptables -A INPUT -i lo -j ACCEPT