Need the following firewalld commands (CentOS7/RHEL7)
Allow connections on Port
Allow connection from IP (any open port)
Deny connection from IP (any open port)
Stop/Start/Restart the firewall
Allow connections on port from IP deny rest
You should give several examples of each command, and they should work with a single or multiple IP as well as IP ranges in cidr format, and also IPv4 and IPv6 examples.
Also all rules should work together, IE, I can allow access to one IP server wide, and allow access to another IP for only one port.
And I should be able to:
add 1 IP, add a 2nd IP, add a 3rd IP, remove the 2nd IP online, and the 1st and 3rd IP still have access.
Bonus if you can make a small script to do this, with an allow and deny file.