Guest User

firewalld go back to iptables

a guest
Apr 28th, 2020
214
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data