التقاط حركة المرور وفحصها باستخدام tcpdump
استكمل أدوات الشبكات والأمان لديك بالتقاط الحزم المباشرة وتطبيق عوامل التصفية باستخدام tcpdump لتشخيص مشكلات الاتصال والأمان.
التقاط حركة المرور وفحصها باستخدام tcpdump درس مجاني في Linux Command Line Mastery على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Linux Command Line Mastery، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Linux Command Line Mastery 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Seeing the Wire
Diagnostics like ping and dig tell you whether something works, but sometimes you need to see the actual packets. tcpdump captures network traffic in real time.
Listing Interfaces
First find which interface to listen on with -D. Common names are eth0, wlan0, or en0.
sudo tcpdump -DA Basic Capture
-i selects the interface. Capturing requires root because it reads raw packets.
sudo tcpdump -i eth0Limiting the Capture
-c stops after N packets so the terminal does not flood, useful for a quick look.
sudo tcpdump -i eth0 -c 10Filtering by Host
Capture filters narrow the noise. host limits to traffic to/from one address.
sudo tcpdump -i eth0 host 8.8.8.8Filtering by Port
Use port to focus on a service. Here we watch only HTTPS traffic.
sudo tcpdump -i eth0 port 443Combining Filters
Filters combine with and, or, not for precise targeting.
sudo tcpdump -i eth0 tcp and port 22 and not host 10.0.0.1Readable Output Flags
-n skips DNS lookups (faster, shows IPs), and -v adds detail. -A prints packet payloads as ASCII.
sudo tcpdump -i eth0 -nv port 80Saving to a File
-w writes raw packets to a .pcap file you can analyze later, e.g. in Wireshark.
sudo tcpdump -i eth0 -w capture.pcapReading a Capture
-r replays a saved capture, and you can still apply filters while reading.
tcpdump -r capture.pcap port 443Security Use Cases
tcpdump helps spot unexpected outbound connections, confirm a firewall rule is blocking traffic, or verify that sensitive data is encrypted on the wire.
Quick Check
What does the -w option do in tcpdump?
Recap
You can now inspect live traffic:
-ipicks the interface,-climits count- Filters:
host,port, combined withand/or/not -n/-v/-Ashape output-wsaves and-rreads.pcapfiles
tcpdump turns invisible packets into a debuggable stream.
تعلم Linux Command Line Mastery مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 12
- الدروس
- 48
الأسئلة الشائعة
هل درس «التقاط حركة المرور وفحصها باستخدام tcpdump» مجاني؟
نعم — نص درس «التقاط حركة المرور وفحصها باستخدام tcpdump» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Linux Command Line Mastery، انتقل إلى CoddyKit PRO. تتضمن دورة Linux Command Line Mastery 4 دروس في المجموع.
ماذا ستتعلم في «التقاط حركة المرور وفحصها باستخدام tcpdump»؟
استكمل أدوات الشبكات والأمان لديك بالتقاط الحزم المباشرة وتطبيق عوامل التصفية باستخدام tcpdump لتشخيص مشكلات الاتصال والأمان. تتمرن على Linux Command Line Mastery مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Linux Command Line Mastery؟
لا تُشترط خبرة سابقة. Linux Command Line Mastery على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «التقاط حركة المرور وفحصها باستخدام tcpdump»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Linux Command Line Mastery هذا؟
نعم. كل درس في Linux Command Line Mastery يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- تشخيص الشبكة: `traceroute` و`nslookup` و`dig`
- إدارة جدار الحماية: `ufw` و`firewalld` و`iptables`
- إدارة مفاتيح Secure Shell
- التقاط حركة المرور وفحصها باستخدام tcpdump