উইন্ডোজ ডিফেন্ডার ফায়ারওয়াল সক্ষম ও কনফিগার করার সম্পূর্ণ পদ্ধতি
উইন্ডোজ ১০/১১-এ বিল্ট-ইন **Windows Defender Firewall** একটি শক্তিশালী হোস্ট-বেইজড ফায়ারওয়াল যা ডিফল্টভাবে অন থাকে। নিচে এটি অন/অফ, কনফিগার এবং ভেরিফাই করার সব পদ্ধতি দেওয়া হলো।
১. উইন্ডোজ সিকিউরিটি অ্যাপ থেকে (সর্বোত্তম GUI পদ্ধতি)
- Win + I → Settings → Privacy & security → Windows Security।
- Firewall & network protection এ ক্লিক করুন।
- তিনটি নেটওয়ার্ক প্রোফাইল দেখবেন:
- Domain network (করপোরেট/এডি ডোমেইন)
- Private network (হোম/অফিস - ডিসকভারেবল)
- Public network (কফি শপ, এয়ারপোর্ট - অননুমোদিত)
- প্রতিটি প্রোফাইলে ক্লিক করুন → **Microsoft Defender Firewall** টগল **On** করুন।
২. কন্ট্রোল প্যানেল (Classic View)
- Win + R →
control→ System and Security → Windows Defender Firewall। - বাম প্যানেল থেকে Turn Windows Defender Firewall on or off।
- Private & Public networks উভয়েই Turn on সিলেক্ট করুন → OK।
৩. কমান্ড লাইন (CMD / PowerShell Admin) — অটোমেশন/স্ক্রিপ্টিংয়ের জন্য
# সব প্রোফাইলে ফায়ারওয়াল অন করুন (CMD Admin):
netsh advfirewall set allprofiles state on
# নির্দিষ্ট প্রোফাইল:
netsh advfirewall set domainprofile state on
netsh advfirewall set privateprofile state on
netsh advfirewall set publicprofile state on
# PowerShell (আধুনিক):
Set-NetFirewallProfile -Profile Domain,Private,Public -Enabled True
# স্ট্যাটাস চেক:
Get-NetFirewallProfile | Format-Table Name, Enabled -AutoSize
৪. Group Policy (Enterprise/Pro Edition) — কেন্দ্রীয় বান্দোবস্ত
- Win + R →
gpedit.msc। - Computer Configuration → Administrative Templates → Network → Network Connections → Windows Firewall → Domain/Private/Public Profile।
- Windows Firewall: Protect all network connections → Enabled।
- Inbound/Outbound rules লক করুন যাতে ইউজার বদলাতে না পারে।
৫. রেজিস্ট্রি (Registry) — এডভান্সড (সতর্কতা অবলম্বন করুন)
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile
Value: EnableFirewall = 1 (DWORD)
Path: ...\StandardProfile (Private) & ...\PublicProfile
Value: EnableFirewall = 1
৬. Microsoft Defender SmartScreen (ব্রাউজার/অ্যাপ লেভেল সিকিউরিটি)
- Settings → Privacy & security → Windows Security → App & browser control।
- Reputation-based protection settings → সব টগল **On** করুন:
- Check apps and files (SmartScreen for Microsoft Store apps)
- SmartScreen for Microsoft Edge
- Potentially unwanted app blocking
৭. Network Discovery ও File Sharing সেটিংস (ফায়ারওয়ালের সাথে সম্পর্কিত)
- Settings → Network & Internet → Advanced network settings → Advanced sharing settings।
- Private network: Network discovery **On**, File and printer sharing **On**।
- Public network: Network discovery **Off**, File sharing **Off** (সিকিউরিটি জন্য)।
৮. ইনবাউন্ড/আউটবাউন্ড রুল তৈরি (एडভান্সড সিকিউরিটি)
- Win + R →
wf.msc(Windows Defender Firewall with Advanced Security)। - Inbound Rules → New Rule → Program/Port/Predefined/Custom।
- Example: ব্লক করুন টেলনেট (Port 23) → New Rule → Port → TCP → 23 → Block the connection → All Profiles → Name: "Block Telnet"।
- Outbound Rules-এও সারিয়ে রul বানান (যেমন: ব্লক করুন টেলনেট আউটবাউন্ড)۔
৯. ফায়ারওয়াল ডিফল্টে রিস্টোর (যদি সমস্যা হয়)
- Control Panel → Windows Defender Firewall → Restore defaults (বাম প্যানেল) → Restore defaults → Yes।
- CMD:
netsh advfirewall reset।
ফায়ারওয়াল বন্ধ রাখা কেন খারাপ?
- পোর্ট স্ক্যান, এক্সপ্লয়েট, র্যানসমওয়েয়ার, লেটারাল মুভমেন্টের রাস্তা খোলা দেয়।
- করপোরেট পলিসি ও সাইবার ইনশুরেন্সের প্রায়শই ফায়ারওয়াল অন থাকা ম্যান্ডেটরি।
- থার্ড-পার্টি ফায়ারওয়াল (Norton, Bitdefender, Kaspersky) ইনস্টল করলে উইন্ডোজ ফায়ারওয়াল অটো অফ হয়—তবে যেকোনো একটা অবশ্যই অন থাকতে হবে।
ভেরিফিকেশন: ফায়ারওয়াল কাজ করছে কিনা চেক করুন
netsh advfirewall show allprofiles→ State ON থাকবে।- PowerShell:
Get-NetFirewallProfile | Where-Object {$_.Enabled -eq 'True'}। - Gibson Research "ShieldsUP!" (grc.com) দিয়ে এক্সটার্নাল পোর্ট স্ক্যান করুন।
সারমর্ম: উইন্ডোজ ডিফেন্ডার ফায়ারওয়াল **অন রাখুন সব প্রোফাইলে**। এন্টারপ্রাইজে Group Policy/Intune দিয়ে এনফোর্স করুন। এডভান্সড সিকিউরিটি (wf.msc) দিয়ে গ্রানুলার রুল বানান। এটি ফ্রি, লাইটওয়েট এবং এন্টারপ্রাইজ-গ্রেড সুরক্ষা দেয়।