Networking Fundamentals
හැඳින්වීම (Introduction)
ඔබ cybersecurity ඉගෙනගන්න කැමති නම්, මුලින්ම networking හොඳට තේරුම් ගන්න ඕන.
හැම attack එකක්ම, හැම defense එකක්ම, scan එකක්ම, investigation එකක්ම
👉 network එකක් හරහා තමයි සිද්ධ වෙන්නේ.
බොහෝ beginners ලා Nmap, Metasploit වගේ tools වලට එකපාර පනිනවා.
නමුත් data එක computer එකක්කින් තවත් එකකට යන්නේ කොහොමද කියලා දන්නේ නැතිනම්
ඒක පයින් යන්න ඉගෙනගන්න කලින් දුවන්න හදනවා වගේ.
මේ article එකෙන් networking fundamentals
👉 simple English ideas + real commands + real examples එක්ක explain කරනවා.
Network එකක් කියන්නේ මොකක්ද? (Simple Explanation)
Network එකක් කියන්නේ devices කිහිපයක් එකිනෙක connect වෙලා communicate කරන system එකක්.
උදාහරණ:
ඔබගේ phone එක + Wi-Fi router එක + Internet
Office එකක computers
Data center එකක servers
Network එකක device එකක්ට අවශ්ය දේවල්:
IP address → identity එක
DNS → names හඳුනාගන්න
Routing → data යන පාර
IP Address: Device එකේ Identity එක
IP address කියන්නේ computer එකක phone number එක වගේ.
උදාහරණ:
192.168.1.10
Linux / Kali වල IP බලන්න:
ip a
Output එකක්:
inet 192.168.1.15/24
මේකෙන් අදහස් වෙන්නේ:
ඔබගේ system IP =
192.168.1.15Local network එකකට belong වෙනවා
Cybersecurity වල IP වැදගත් ඇයි?
Attackers IP ranges scan කරනවා
Defenders suspicious IP monitor කරනවා
IP වැරදි නම් → Internet නැහැ
“ලිපිනය වැරදි නම්, ලිපිය වැරදි ගෙදරට යනවා”
Ports: Computer එකේ Doors
Computer එකට එක දොරක් විතරක් නෑ.
👉 Ports 65,535ක් තියෙනවා.
එක් එක් port එකක් service එකකට.
Common ports:
80 → HTTP (websites)
443 → HTTPS (secure websites)
22 → SSH (remote login)
21 → FTP (file transfer)
Open ports බලන්න:
ss -tuln
Port එක open නම්:
Service එක listen කරනවා
Security point
Open port එකක් කියන්නේ
👉 attack entry point එකක්.
DNS: Names → IP Translation
මිනිස්සු names මතක තියාගන්නවා.
Computers numbers භාවිතා කරනවා.
DNS (Domain Name System)
👉 website name එක IP address එකකට convert කරන system එක.
උදාහරණ:
google.com → 142.250.xxx.xxx
DNS test කරන්න:
nslookup google.com
DNS fail නම්:
Internet connect වෙලා තියෙනවා
Website open වෙන්නේ නෑ
Security risks:
DNS spoofing
Fake websites
Traffic redirect attacks
Routing: Data යන පාර
Routing කියන්නේ data packet එක
👉 මොන පාරෙන් යන්නද කියලා තීරණය කරන process එක.
Linux system එක:
Local network
Router
VPN
Internet
මේවා අතර routing table එකක් තියෙනවා.
Routing table බලන්න:
ip route
Example:
default via 192.168.1.1
අර්ථය:
Internet traffic router එකට යනවා
Routing වැදගත් ඇයි?
Wrong route → server unreachable
VPN issues
Cloud problems
Real Cybersecurity Example
Scenario: Website එක load වෙන්නේ නෑ
Security analyst කෙනෙක් check කරන විදිහ:
1️⃣ IP තියෙනවද?
ip a
2️⃣ DNS working ද?
nslookup example.com
3️⃣ Port open ද?
nmap -p 80,443 example.com
4️⃣ Route correct ද?
ip route
👉 90% problems solve වෙන්නේ
basic networking checks වලින්.
Cybersecurity වල Networking Fundamentals වැදගත් ඇයි?
Networking දන්න කෙනෙක්:
Attack paths තේරුම් ගන්නවා
Tools හරියට use කරනවා
Defense plan හදනවා
Troubleshooting fast
අවශ්ය වන fields:
Ethical Hacking
SOC Analyst
Network Security
Cloud Security
Incident Response
Beginner Practice (Safe Way)
ඔබගේ system එකේ try කරන්න:
ip a
ip route
ping google.com
nslookup google.com
ss -tuln
Observe කරන්න:
IP
Routes
DNS response
Open ports
Networking කියන්නේ cybersecurity එකේ foundation එක.
Exploit එකකට කලින්:
IP එකක් තියෙනවා
Port එකක් තියෙනවා
Route එකක් තියෙනවා
Network එකක් තියෙනවා
Basics හොඳට තේරුම් ගත්තොත්:
Advanced topics easy
Confidence වැඩි
Career strong

Comments
Post a Comment