วิธีการแก้ปัญหา "nf_conntrack: table full, dropping packet"
Back to articles

วิธีการแก้ปัญหา "nf_conntrack: table full, dropping packet"

วิธีการแก้ปัญหา "nf_conntrack: table full, dropping packet"

Network Updated: January 30, 2026

วิธีการแก้ปัญหา "nf_conntrack: table full, dropping packet"

ปัญหา

คุณอาจพบปัญหาในเซิร์ฟเวอร์ของคุณที่แสดงข้อความ:
nf_conntrack: table full, dropping packet
ใน /var/log/messages.

ข้อความนี้บ่งบอกว่ามีการเชื่อมต่อจำนวนมากเข้ามายังเซิร์ฟเวอร์ของคุณ ค่าเริ่มต้นสูงสุดของ nf_conntrack_max สำหรับ CentOS คือ 65536. ถึงแม้ว่าค่านี้จะเหมาะสมกับเซิร์ฟเวอร์ที่ใช้งานน้อย แต่เซิร์ฟเวอร์ที่มีการจราจรเข้ามามากอาจต้องปรับเพิ่มค่านี้.

วิธีการแก้ไข

คุณอาจจำเป็นต้องปรับเพิ่มค่านี้แบบชั่วคราวหรือถาวร ควรปรึกษาผู้เชี่ยวชาญด้านระบบก่อนทำการเปลี่ยนแปลง:

  1. ตรวจสอบจำนวนการเชื่อมต่อที่กำลังถูกติดตาม:
cat /proc/sys/net/netfilter/nf_conntrack_count

ตรวจสอบค่าสูงสุดปัจจุบันของ nf_conntrack

cat /proc/sys/net/netfilter/nf_conntrack_max

เปลี่ยนค่าชั่วคราวเพื่อเพิ่มค่า

echo 524288 > /proc/sys/net/netfilter/nf_conntrack_max
แก้ไขเสร็จสิ้น

D

DriteStudio | ไดรท์สตูดิโอ

Cloud, VPS, Hosting and Colocation provider in Thailand

Operated by Craft Intertech (Thailand) Co., Ltd.

Manage your cookie settings

We use different types of cookies to optimize your experience on our website. Click on the categories below to learn more and customize your preferences. Note that blocking some types of cookies may impact your experience.

Necessary Cookies

These cookies are essential for the website to function properly. They enable basic functions like page navigation and access to secure areas.

View cookies used
  • Session cookies (session management)
  • Security cookies (CSRF protection)
Always On

Functional Cookies

These cookies enable personalized features like language preferences and theme settings. Without these, some features may not work properly.

View cookies used
  • lang (language preference)
  • theme (dark/light mode)

Analytics Cookies

These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

View cookies used
  • _ga (Google Analytics)
  • _gid (Google Analytics)

Marketing Cookies

These cookies are used to track visitors across websites to display relevant advertisements based on your interests.

View cookies used
  • Advertising cookies
  • Remarketing pixels

Privacy Policy