ما هو الجدار الناري؟ (Motivation & Definition)
What is a Firewall? – Motivation & Definition
§1
يُمثل الجدار الناري خط الدفاع الأول في معمارية الأمان الهرمية (Prevention Layer). هو أي جهاز يُستخدم لمنع الغرباء من الوصول للشبكة. يقوم بمراقبة والتحكم في حركة المرور الواردة والصادرة بناءً على سياسات محددة، مما يمنع الحركة الخبيثة ويسمح بالشرعية. وظيفته الأساسية هي التحكم في الحركة بين "مناطق الثقة" (Zones of Trust)، مثل الإنترنت والشبكة المحلية.
A Firewall represents the first line of defense in a layered security architecture (Prevention Layer). It is any device used to prevent outsiders from gaining access to the network. It monitors and controls incoming and outgoing traffic based on policies, blocking malicious traffic while allowing legitimate ones. Its basic task is to control traffic between "zones of trust" (e.g., Internet vs. Intranet).
What Firewalls Examine
🔍 ماذا يفحص الجدار الناري؟
يقوم عادةً بفحص: مصدر الحركة (Source IP, Port)، وجهة الحركة (Destination IP, Port)، نوع البروتوكول، وأحياناً محتوى الحركة.
Usually examines: Source of traffic (IP, Port), Destination of traffic, Type of traffic (Protocol), and Content of traffic.
Design Goals
🎯 أهداف التصميم
يجب أن تمر كل الحركة عبره، ويسمح للمصرح به فقط. يجب أن يكون منيعاً ضد الاختراق. ويمثل توازناً (Tradeoff) بين الأمان والإنتاجية للموظفين.
All traffic must pass through it, only authorized traffic is allowed. Must be immune to penetration. Represents a tradeoff between security and productivity.
سياسات الوصول للجدار الناري — الإجراءات (Actions)
Firewall Access Policies & Actions
§2
تُحدد سياسات الجدار أنواع الحركة المصرح لها بالمرور (نطاقات العناوين، البروتوكولات، التطبيقات). بناءً عليها، يتخذ الجدار أحد الإجراءات الثلاثة التالية:
Firewall access policies determine the types of traffic authorized to pass (address ranges, protocols, apps). Based on these, the firewall takes one of three actions:
| الإجراءAction | الوصف في الجدار الناريDescription |
|---|---|
| Accepted (مقبول) | يُسمح للحزمة بالمرور عبر الجدار الناري وإكمال طريقها.Permitted to pass through the firewall successfully. |
| Dropped (مُسقَط) | لا يُسمح لها بالمرور، ولا يتم إرسال أي إشعار للمرسل برفضها (تجاهل صامت).Not allowed through, with NO indication of failure to the sender. |
| Rejected (مرفوض) | لا يُسمح لها بالمرور، ويتم إبلاغ المصدر برسالة تفيد برفض الحزمة.Not allowed through, accompanied by an attempt to inform the source. |
منهجيات بناء السياسات: القائمة السوداء مقابل البيضاء
Policies: Blacklists and Whitelists
§3
Blacklist Approach (Default-Allow)
المنهجية 1: القائمة السوداء (السماح الافتراضي)
يُسمح بمرور جميع الحزم باستثناء تلك التي تتطابق تحديداً مع القواعد في القائمة السوداء.
المزايا: مرن ولا يعطل سير العمل الطبيعي للشبكة.
العيوب: حركة خبيثة جديدة أو غير متوقعة قد تمر لأنها ليست في القائمة.
المزايا: مرن ولا يعطل سير العمل الطبيعي للشبكة.
العيوب: حركة خبيثة جديدة أو غير متوقعة قد تمر لأنها ليست في القائمة.
All packets are allowed except those matching specific rules in the blacklist.
Pros: Flexible, doesn't disrupt normal network service.
Cons: Unexpected forms of malicious traffic could slip through.
Pros: Flexible, doesn't disrupt normal network service.
Cons: Unexpected forms of malicious traffic could slip through.
Whitelist Approach (Default-Deny)
المنهجية 2: القائمة البيضاء (الرفض الافتراضي)
يتم إسقاط جميع الحزم ما لم يُسمح لها تحديداً بواسطة قواعد الجدار الناري.
المزايا: نهج أكثر أماناً لتحديد القواعد (A safer approach).
العيوب: يتطلب جهداً كبيراً لتحديد كل حركة مرور مشروعة ومطلوبة والسماح بها مسبقاً.
المزايا: نهج أكثر أماناً لتحديد القواعد (A safer approach).
العيوب: يتطلب جهداً كبيراً لتحديد كل حركة مرور مشروعة ومطلوبة والسماح بها مسبقاً.
Packets are dropped unless specifically allowed by the firewall ruleset.
Pros: A much safer approach to defining security.
Cons: Must explicitly consider and list all legitimate traffic.
Pros: A much safer approach to defining security.
Cons: Must explicitly consider and list all legitimate traffic.