can anyone spot what is wrong with this? As soon as I run the script i'm locked out of my server and need to restart it. It's blocking ssh at a minimum. I'm using port 6789 for ssh.
Thanks for any help.
According to the CentOS documentation, they say
So you need to set INPUT to Allow. Flush the rules. Add your SSH ALLOW rule, then set INPUT to DROP. So in your case, you can probably change line 12 to ALLOW and move it up before you flush your rules, than at the very end of the script before you finalize everything, put