Skip to content

Ramblings and Thoughts

  • About

Ramblings and Thoughts

Networking, Computers, Life

Adjusting the Firewall under Ubuntu

December 8, 2019 by cbogdon

The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall configuration, ufw provides a user friendly way to create an IPv4 or IPv6 host-based firewall. By default UFW is disabled.

Enable or Disable

To turn UFW on with the default set of rules:

sudo ufw enable

To check the status of UFW:

sudo ufw status verbose

To disable ufw use:

sudo ufw disable

To Allow SSH Connections from a specific or range of IP Addresses:

sudo ufw allow from 123.123.123.123 to any port 22 proto tcp

sudo ufw allow from 123.123.123.0/24 to any port 22 proto tcp

Post navigation

Previous Post:

How to manually increase the upload file size in WordPress

Next Post:

Mail.app in macOS keeps crashing or closing on its own

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tags

Apache Carbon Copy Cloner Chrome Cisco Crashplan HTML iOS iClou Linux MySQL Nexus NXAPI Omnifocus OSX Outlook PyCharm Pytest Python Quicken Samsung TV Ubuntu VMWare Wordpress Youtube
© 2025 Ramblings and Thoughts | WordPress Theme by Superbthemes