Advertisement
Guest User

firewalld go back to iptables

a guest
Apr 28th, 2020
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Explore -- Should see "FirewallBackend=nftables"
  4. sudo cat /etc/firewalld/firewalld.conf | grep FirewallBackend=
  5.  
  6. # Change this to iptables
  7. sudo sed -i 's/FirewallBackend=nftables/FirewallBackend=iptables/g' /etc/firewalld/firewalld.conf
  8.  
  9. # Confirm -- Should now see "FirewallBackend=iptables"
  10. sudo cat /etc/firewalld/firewalld.conf | grep FirewallBackend=
  11.  
  12. # Restart firewalld and docker
  13. sudo systemctl restart firewalld docker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement