In rhel 7 the command to manage the firewall is firewall-cmd. iptables is still there but with the zoning concept the output from iptables -L is rather hard to read. Get the active zonefirewall-cmd --get-active-zones By default the active zone should be "public" View the rules for the public zonefirewall-cmd --zone=public --list-all To permanently remove a service. example dhcpv6-clientfirewall-cmd --zone=drop --permanent --remove-service=dhcpv6-client Note: when we use permanent the firewall needs to be reloaded before it is applied. without permanent it takes effect immediately or portfirewall-cmd --zone=drop --remove-port=8080/tcp --permanent To permanently add a services. example dnsfirewall-cmd --zone=drop --permanent --add-service=dns or portfirewall-cmd --zone=drop --add-port=8080/tcp --permanent open port for a specific hostfirewall-cmd --permanent --zone=drop --add-rich-rule='rule family="ipv4" source address="10.81.226.26/32" port protocol="tcp" port="8080" accept' removefirewall-cmd --permanent --zone=drop --remove-rich-rule='rule family="ipv4" source address="10.80.114.112/32" port port="9200" protocol="tcp" accept' To reload the firewallfirewall-cmd --reload Get status of the firewallfirewall-cmd --state Start/Stop the firewallsystemctl start|stop firewalld Open a range of portsfirewall-cmd --zone=drop --permanent --add-port=50001-50100/tcp Open all to one hostfirewall-cmd --permanent --zone=drop --add-rich-rule='rule family="ipv4" source address="10.80.114.111" accept' Allow all within 255.255.0.0 netwaskfirewall-cmd --permanent --zone=drop --add-rich-rule='rule family="ipv4" source address="10.80.0.0/16" port protocol="tcp" port="8080" accept'