---
title: "Discussion on \"Controlling Port Access with UFW\" | Hashnode"
description: "Discussion on \"Controlling Port Access with UFW\". step-by-step guide to install, set sane defaults, allow SSH/HTTP(S), restrict ports by IP/subnet, enable safely and verify rules to avoid lockouts."
url: "https://hashnode.com/posts/controlling-port-access-with-ufw/69e32c00974506f6b3a72c87"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Controlling Port Access with UFW](https://blog-alfian.hashnode.dev/controlling-port-access-with-ufw?utm_source=hashnode&utm_medium=feed)

step-by-step guide to install, set sane defaults, allow SSH/HTTP(S), restrict ports by IP/subnet, enable safely and verify rules to avoid lockouts.

Apr 18 · 3 min read · blog-alfian.hashnode.dev  
Read the article

-   [#ufw](https://hashnode.com/tag/ufw)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#ubuntu-2404](https://hashnode.com/tag/ubuntu-2404)
-   [#hardening](https://hashnode.com/tag/hardening)
-   [#site-reliability-engineering](https://hashnode.com/tag/site-reliability-engineering)
-   [#sre](https://hashnode.com/tag/sre)
-   [#firewall](https://hashnode.com/tag/firewall)

## Written by

[Muhammad Alfian Tirta Kusuma](https://hashnode.com/@alfian08)

@alfian08 · Central Java, Indonesia

  
[View profile](https://hashnode.com/@alfian08)

Cloud Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
