Currently I'm trying to setup my ssl in docker instance. I'm trying to check if these ports are allowed in my firewall
Port: 443 and 4021
I've searched that allowing specific port for firewall using this terminal command
sudo ufw allow 4021
But how can I check and see all the ports allowed in my firewall?
If you configure all your firewall setting with ufw, then
ufw status
would show you the ports. But sometimes (in my experience) this doesn't show all configured firewall ports and options.You would get a general output with:
iptables -L -v -n
All you have to do is
ufw status