sudo ufw status
on my Debian server initially showed the following configuration:
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
I've been able to successfully allow http connections via sudo ufw allow http
which yielded the following:
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
80 ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
80 ALLOW Anywhere (v6)
What is the command to reverse this? I've tried sudo ufw deny http
, but now sudo ufw status
is different than originally (it now explicitly lists that http is denied):
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
80 DENY Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
80 DENY Anywhere (v6)
Is this the same as my initial config, or is there a different command to revert sudo ufw allow http
?
sudo ufw delete allow http
and worked as desired. – Conchoidal