Skip to content

Instantly share code, notes, and snippets.

@logeshvar
Last active August 25, 2021 09:30
Show Gist options
  • Save logeshvar/e212af5f5425defd614c28d04a7e93d9 to your computer and use it in GitHub Desktop.
Save logeshvar/e212af5f5425defd614c28d04a7e93d9 to your computer and use it in GitHub Desktop.
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
systemctl enable firewalld
# Remove the default dhcp service in default zone
firewall-cmd --remove-service=dhcpv6-client --permanent
# Add http, https and ssh services for Bahmni
firewall-cmd --add-service=ssh --permanent
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent
# Add port to allow access to openerp Bahmni
firewall-cmd --add-port=8069/tcp --permanent
# Save the Configuration made
firewall-cmd --reload
# List all configurations for all zones
firewall-cmd --list-all
@gsluthra
Copy link

Can you describe what all does this enable and what does it disable?

@logeshvar
Copy link
Author

Can you describe what all does this enable and what does it disable?

Added as comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment