I am new to Ubuntu firewall and I have Ubuntu 20.04 server.
All ports 8080, 81 ... are externally available, but when I tried telnet IP 80
I received
telnet: Unable to connect to remote host: Connection refused
ufw status verbose
is:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
80 ALLOW IN Anywhere
80/tcp ALLOW IN Anywhere
22/tcp ALLOW IN Anywhere
4000 ALLOW IN Anywhere
443 ALLOW IN Anywhere
80/tcp (Nginx HTTP) ALLOW IN Anywhere
81 ALLOW IN Anywhere
80 (v6) ALLOW IN Anywhere (v6)
80/tcp (v6) ALLOW IN Anywhere (v6)
22/tcp (v6) ALLOW IN Anywhere (v6)
4000 (v6) ALLOW IN Anywhere (v6)
443 (v6) ALLOW IN Anywhere (v6)
80/tcp (Nginx HTTP (v6)) ALLOW IN Anywhere (v6)
81 (v6) ALLOW IN Anywhere (v6)
Similar questions that helps me to extend my knowledge about the topic:
https://serverfault.com/questions/129086/how-to-start-stop-iptables-on-ubuntu
Port 80 connection refused
The last link guides to restart the iptables, but I hope that I have missed something else and I don't have to restart my iptables.
Please guide me what better to do in this situation, and how to receive an public access to my host with port 80.
Big thanks for the support.