🔥 Firewall Rule Builder

Generate iptables and ufw firewall rules visually. Fill in the form, get a ready-to-paste shell command — no syntax memorization needed.

🔥 방화벽 규칙 생성기

iptablesufw 방화벽 규칙을 시각적으로 생성하세요. 폼을 채우면 바로 복사할 수 있는 쉘 명령어가 생성됩니다 — 명령어 암기 불필요.

Generated Rule
Fill in the form to generate a rule…
ℹ️ ufw does not support the FORWARD chain. Use iptables mode for forward rules, or enable IP forwarding manually with iptables -A FORWARD ...
ℹ️ ufw는 FORWARD 체인을 지원하지 않습니다. 포워드 규칙은 iptables 모드를 사용하거나, iptables -A FORWARD ... 명령어를 직접 입력하세요.
Script Builder
Add rules above to build a script…

How to use this tool

Step 1

Choose firewall type

Pick iptables for low-level control or ufw for a simpler interface. Both are common on Ubuntu/Debian servers.

Step 2

Fill in the options

Set direction, action, protocol, port, and source/destination IPs. Leave optional fields blank to generate a broader rule.

Step 3

Copy or add to script

Copy the single rule, or click "Add to Script" to accumulate multiple rules into a complete bash script.

Step 4

Run on your server

SSH into your server and paste. Run as root or with sudo. Always test in a safe environment first.

사용 방법

Step 1

방화벽 유형 선택

세밀한 제어가 필요하면 iptables, 더 간단한 인터페이스를 원하면 ufw를 선택하세요. 둘 다 Ubuntu/Debian 서버에서 일반적으로 사용됩니다.

Step 2

옵션 입력

방향, 동작, 프로토콜, 포트, 출발지/목적지 IP를 설정하세요. 선택 항목은 비워두면 더 넓은 범위의 규칙이 생성됩니다.

Step 3

복사 또는 스크립트 추가

단일 규칙을 복사하거나 "스크립트에 추가"를 클릭해 여러 규칙을 완전한 bash 스크립트로 모으세요.

Step 4

서버에서 실행

서버에 SSH 접속 후 붙여넣기하세요. root 또는 sudo로 실행하고, 항상 안전한 환경에서 먼저 테스트하세요.

Frequently Asked Questions

자주 묻는 질문

iptables is the low-level Linux kernel firewall tool — it gives you full control but requires knowing its exact syntax. ufw (Uncomplicated Firewall) is a frontend that simplifies common firewall tasks. For most Ubuntu VPS setups, ufw is recommended; for advanced scenarios like NAT, packet marking, or FORWARD chains, use iptables directly.
iptables는 리눅스 커널의 저수준 방화벽 도구로, 완전한 제어가 가능하지만 정확한 문법 숙지가 필요합니다. ufw(Uncomplicated Firewall)는 일반적인 방화벽 작업을 단순화한 프론트엔드입니다. Ubuntu VPS 설정에는 ufw를 권장하며, NAT·패킷 마킹·FORWARD 체인 등 고급 시나리오에서는 iptables를 직접 사용하세요.
ufw rules are persistent by default — they survive reboots. iptables rules are NOT persistent by default and will be lost after a reboot. To persist iptables rules on Debian/Ubuntu, install iptables-persistent and run netfilter-persistent save. On RHEL/CentOS, use service iptables save.
ufw 규칙은 기본적으로 영구 적용되어 재부팅 후에도 유지됩니다. iptables 규칙은 기본적으로 영구 적용되지 않으며 재부팅 시 초기화됩니다. Debian/Ubuntu에서는 iptables-persistent를 설치하고 netfilter-persistent save를 실행하세요. RHEL/CentOS에서는 service iptables save를 사용하세요.
DROP silently discards packets — the sender gets no response and must wait for a timeout. This is good for hiding that a port/service even exists. REJECT sends back an error response (TCP RST or ICMP unreachable) immediately, so the sender knows the connection was refused. REJECT gives a better user experience for internal networks; DROP is preferred for blocking external attackers.
DROP은 패킷을 조용히 버립니다 — 발신자는 응답을 받지 못하고 타임아웃을 기다려야 합니다. 포트나 서비스의 존재 자체를 숨기는 데 유용합니다. REJECT는 즉시 오류 응답(TCP RST 또는 ICMP unreachable)을 전송하므로 발신자가 연결이 거부되었음을 즉시 알 수 있습니다. 내부 네트워크에는 REJECT, 외부 공격자 차단에는 DROP을 권장합니다.
Enter a colon-separated range in the Port field: 8000:8090. This generates --dport 8000:8090 for iptables or 8000:8090 for ufw. Both tools support port ranges natively. Note that for ufw, you must also specify a protocol (tcp or udp) when using port ranges — this tool does that automatically.
포트 필드에 콜론으로 구분된 범위를 입력하세요: 8000:8090. iptables에는 --dport 8000:8090으로, ufw에는 8000:8090으로 생성됩니다. 두 도구 모두 포트 범위를 기본 지원합니다. ufw의 경우 포트 범위 사용 시 프로토콜(tcp 또는 udp)을 반드시 지정해야 하며, 이 도구가 자동으로 처리합니다.
No. All rule generation happens entirely in your browser using JavaScript. Nothing you type is sent to any server. Your IP addresses and network configuration stay private.
아니요. 모든 규칙 생성은 JavaScript를 사용하여 브라우저 내에서만 처리됩니다. 입력한 내용은 어떤 서버에도 전송되지 않습니다. IP 주소와 네트워크 구성 정보는 완전히 비공개로 유지됩니다.

Sponsor

Get started on Vultr

Get $300 free credit — valid for 30 days (limited-time offer)

Claim your credit →