l-n-s / wireguard-install

WireGuard VPN server installer
MIT License
656 stars 166 forks source link

UFW #40

Closed canusuck closed 5 years ago

canusuck commented 5 years ago

After installing UFW, I encounter a problem

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

or

#-A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT
l-n-s commented 5 years ago

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.