># sh -c ‘ip6tables-restore -t < /etc/sysconfig/ip6tables’
If you have entered everything correctly, then you will get absolutely zero
response when entering the sh commands. That is a good thing.
Shut down FirewallD and Start iptables
Enter the following as one single command:
># systemctl stop firewalld && systemctl start iptables;
systemctl start ip6tables
Verify iptables and ip6tables
># iptables -S
># ip6tables -S
SSH from another console
While this might seem a bit redundant, this is where you want to be
absolutely certain you can get back into your server. Open another console
window and try to ssh to your server.
C:\Users\You> ssh
[email protected]
If you are unable to login then you need to go back and correct something.
Otherwise we can proceed to remove FirewallD from the system.
Disable FirewallD and Enable iptables
># systemctl disable firewalld
># systemctl mask firewalld
># systemctl enable iptables
># systemctl enable ip6tables
># systemctl status iptables
># systemctl status ip6tables
The status commands should give a response similar to the following. If
you see “Active: active (exited) since ….” that means everything is working
normally. (Yes, I realize it can be confusing).