Centos 7 Firewall open a port

Use this command to find your active zone(s): firewall-cmd –get-active-zones It will say either public, dmz, or something else. You should only apply to the zones required. In the case of dmz try: firewall-cmd –zone=dmz –add-port=2888/tcp –permanent Otherwise, substitute dmz for your zone, for example, if your zone is public: firewall-cmd –zone=public –add-port=2888/tcp –permanent Then…

Limiting access iptables

This is a Script that I use to deploy and script iptables. Sample handles ssh and mysql it’s easy to extend. #!/bin/bash # # iptables example configuration script # # Flush all current rules from iptables # iptables -F # # Allow SSH connections on tcp port 22 # This is essential when working on…