I have UFW running on my server. When I restart it:
$sudo ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
1194/udp ALLOW Anywhere
5550 ALLOW Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
8000 ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
1194/udp (v6) ALLOW Anywhere (v6)
5550 (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
8000 (v6) ALLOW Anywhere (v6)
When I try to run it however, my ports 8000 and 1194 are currently being blocked.
When I run:
$sudo ufw disable
$sudo ufw enable
Then the ports are open. When I run status after that, it is the exact same as previously pasted.
I'm having same issue with my http and https ports that they are blocked by ufw by reboot. After i disable and enable UFW all ports are running from my UFW firewall rules. Same with sudo ufw reload command.
So i create a workaround by my machine and create a system.d service which starts a simple script in /etc/systemd/system/firewall.service.
Then my script is simple
At least i setup to start my init.d on boot
Then all my ports works after a reboot fine. It's maybee a workaround of this issue.