root@debian:~# sudo ufw disable && sudo ufw enable
Firewall stopped and disabled on system startup
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
ERROR: problem running ufw-init
ip6tables-restore: line 2 failed
I want to block ICMP traffic
add to /etc/ufw/before.rules
-A ufw-before-input -p icmp --icmp-type echo-request -j DROP
I don't know anything about ufw. This script set up iptables rules and save them to /etc/iptables/rules.v4, it also uses iptables-persistent package to restore those rules after reboot.
After installing UFW, I encounter a problem
I want to block ICMP traffic
add to /etc/ufw/before.rules
or