This used to work. It pings my internet provider.
ping 47.182.239.232 -c 1
PING 47.182.239.232 (47.182.239.232) 56(84) bytes of data.
--- 47.182.239.232 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
UFW is turned off.
I tried this as well followed by a reboot.
Add the following to the /etc/ufw/before.rules file:
# allow outbound icmp
-A ufw-before-output -p icmp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
-A ufw-before-output -p icmp -m state --state ESTABLISHED,RELATED -j ACCEPT
After editing the file, run the command:
sudo ufw reload
ping 47.182.239.232 -c 1
PING 47.182.239.232 (47.182.239.232) 56(84) bytes of data.
--- 47.182.239.232 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
UFW is turned off.
I tried this as well followed by a reboot.
Add the following to the /etc/ufw/before.rules file:
# allow outbound icmp
-A ufw-before-output -p icmp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
-A ufw-before-output -p icmp -m state --state ESTABLISHED,RELATED -j ACCEPT
After editing the file, run the command:
sudo ufw reload