Iptables vs nftables: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Template migration to LLM-Optimized Wiki Template)
(Fix: remove --- horizontal lines (7 removed))
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


---


== Purpose ==
== Purpose ==
Line 28: Line 27:
* Non-goals: 다른 주제로의 확장
* Non-goals: 다른 주제로의 확장


---


== Key Concepts ==
== Key Concepts ==
Line 42: Line 40:
|}
|}


---


== Detailed Explanation ==
== Detailed Explanation ==
Line 67: Line 64:
  iptables -A INPUT -i lo -j ACCEPT
  iptables -A INPUT -i lo -j ACCEPT


---


== Best Practices ==
== Best Practices ==
Line 75: Line 71:
* 테스트 환경에서 먼저 검증
* 테스트 환경에서 먼저 검증


---


== References ==
== References ==
Line 81: Line 76:
* [https://wiki.hpcmate.com Iptables vs nftables]
* [https://wiki.hpcmate.com Iptables vs nftables]


---


== Related Pages ==
== Related Pages ==
Line 90: Line 84:
* [[Network]]
* [[Network]]


---


[[Category:Linux]]
[[Category:Linux]]
== Knowledge Graph ==
Related
→ [[Linux]]
→ [[Server]]
→ [[Hardware]]
→ [[Network]]
[[Category:Configuration]]
[[Category:Configuration]]

Latest revision as of 11:29, 17 July 2026

Template:Status

Template:TOC

Overview

Iptables vs nftables에 대한 기술 문서입니다.

Summary

  • 무엇인가? - Iptables vs nftables
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


Purpose

이 문서가 존재하는 이유

  • Goal: Iptables vs nftables에 대한 기술 정보 제공
  • Scope: Iptables vs nftables의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장


Key Concepts

Concept Description Related
Iptables vs nftables HPC/서버 환경에서 중요한 기술 개념 Linux, Server


Detailed Explanation

iptables is a generic firewalling software that allows you to define rulesets. Each rule within an IP table consists of a number of classifiers (iptables matches) and one connected action (iptables target). iptables has been a core component of Linux firewall solutions, offering flexibility and robust control over network traffic. However, its complex syntax can be intimidating. nftables is the successor of iptables, it designed to address some of the limitations seen in iptables with Linux kernel 3.13 in 2014, it allows for much more flexible, scalable and performance packet classification. This is where all the fancy new features are developed.

iptables nftables
allows incoming SSH traffic on port 22 iptables -A INPUT -p tcp --dport 22 -j ACCEPT nft add rule ip filter input tcp dport 22 accept
Allow incomming traffics on port 80 and 443
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -p tcp --dport 80 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT


Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증


References


Related Pages

Knowledge Graph

Related

LinuxServerHardwareNetwork