Report this

What is the reason for this report?

enabled UFW locks me out, my web pages doesn´t work, SSH also not, rulles applied

Posted on December 16, 2016

I have upgraded my droplet from 12.04 to 16.04.01 LTS. As soon I enable UFW nothing works, no SSH, no web. Rules were reapplied, like they were in previous system, see below, I have flushed iptables, reinstalled UFW. Can´t figure out what else it can be? Also when I reboot system UFW is diabled.

RULES

tuple ### allow tcp 80 0.0.0.0/0 any 0.0.0.0/0 in

-A ufw-user-input -p tcp --dport 80 -j ACCEPT

tuple ### allow tcp 443 0.0.0.0/0 any 0.0.0.0/0 in

-A ufw-user-input -p tcp --dport 443 -j ACCEPT

tuple ### allow tcp 25 0.0.0.0/0 any 0.0.0.0/0 in

-A ufw-user-input -p tcp --dport 25 -j ACCEPT

tuple ### allow tcp 22 0.0.0.0/0 any 0.0.0.0/0 OpenSSH - in

-A ufw-user-input -p tcp --dport 22 -j ACCEPT -m comment --comment ‘dapp_OpenSSH’

tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in

-A ufw-user-input -p tcp --dport 22 -j ACCEPT -A ufw-user-input -p udp --dport 22 -j ACCEPT

tuple ### allow any 25 0.0.0.0/0 any 0.0.0.0/0 in

-A ufw-user-input -p tcp --dport 25 -j ACCEPT -A ufw-user-input -p udp --dport 25 -j ACCEPT

END RULES

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.