Easy firewall with UFW
Published by Vitaly Musin on May 29th, 2017
apt install ufw && \
ufw reset && \
ufw default deny incoming && \
ufw default allow outgoing && \
ufw allow ssh && \
ufw allow 80/tcp && \
ufw allow 443/tcp && \
ufw allow from 5.141.82.47 && \
ufw allow ntp && \
ufw enable && \
ufw status