Step-by-Step Guides์ถœ์ฒ˜: DigitalOcean์กฐํšŒ์ˆ˜ 1

How To Set Up a Firewall Using firewalld on CentOS

By Justin Ellingwood
2026๋…„ 3์›” 12์ผ
**How To Set Up a Firewall Using firewalld on CentOS**

Introduction Firewalld is a dynamic firewall management tool available on many modern Linux distributions. On modern systems (including CentOS Stream 10), firewalld typically programs rules using the nftables packet filtering framework under the hood, while iptables is a different (lower-level) interface for managing Netfilter rules directly. In this guide, you will install and enable firewalld, inspect the default zone configuration, and learn how to safely open access for common services and custom ports using firewall-cmd. You will also learn how zones work in practice, how runtime rules differ from permanent rules, and how to avoid accidentally locking yourself out of a remote server over SSH while making changes. Finally, you will create custom services and zones for more tailored policies, and walk through common troubleshooting steps and FAQs...

---

**[devsupporter ํ•ด์„ค]**

์ด ๊ธฐ์‚ฌ๋Š” DigitalOcean์—์„œ ์ œ๊ณตํ•˜๋Š” ์ตœ์‹  ๊ฐœ๋ฐœ ๋™ํ–ฅ์ž…๋‹ˆ๋‹ค. ๊ด€๋ จ ๋„๊ตฌ๋‚˜ ๊ธฐ์ˆ ์— ๋Œ€ํ•ด ๋” ์•Œ์•„๋ณด์‹œ๋ ค๋ฉด ์›๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.