<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alestin shelmon on Medium]]></title>
        <description><![CDATA[Stories by Alestin shelmon on Medium]]></description>
        <link>https://medium.com/@alestinshelmon1?source=rss-a4fc7b0fb07d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MxeFA8BUq4O_EV_p</url>
            <title>Stories by Alestin shelmon on Medium</title>
            <link>https://medium.com/@alestinshelmon1?source=rss-a4fc7b0fb07d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:47:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alestinshelmon1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding IP Addressing]]></title>
            <link>https://alestinshelmon1.medium.com/understanding-ip-addressing-20f9e60dcec4?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/20f9e60dcec4</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Mon, 14 Jul 2025 06:58:17 GMT</pubDate>
            <atom:updated>2025-07-14T06:58:17.549Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Backbone of Networking</strong></p><p>Building on our exploration of <strong>LANs (Local Area Networks) and WANs (Wide Area Networks)</strong>, we now turn to a fundamental aspect of networking IP addressing. It serves as the backbone of communication, ensuring data reaches the correct destination, whether you’re browsing the web, streaming content, or sending emails.</p><p>In this blog, we’ll break down IP addressing, compare <strong>IPv4</strong> and <strong>IPv6</strong>, distinguish between <strong>public</strong> and <strong>private IPs</strong>, <strong>Types of IPv4</strong>, explore <strong>static</strong> vs. <strong>dynamic addresses</strong>, and dive into <strong>subnetting</strong>, a key concept for optimizing network efficiency and security.</p><p>By the end, you’ll have a clear understanding of how IP addressing works and why it plays a crucial role in modern networking.</p><h3>What Is an IP Address?</h3><p>An <strong>Internet Protocol (IP) address</strong> is a unique identifie<strong>r</strong> assigned to a device on a network. Think of it as a <strong>home address</strong> for devices it ensures that data reaches the right destination.</p><p>Whenever a device connects to a network, whether it’s a computer, smartphone, server, or router, it is assigned an IP address. Without IP addresses, devices wouldn’t know how to communicate with each other, making the internet and local networking impossible.</p><h3>The Two Versions of IP Addressing: IPv4 vs. IPv6</h3><p>There are two major versions of IP addresses in use today:</p><h3>IPv4 (Internet Protocol Version 4)</h3><p>IPv4 is the <strong>most commonly used version</strong> of IP addressing. It uses a <strong>32-bit</strong> address format, written as</p><h4><strong>Example of an IPv4 Address:</strong> 192.168.1.1</h4><ul><li><strong>Network Part</strong>: The <strong>first 24 bits</strong> (192.168.1) represent the network address.</li><li><strong>Host Part</strong>: The <strong>remaining 8 bits</strong> (1) represent the unique device (host) in the network.</li></ul><p>This means they are divided into four octets (8-bit segments), separated by dots (.).Each number in an IPv4 address can range from <strong>0 to 255</strong>. This gives us a total of<strong> approximately 4.3 billion possible addresses</strong>. With the rise of the internet, 4.3 billion addresses are <strong>not enough</strong> to support the growing number of devices. This is where <strong>IPv6</strong> comes in.</p><h3>IPv6 (Internet Protocol Version 6)</h3><p>IPv6 was introduced to <strong>solve IPv4 exhaustion</strong>. It uses a <strong>128-bit</strong> address format, written in <strong>hexadecimal</strong> and separated by colons.</p><h4><strong>Example of an IPv6 Address:</strong> fe80::1</h4><p>With IPv6, we get <strong>340 undecillion addresses</strong> (a number so large it’s practically limitless). IPv6 also includes <strong>built-in security and efficiency improvements</strong> over IPv4.</p><p>Despite being an older protocol, <strong>IPv4 is still the backbone of modern networking</strong>. It remains widely used due to its simplicity, compatibility, and deep integration into existing infrastructure.</p><h3>IP Address Classes</h3><p><strong>IPv4 addresses are divided into five different classes: A, B, C, D, and E</strong>. These classes help determine <strong>network sizes, IP allocation, and their intended use</strong>.</p><h3>The Five Classes of IPv4 Addresses</h3><p>IPv4 addresses are written in <strong>dotted decimal format</strong>, where each address consists of <strong>four octets</strong> (groups of 8 bits) separated by dots. Depending on the <strong>value of the first octet</strong> (the first number in the IP address), an IP falls into a specific class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*WVjSDV_nEv-7Kl72" /></figure><h3>How These IPs Are Used</h3><h4><strong>Class A (Big Enterprises &amp; ISPs):</strong></h4><ul><li>A company like <strong>Amazon AWS</strong> might own a <strong>Class A</strong> network (10.0.0.0/8), allowing them to allocate millions of private IPs across their global cloud infrastructure.</li></ul><h4><strong>Class B (Universities &amp; Large Businesses):</strong></h4><ul><li>A university like <strong>MIT</strong> might use a <strong>Class B</strong> network (172.16.0.0/12) to assign IPs to thousands of students and faculty members across multiple campuses.</li></ul><h4><strong>Class C (Home &amp; Small Offices):</strong></h4><ul><li>A small office or home Wi-Fi network might use <strong>Class C</strong> IPs (192.168.1.0/24) to connect personal laptops, mobile phones, and smart devices.</li></ul><h4><strong>Class D (Multicast Streaming):</strong></h4><ul><li>When a <strong>YouTube live stream</strong> is broadcasted to thousands of viewers, it uses <strong>Class D multicast addresses</strong> to efficiently distribute data without overwhelming the network.</li></ul><h4><strong>Class E (Experimental Use):</strong></h4><ul><li><strong>Tech research labs</strong> might use <strong>Class E</strong> addresses (240.0.0.0/4) for testing new network protocols that could shape the <strong>future of the internet</strong>.</li></ul><h3>Public vs. Private IP Addresses</h3><p>Every device connected to the internet needs an IP address, but the role and visibility of these IP addresses differ greatly. <strong>Private IP addresses</strong> are used internally within networks, whereas <strong>public IP addresses</strong> allow devices to communicate globally over the internet. Understanding this distinction is vital for security, efficiency, and smooth communication within local and wide-area networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q1OzKOAofvdDMNVH" /></figure><h4>Private IP Addresses:</h4><p>Private IP addresses are used within internal networks such as homes, offices, and corporate environments. These IPs ensure devices can communicate with each other without directly exposing them to the outside world.</p><p>Private IP addresses function like “internal” addresses, used only within the boundaries of a local network. For example:</p><p>You may have multiple devices within your home (laptop, smartphone, smart TV), all assigned unique private IP addresses, but they share a single public IP when accessing the internet. Private IPs are assigned to devices within the internal network, while a single public IP is shared to communicate externally with the internet.</p><p>Think of Private IPs Like Apartment Numbers:</p><p>Each device in a home or office is like an apartment in a building, each with its own number (private IP), but the building shares a single street address (public IP) visible to the outside world. Just like mail from outside comes to the building’s street address, network requests from the internet are routed to the building’s public IP.</p><p><strong>Reserved Private IP Ranges </strong>The following ranges are set aside for use within private networks, ensuring no conflict with globally routed public IPs. These ranges are not valid on the internet and cannot be used publicly.</p><h4>Public IP Addresses:</h4><p>Public IP addresses are globally unique identifiers assigned to devices or services connected to the internet. These IPs are essential for external communication, allowing the world to access websites, cloud servers, or other online resources.</p><p>Think of a Public IP Like Your Home Address: Just as your home address allows someone to visit your house, a public IP allows external devices to communicate with a device over the internet.</p><p>Public IP addresses are globally routable, meaning they can be reached from anywhere on the internet.</p><p>Every time you browse the web, your device’s public IP is visible to the server you’re interacting with.</p><h3>NAT (Network Address Translation)</h3><p>In home or office networks, private IPs are used internally, but when devices need to access the internet, NAT (Network Address Translation) comes into play. NAT allows multiple devices on a local network to share one public IP while keeping the private IPs hidden.</p><p>When a device inside a network (e.g., your laptop) wants to access the internet, the router replaces the private IP with the public IP.</p><p>The router forwards the request to the internet. The server responding to the request sees the public IP of the router, not the private IP of the device.</p><p>When the server responds, the router knows which internal device made the request and sends the data to the correct private IP.</p><h3>What Is Subnetting?</h3><p>Subnetting is the process of dividing a large network into smaller, more manageable segments called subnets. Just like dividing a large city into districts, subnetting allows you to create smaller, logically separated groups within a bigger network. This improves network efficiency, security, and reduces congestion.</p><p>In subnetting, each subnet has its own subnet mask, which defines how many devices (hosts) can exist within that subnet. By doing this, you can better manage IP address assignments and ensure optimal network performance.</p><h4>Default Subnet Masks (Class-Based Networks)</h4><p>In traditional networks, the concept of class-based subnetting was used. Networks were divided into classes (A, B, and C) based on their size, and each class had a default subnet mask.While class-based subnetting served its purpose, it was inflexible and inefficient, especially with the depletion of IPv4 addresses. This led to the adoption of CIDR (Classless Inter-Domain Routing).</p><h4>CIDR Notation</h4><p>CIDR is a more flexible method of subnetting that allows for finer control over the network size. It replaces the rigid class-based subnetting system and uses a slash notation (/) followed by the number of bits in the subnet mask.</p><p>192.168.1.0/24 means a network with 256 IP addresses (0 to 255), where the first 24 bits are used for the network portion and the remaining 8 bits are for host addresses.</p><p>10.0.0.0/16 means a network with 65,536 IP addresses, with the first 16 bits used for the network portion.</p><h4>Conclusion</h4><p>IP addressing is essential for the functioning of networks, enabling devices to communicate and exchange data across both local and global networks. The use of IPv4 and IPv6, along with the distinction between public and private IP addresses, provides a comprehensive structure for managing and routing traffic.</p><p>IPv4 remains the foundation of current networks despite its limitations, while IPv6 offers a solution to address exhaustion with a virtually limitless number of unique IPs. Subnetting, a key concept in IP address management, enhances network efficiency by dividing large networks into smaller, more secure segments, which helps in optimizing address usage and reducing network congestion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20f9e60dcec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INTRODUCTION TO NETWORK]]></title>
            <link>https://alestinshelmon1.medium.com/introduction-to-network-061f27979840?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/061f27979840</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[network-attacks]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 07:08:08 GMT</pubDate>
            <atom:updated>2025-07-08T07:08:08.451Z</atom:updated>
            <content:encoded><![CDATA[<p>In this exciting journey, we’ll dive into the world of networking, unraveling its mysteries and making complex concepts simple and approachable. Whether you’re a beginner just starting out or someone looking to solidify their foundation, this series is crafted to guide you step by step. Networking is the heartbeat of modern IT infrastructure, enabling everything from instant messaging to cloud computing. It’s not just a skill for tech enthusiasts — it’s the cornerstone of the digital world.</p><h3><strong>What is a Network?</strong></h3><p>Let’s start at the very beginning. Imagine a day in your life when you’re sending an important document from your laptop to a printer in another room. Or picture yourself streaming your favorite movie, making a video call with a friend, or playing an online game with people halfway across the world. Ever wondered how this magic happens? That’s the network quietly working in the background, connecting devices and enabling seamless communication.</p><p>At its core, a network is a collection of devices — such as computers, printers, smartphones, servers, and even IoT gadgets — linked together to share data and resources. These connections can be physical, like cables running between devices, or wireless, like Wi-Fi signals zipping through the air. Networks make it possible for devices to exchange information, share hardware (like printers), and access shared storage, all with incredible speed and efficiency.</p><h3>Why do we need networks?</h3><p>Imagine a world without networks. Each device would function in isolation. You’d need separate printers for every computer, and file sharing would involve physically transferring data via USB drives or external hard disks. Communication? Forget real-time chats or emails — you’d be stuck with snail mail. Networks eliminate these barriers, empowering a connected world where information can flow freely across distances large and small.</p><p>From your home Wi-Fi connecting your devices to the internet, to vast corporate networks linking thousands of computers, to the global internet itself — networks are the invisible threads weaving our digital lives together.</p><p><strong>Sharing</strong>: Instead of having one printer for every person (chaos!), everyone shares one.</p><p><strong>Collaboration</strong>: Whether it’s video calls or shared documents, networks make teamwork seamless.</p><p><strong>Data Sharing</strong>: Networks let us exchange information instantly, whether it’s a cat meme or critical business data.</p><p><strong>Centralized Management</strong>: Imagine updating hundreds of devices one by one. Networks let admins manage them all from a single place.</p><p>By the end of this journey, you’ll not only understand how networks work but also feel confident enough to set up, manage, and even troubleshoot them. So buckle up as we embark on this exciting adventure into the world of networks!</p><h3>Types of Networks:</h3><p>Have you ever thought about how your devices communicate with each other? Networks come in different shapes and sizes, each tailored for a specific purpose. Understanding these is like knowing when to use a bicycle, car, or airplane for a journey — each network type is designed to suit the “distance” and “destination” of data travel. Let’s explore!</p><h4>LAN (Local Area Network)</h4><p>Imagine you’re at home or in an office. All your devices — laptops, phones, printers — are connected and chatting happily within a confined space. That’s a Local Area Network (LAN) at work!</p><p>LANs are built for speed. Whether you’re sharing a file with a colleague, playing multiplayer games with friends, or streaming movies, LANs handle it with lightning-fast efficiency.</p><p>Ever used Wi-Fi at home? If yes, then you’ve already experienced LAN in action. It keeps things local and cozy, ensuring all devices stay connected seamlessly.</p><h4>WAN (Wide Area Network)</h4><p>Now, imagine this: You’re in New York, and your company needs to communicate with its branch in Tokyo. A simple LAN won’t cut it here. Enter the Wide Area Network (WAN) — the digital equivalent of an international flight.</p><p>WANs connect multiple smaller networks (like LANs) over vast distances. Think of the internet — it’s the largest WAN in existence! It’s how you send emails across continents, stream videos hosted halfway across the world, or collaborate on projects with teammates in different countries.</p><h4>MAN (Metropolitan Area Network)</h4><p>Let’s scale things down a bit. Picture a university campus or a city-wide public Wi-Fi. This is where the <strong>Metropolitan Area Network (MAN)</strong> comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*oBUpFnHU94FZG5G_" /></figure><p>MANs are like bridges between the small world of LANs and the massive reach of WANs. They’re often used to connect multiple buildings in a city or provide internet access across a metropolitan region. Universities and municipalities frequently use MANs to connect campuses or provide city-wide services efficiently.</p><h4>PAN (Personal Area Network)</h4><p>Now, zoom in even closer — to <em>you</em>. When your smartphone connects to Bluetooth headphones, your smartwatch, or even your car’s dashboard, you’re using a <strong>Personal Area Network (PAN)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*vCczLmoW4XwQc5do" /></figure><p>This tiny, portable network is your personal bubble of connectivity, perfect for syncing devices within a short range. It’s all about convenience — whether it’s transferring files between your phone and laptop or controlling smart gadgets around you.</p><h3>Network Devices:</h3><p>Behind every functioning network is a team of devices working tirelessly to keep everything connected and secure. Let’s meet the key players who make it all happen:​</p><ul><li><strong>Router:</strong> Think of the router as a GPS for your data. It decides where your information should go and ensures it gets there efficiently. Without a router, your home network wouldn’t connect to the internet, and Netflix would remain out of reach.</li><li><strong>Switch:</strong> Inside your home or office, a switch is like the network’s event organizer. It ensures that when you send a print command, it goes to the printer — not someone else’s computer.</li><li><strong>Hub:</strong> Imagine shouting in a room where everyone hears you, whether they need the information or not. That’s how hubs work. They broadcast data to every connected device, even those that don’t need it. Although once popular, hubs are now largely replaced by smarter switches.</li><li><strong>Firewall:</strong> Meet the bouncer of the network. Firewalls monitor incoming and outgoing traffic, ensuring only trusted data gets through. They’re your first line of defense against hackers and malicious software.</li></ul><h3>Your House as a Network</h3><p>Imagine your house is a network:</p><ul><li>The <strong>router</strong> is your front gate. It decides which guests (data) are allowed in or out.</li><li>Inside, the <strong>switch</strong> is the host, guiding guests to the right rooms for their activities.</li><li>Meanwhile, the <strong>firewall</strong> is like your locked doors and security cameras, ensuring no intruders sneak in while you’re relaxing.</li></ul><p>Think about how these elements interact in your everyday life. When you stream a movie, check your email, or even play online games, this entire team of devices works behind the scenes to make it all possible.</p><h3>Conclusion</h3><p>We’ve just scratched the surface of the networking world! From the cozy confines of a LAN to the global reach of WANs, and from tiny PANs to city-spanning MANs, networks are everywhere, powering our digital lives.</p><p>Add to this the hardworking network devices — routers, switches, hubs, and firewalls — and you have a seamless, interconnected system that makes modern communication possible.</p><p>But there’s more to discover! Next, we’ll dive into <strong>network topologies and protocols</strong>, where we’ll uncover the fascinating ways data flows within and between networks. Stay tuned for more insights and explorations.a network is, its types, and the devices that make it all work. In the next post, we’ll take a closer look at network topologies and protocols, diving deeper into how data flows within and between networks.</p><p>This series is just getting started, so stick with us as we build, explore, and even test our way through the world of networking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=061f27979840" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Human Error, Cyber Disaster]]></title>
            <link>https://alestinshelmon1.medium.com/human-error-cyber-disaster-aa39e84e11cc?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa39e84e11cc</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[breach]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[begginer-tips]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Fri, 06 Dec 2024 10:41:11 GMT</pubDate>
            <atom:updated>2024-12-06T10:41:11.942Z</atom:updated>
            <content:encoded><![CDATA[<p>How Lack of Awareness Makes Employees a Liability</p><p>In the fast-evolving digital world, organizations are often protected by advanced security systems, firewalls, and encryption methods. Yet, despite these technologies, the human element remains the most significant vulnerability. Employees, though vital to an organization’s success, are often considered the weakest link in a cybersecurity strategy. In fact, a lack of awareness about cybersecurity best practices can turn employees into easy targets for cybercriminals, making them a liability rather than an asset to the organization’s defense.</p><h3>Why Employees Matter in Cybersecurity</h3><p>While sophisticated security measures like firewalls, encryption, and intrusion detection systems work hard to safeguard a company’s data, these systems are only as strong as the people using them. Cybersecurity isn’t just about technology — it’s about the behaviors and decisions of the people within the organization. When employees are unaware of the threats around them or lack the knowledge to recognize common attack methods, they can easily become a gateway for malicious actors.</p><p>In fact, cybercriminals understand that the easiest way to breach a system is often through its users. Rather than focusing on breaking through complex firewalls or encryption protocols, hackers frequently target individuals who may unwittingly give up sensitive information or inadvertently open doors for malware and ransomware to enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*rUxVEyIXdSukpZ9S" /></figure><h3>The Threat Within: Employees as Prime Targets</h3><p>Employees, whether knowingly or unknowingly, are often the prime targets for attackers. Cybercriminals rely on social engineering tactics like phishing to exploit human behavior. These attacks are tailored to exploit common psychological triggers, such as urgency, trust, and curiosity.</p><h3>Phishing Attacks: The Most Common Exploitation</h3><p>Phishing is one of the most frequent and successful forms of attack. In a typical phishing attack, an employee receives an email that appears to come from a trusted source — such as a colleague, boss, or a well-known brand. The email might include a link or an attachment that, when clicked or opened, infects the computer with malware or collects personal information like usernames, passwords, or credit card numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*sU0PacGTp71eVoSp" /></figure><p>Without proper cybersecurity training, employees may not recognize the subtle signs of a phishing email. They might be tricked into clicking on a malicious link or downloading a harmful attachment. Once the attacker gains access to an employee’s login credentials, it’s just a matter of time before sensitive company data is exposed or compromised.</p><h3>Common Employee Mistakes: A Breeding Ground for Cyber Threats</h3><p>When employees are not aware of basic cybersecurity principles, their behavior can introduce vulnerabilities that cybercriminals eagerly exploit. Below are some of the most common mistakes that employees make, often unknowingly, that contribute to security breaches.</p><h3>1. Weak Passwords</h3><p>One of the simplest and most effective ways for attackers to gain unauthorized access is by exploiting weak passwords. Many employees still use easily guessable passwords like “123456,” “password,” or “welcome1.” These simple passwords are often the first targets in brute-force or credential stuffing attacks, where hackers use automated tools to guess or use stolen credentials across multiple platforms.</p><h3>2. Ignoring Security Updates</h3><p>Security updates and patches are issued to fix vulnerabilities within software and applications. However, many employees tend to ignore or delay these updates, leaving systems open to exploitation. Cybercriminals often take advantage of these known vulnerabilities, and once a hacker has access to an outdated system, they can deploy malware or access confidential information with ease.</p><h3>3. Reusing Passwords Across Multiple Accounts</h3><p>Many employees make the mistake of reusing passwords across different platforms — whether for personal or work-related accounts. If one account is compromised, the attacker can potentially use the same credentials to access other systems, including sensitive work-related data, financial information, and internal communication tools.</p><h3>4. Opening Suspicious Links or Attachments</h3><p>Even the most cautious employees can fall victim to cleverly disguised phishing attempts. Clicking on a link or downloading an attachment from an unknown or untrusted email can lead to disastrous consequences, such as the installation of malware or ransomware on the organization’s network.</p><h3>The Consequences of Employee Negligence: How Small Mistakes Lead to Big Problems</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*7wTJMz5eVWL9LOBo" /></figure><p>When employees fail to recognize basic cybersecurity principles, the organization as a whole faces significant risks. One small mistake — such as downloading a suspicious attachment, clicking on a malicious link, or disclosing login information — can have serious consequences for the company, including:</p><h3>Data Breaches</h3><p>A single negligent action, like opening a phishing email or falling for a social engineering scam, can lead to the exposure of sensitive data. This data might include proprietary business information, customer records, or employees’ personal data. If a breach occurs, it can take weeks or even months to assess the full impact.</p><h3>Financial Losses</h3><p>Cyberattacks such as ransomware can lock a company out of its own data and demand a ransom for its release. In addition to the immediate financial burden of paying the ransom (if the company decides to comply), there are also costs associated with business downtime, system repairs, legal fees, and potential regulatory fines.</p><h3>Reputational Damage</h3><p>Once a data breach occurs, the damage extends beyond financial losses — it can also cause irreparable harm to the company’s reputation. Customers and partners may lose trust in the organization, leading to lost business and a tarnished public image. Rebuilding that trust can take years, and some businesses may not recover.</p><h3>Legal and Regulatory Consequences</h3><p>Organizations are subject to various legal and regulatory requirements, such as GDPR, HIPAA, or PCI-DSS, which mandate the protection of personal and sensitive data. If a breach occurs due to employee negligence and the company is found non-compliant, it could face hefty fines and legal consequences. These penalties can further exacerbate the financial strain caused by the breach.</p><h3>Empowering Employees: Turning Potential Liabilities into Cybersecurity Assets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*iR7EmBofZ55lXhiK" /></figure><p>The good news is that employees don’t have to remain liabilities in an organization’s defense strategy. Through proper education, training, and awareness initiatives, employees can become the first line of defense against cyber threats. It’s essential for organizations to invest in comprehensive cybersecurity training programs to empower employees to make informed decisions about security.</p><h3>Key Components of Employee Education:</h3><ol><li><strong>Cybersecurity Training</strong> Employees should receive regular training on essential cybersecurity topics, including password best practices, recognizing phishing emails, and understanding the dangers of unsecured Wi-Fi networks. Training should also cover topics such as safe web browsing, using two-factor authentication (2FA), and how to report suspicious activities.</li><li><strong>Simulated Phishing Attacks</strong> Conducting regular simulated phishing campaigns can help employees recognize the tactics hackers use. By simulating a phishing attack, employees can practice spotting fake emails and learn how to respond without putting the organization’s security at risk.</li><li><strong>Clear Security Policies and Protocols</strong> Having clear, written policies for things like password management, device security, internet use, and email communication can guide employees in making safer decisions. These guidelines should be easy to follow and readily available for reference.</li><li><strong>Regular Security Assessments</strong> Conducting periodic security assessments, such as penetration testing or vulnerability scanning, can help employees understand the current state of their cybersecurity and highlight areas for improvement. These assessments also serve as a reminder of the importance of staying vigilant.</li><li><strong>Fostering a Culture of Vigilance</strong> Creating a culture where cybersecurity is valued and prioritized is crucial. Employees should be encouraged to stay informed, report suspicious activity, and take ownership of their role in protecting the organization’s data.</li></ol><h3>Empowering Employees for a Stronger Cybersecurity Posture</h3><p>In today’s interconnected world, employees need to be more than just users of technology — they must be active participants in the organization’s cybersecurity strategy. When employees lack awareness of the threats they face, they can unintentionally contribute to security breaches that put the entire organization at risk.</p><p>However, by investing in comprehensive cybersecurity training, awareness campaigns, and regular security assessments, organizations can transform employees from potential liabilities into their strongest line of defense. The result? A safer, more secure business environment, where every employee plays a crucial role in safeguarding the organization’s data and reputation. In the end, cybersecurity is not just about technology — it’s about people working together to stay vigilant and protected against evolving threats.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa39e84e11cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Active Directory]]></title>
            <link>https://alestinshelmon1.medium.com/introduction-to-active-directory-edc90328a48d?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/edc90328a48d</guid>
            <category><![CDATA[domains]]></category>
            <category><![CDATA[trustlink]]></category>
            <category><![CDATA[domain-controller]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Tue, 16 Jul 2024 10:38:29 GMT</pubDate>
            <atom:updated>2024-08-26T17:16:41.036Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine a time before centralized management systems — when every user account, computer setting, and security policy had to be manually configured on each individual machine. It was a cumbersome and time-consuming process, especially for large organizations. Changing a single password could mean updating it across dozens or even hundreds of systems. Not only was this inefficient, but it also posed significant security risks.</p><p>Active Directory revolutionizes this process by providing a centralized, streamlined way to manage users, computers, and security settings. With AD, changes can be made once and automatically applied across the network. This efficiency saves time, reduces errors, and enhances security, making it an indispensable tool for organizations of all sizes.</p><h4>what is Active Directory</h4><p>“<strong>Active Directory </strong>can be thought of as a comprehensive database or a ‘phone book’ for our network. Just as a phone book lists people’s names and contact information, Active Directory stores detailed information about the users, computers, and resources within an organization. It helps us keep track of who is who, who can access what, and ensures that our network is secure and well-organized.”</p><h4>Definition and Purpose</h4><p>Active Directory is a centralized and standardized system that automates network management of user data, security, and distributed resources. It provides authentication and authorization for users and computers in a Windows domain network, making it easier to manage and secure the IT infrastructure.</p><h3><strong>Components of Active Directory</strong></h3><h3><strong>1. Objects</strong></h3><p>“Within Active Directory, everything we manage is categorized as an ‘object.’ Think of objects as individual entries in our ‘phone book.’ Each object represents a specific entity within the network. These entities include:</p><p><strong>Users: </strong>User objects represent individuals within the organization and contain attributes such as username, password, email address, and group memberships.</p><p><strong>Computers:</strong> Computer objects represent devices within the network, including attributes like hostname, IP address, operating system version, and security settings.</p><p><strong>Groups:</strong> Groups in AD are collections of users, computers, or other groups, facilitating common permissions or policies.</p><p><strong>Printers:</strong> Printer objects manage network printers within AD, including attributes such as printer model, location, and access permissions.</p><p>Each of these objects has associated attributes, like a user’s name, email address, or computer’s operating system. This structured approach allows us to efficiently manage and control access to resources across our network.”</p><h3>2. Group Policies</h3><p>“Group Policies in Active Directory function as a powerful tool for managing and configuring network-wide settings. They allow administrators to define and enforce specific rules and settings across multiple computers and users. Here’s how they work:</p><ul><li><strong>Centralized Management</strong>: Instead of manually configuring each computer, Group Policies enable you to apply settings and configurations from a central location. This ensures consistency and saves time.</li><li><strong>Policy Settings</strong>: Group Policies can manage a wide range of settings, such as security options, software installation, desktop configurations, and user permissions. For example, you can use Group Policies to enforce password complexity requirements or to automatically deploy software applications.</li><li><strong>Organizational Units (OUs)</strong>: Policies can be applied to specific groups of users or computers by placing them into Organizational Units. This allows for granular control and flexibility, tailoring settings to different departments or teams.</li><li><strong>Automatic Updates</strong>: Group Policies are automatically applied when users log in or when computers start up, ensuring that all settings are consistently enforced across the network.”</li></ul><h3><strong>3. Domains:</strong></h3><p>“In Active Directory, a domain is a fundamental organizational unit. Think of it as a <strong>security boundary </strong>that holds a collection of objects like users, groups, computers, and other resources. A domain provides a way to manage these objects collectively, applying policies and permissions consistently across all members. Each domain has its own database and security policies, and is managed by one or more Domain Controllers (DCs). This structure allows for centralized management and security, making it easier to handle large numbers of users and devices within an organization.”</p><p><strong>Security Boundary:</strong> Domains provide a scope within which security policies are applied and managed.</p><p><strong>Administrative Unit:</strong> Allows for centralized administration of users, groups, and resources.</p><p><strong>Domain Admin:</strong> The Domain Admin has full administrative privileges within a domain, capable of managing all aspects of the domain, including user accounts, security policies, and network resources.</p><h3>4. Organizational Units (OUs)</h3><p>OUs are containers used to organize objects within a domain, allowing for easier management and delegation of control. OUs can reflect an organization’s hierarchical structure and can contain users, groups, computers, and other OUs.</p><ul><li><strong>Delegation of Control:</strong> Administrators can delegate specific administrative tasks to other users or groups within an OU.</li><li><strong>Group Policy Application:</strong> OUs allow for the application of group policies to specific sets of users and computers.</li></ul><h3><strong>5. Domain Controllers (DCs):</strong></h3><p>“A Domain Controller (DC) is a server that manages and authenticates all the security requests from users and computers within an Active Directory domain. Think of it as the central authority for managing access and maintaining the database of user accounts, passwords, and other resources.</p><ul><li><strong>Role and Responsibilities:</strong> Handle authentication, directory searches, and storage of AD data.</li><li><strong>Redundancy:</strong> Multiple DCs can be deployed to ensure availability and reliability.</li><li><strong>Number of DCs:</strong> The number of DCs in a network depends on the size and needs of the organization. Larger networks typically have more DCs to distribute the load and provide redundancy.</li><li><strong>Higher Privileges:</strong> Some DCs hold higher privileges by owning Flexible Single Master Operations (FSMO) roles, such as Schema Master, Domain Naming Master, and PDC Emulator, which are critical for certain AD operations.</li></ul><p>The DC is responsible for enforcing security policies, handling logins, and ensuring that users and computers can access the network resources they are authorized to use.</p><h3>6.LDAP (Lightweight Directory Access Protocol)</h3><p><strong>“LDAP (Lightweight Directory Access Protocol)</strong> is a protocol used for accessing and managing directory services. Think of LDAP as a standardized way for applications to query and modify directory data.</p><ul><li><strong>Function</strong>: LDAP provides a method to access and manage directory information in a hierarchical, organized manner. This includes searching for users, managing passwords, and updating user details within Active Directory.</li><li><strong>Usage</strong>: LDAP is widely used in environments where directory services need to be accessed and managed. For example, when you log into a system or application that uses Active Directory, LDAP queries might be used to authenticate your credentials and retrieve user information.</li></ul><h3>7. NTLM (NT LAN Manager)</h3><p><strong>“NTLM (NT LAN Manager)</strong> is an older authentication protocol used by Microsoft to authenticate users on a network. It was designed to provide secure authentication in a Windows network environment.</p><ul><li><strong>Function</strong>: NTLM uses a challenge-response mechanism to authenticate users. When a user tries to log in, NTLM sends a challenge to the client, which then responds with a hashed version of the user’s password. The server verifies the response to authenticate the user.</li><li><strong>Limitations</strong>: NTLM has some security weaknesses, such as vulnerability to pass-the-hash attacks. Due to these limitations, NTLM is often used as a fallback in environments where Kerberos is not available or compatible.</li></ul><h3>8. Kerberos</h3><p><strong>“Kerberos</strong> is a more modern and secure authentication protocol used in Active Directory environments. It is designed to provide strong authentication for users and services over a network.</p><ul><li><strong>Function</strong>: Kerberos uses a ticket-based system for authentication. When a user logs in, they receive a Ticket-Granting Ticket (TGT) from the Kerberos Key Distribution Center (KDC). This TGT is used to request service tickets for accessing specific resources within the network.</li><li><strong>Advantages</strong>: Kerberos is more secure than NTLM because it uses encryption to protect authentication data and supports mutual authentication (both the user and the service verify each other’s identity). This reduces the risk of replay attacks and other security threats.</li><li><strong>Usage</strong>: In an Active Directory environment, Kerberos is the default authentication protocol and provides seamless and secure single sign-on (SSO) capabilities, allowing users to access multiple resources with a single set of credentials.</li></ul><h3>9. Active Directory Certificate Services (AD CS):</h3><p><strong>AD CS</strong> is a role in Windows Server that provides customizable services for creating and managing public key certificates. It enables an organization to establish a PKI and manage certificates within the AD environment. AD CS includes several components, such as:</p><ul><li><strong>Certification Authorities (CAs):</strong> The core component responsible for issuing and managing certificates.</li><li><strong>Certificate Enrollment:</strong> The process by which users, computers, and services request certificates.</li><li><strong>Online Responders:</strong> Provides certificate validation services to check the status of certificates in real-time.</li></ul><h3>10. Tree and Forest in Active Directory</h3><h4>Tree</h4><p>A <strong>Tree</strong> in Active Directory is a collection of one or more domains that share a contiguous namespace. This means that the domains are hierarchically organized, with parent and child relationships.</p><ul><li>For example, if you have a root domain called example.com, you could have child domains such as us.example.com or eu.example.com. Each domain in the tree is part of a larger hierarchy, forming a tree structure.</li></ul><h4>Forest</h4><p>A <strong>Forest</strong> is a collection of one or more trees that share a common schema and global catalog but do not necessarily have a contiguous namespace. The forest represents the top-level container in Active Directory, encompassing all the domains within it.</p><ul><li>Each forest has its own schema, global catalog, and security boundary. It can include multiple trees, each with its own domain hierarchy. For example, a forest might contain example.com and example.org, with each being its own tree but within the same forest.</li></ul><h3>11. Root Domain and Permissions</h3><h4>Root Domain</h4><p>The <strong>Root Domain</strong> is the top-level domain in a tree. It’s the starting point of the domain hierarchy and serves as the central point of administration for the domain tree.</p><ul><li><strong>Permissions</strong>: The root domain holds the highest level of administrative control over the domains within its tree. Administrators of the root domain can manage:</li><li><strong>Domain Controllers</strong>: Control and configure domain controllers for all domains in the tree.</li><li><strong>Schema Changes</strong>: Modify the Active Directory schema, which affects all domains in the forest.</li><li><strong>Trust Relationships</strong>: Establish trust relationships with other domains and forests.</li><li>and forests.</li></ul><h3>12. Trusts</h3><p><strong>Trusts</strong> are relationships established between domains or forests to allow users in one domain or forest to access resources in another. Trusts enable cross-domain and cross-forest authentication and resource access.</p><ul><li><strong>Types of Trusts</strong>:</li><li><strong>Parent-Child Trusts</strong>: Automatically created between a parent domain and its child domains within the same tree.</li><li><strong>Sibling Trusts</strong>: Automatically created between domains in different trees within the same forest.</li><li><strong>External Trusts</strong>: Manually configured trusts with domains outside the forest.</li><li><strong>Forest Trusts</strong>: Manually configured trusts between two different forests to allow resource sharing.</li></ul><h3>13. Common Schema</h3><p>The <strong>Schema</strong> in Active Directory defines the types of objects and attributes that can be stored in the directory. It includes definitions for objects like users, groups, and computers, as well as their attributes.</p><ul><li><strong>Common Schema</strong>: Within a forest, all domains share a common schema, ensuring consistency in object types and attributes across the entire forest. Changes to the schema are applied forest-wide.</li></ul><h3>14. Global Catalog</h3><p>The <strong>Global Catalog</strong> is a distributed data repository that contains a partial replica of all objects in the Active Directory forest. It provides a searchable database that includes information about every object in the forest.</p><ul><li><strong>Purpose</strong>:</li><li><strong>Search</strong>: Allows users to search for objects across all domains in the forest.</li><li><strong>Logon</strong>: Facilitates efficient logon processes and user authentication by providing necessary object information.</li><li><strong>Role</strong>: Domain controllers that hold a global catalog server role can answer queries about objects across the forest, making it a critical component for directory searches and logon processes.</li></ul><h3>Benefits and Importance of AD</h3><ul><li><strong>Centralized Management:</strong> AD allows for centralized user and resource management, making it easier to maintain and secure the network.</li><li><strong>Enhanced Security:</strong> By enforcing centralized security policies, AD helps protect sensitive data and ensures compliance with organizational standards.</li><li><strong>Simplified Administration:</strong> AD provides tools and features that simplify network administration, reducing the workload on IT staff.</li></ul><h4><strong>The Vital Role of DNS and DHCP in AD</strong></h4><h4><strong>a. DNS (Domain Name System)</strong></h4><p>DNS is critical for AD as it translates human-readable domain names into IP addresses. It ensures that network resources can be located and accessed efficiently.</p><ul><li><strong>Integration with AD:</strong> AD relies heavily on DNS for locating domain controllers and other services.</li><li><strong>Name Resolution:</strong> Translates domain names into IP addresses, facilitating communication and access to resources.</li><li><strong>IP Addressing Scheme:</strong> Plan IP addressing to avoid conflicts and ensure efficient routing of network traffic.</li><li><strong>Network Security Considerations:</strong> Implement firewalls, network segmentation, and other security measures to protect AD infrastructure.</li><li><strong>DNS Configuration:</strong> AD relies heavily on DNS for locating domain controllers and other services. Ensure DNS is properly configured.</li></ul><h4><strong>b. DHCP (Dynamic Host Configuration Protocol)</strong></h4><p>DHCP automates the assignment of IP addresses to devices on the network. While not a direct part of AD, it works in conjunction with DNS and AD to ensure smooth network operations.</p><ul><li><strong>IP Address Management:</strong> Automatically assigns IP addresses to devices, reducing the need for manual configuration.</li><li><strong>Integration with DNS:</strong> Ensures that IP address assignments are updated in DNS, maintaining accurate name resolution.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edc90328a48d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Setup Guide: AD, DNS, and DHCP in Windows Server 2016/2012 R2]]></title>
            <link>https://alestinshelmon1.medium.com/quick-setup-guide-ad-dns-and-dhcp-in-windows-server-2016-2012-r2-c33610a771ab?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c33610a771ab</guid>
            <category><![CDATA[domain-controller]]></category>
            <category><![CDATA[active-directory-security]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[active-directory-domain]]></category>
            <category><![CDATA[domains]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Tue, 16 Jul 2024 10:33:34 GMT</pubDate>
            <atom:updated>2024-07-16T10:36:06.186Z</atom:updated>
            <content:encoded><![CDATA[<h3>Prerequisites</h3><ul><li><strong>Operating System</strong>: Windows Server 2016, 2019, or 2022.</li><li><strong>Static IP Address</strong>: Assign a static IP to the server.</li><li><strong>Administrator Account</strong>: Use an account with local admin privileges.</li><li><strong>DNS Configuration</strong>: Ensure DNS is properly configured.</li></ul><h4>Client Requirements</h4><ul><li><strong>Windows Version</strong>: Clients should run Windows Pro, Enterprise, or Education editions (not Home).</li><li><strong>Network Configuration</strong>: Clients should use DHCP or a static IP within the same network.</li><li><strong>Domain Join Capability</strong>: Ensure clients can join a domain.</li></ul><h4>Network Requirements</h4><ul><li><strong>Network Connectivity</strong>: Ensure reliable network connectivity between clients and the server.</li><li><strong>DNS Server</strong>: Configure clients to use the server as their DNS server.</li><li><strong>IP Addressing</strong>: Proper IP addressing (e.g., static IP for server, DHCP for clients).</li></ul><h3>Part 1: Installing Windows Server 2016</h3><h4>A. Install Windows Server 2016:</h4><p><strong>Step-1: Prepare Installation Media:</strong></p><ul><li>Insert the USB drive containing Windows Server 2016 or mount the ISO file.</li><li>Ensure the installation media is recognized and accessible by the server.</li></ul><p><strong>Step-2: Boot fom Installation Media:</strong></p><ul><li>Restart the server and boot from the prepared USB drive or ISO.</li><li>Access the server’s BIOS or UEFI settings to set the boot order if necessary.</li></ul><p><strong>Step-3: Begin Installation:</strong></p><ul><li>Follow the on-screen prompts to start the installation process.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*iZfJxahmfKxAfIv5AtJ_Sw.png" /></figure><ul><li>Choose language, time, and keyboard preferences as prompted. and click <strong>nex</strong>t to install the server</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*PTK39wmchjMIqjvgbw8yLg.png" /></figure><p>click <strong>Install now</strong> to slelct the Operating System</p><p><strong>Step-4: Select OS you want to Install</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*jjLMHTuL3jfmqAzXjBn4Xw.png" /></figure><p><strong>Step 5: Select Installation Type</strong></p><ul><li>When prompted for installation type, choose “Custom: Install Windows only (advanced).”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*ePNSGaSFN4YElT06BQmZYQ.png" /></figure><ul><li>This option allows you to specify installation settings and partition</li></ul><p><strong>Step-5: Partition and Install:</strong></p><ul><li>Select the drive and partition where you want to install Windows Server 2016.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*IgiyqMwgUksFUMYRVJqYpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*5ju-OS1jS_Uh5yECJGE2JA.png" /></figure><ul><li>If required, create new partitions or format existing ones.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*VWzPVTGPVnYNFc3xTdtZwg.png" /></figure><ul><li>Proceed with the installation by clicking “Next” or “Install</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*LgAqotnCYzQeC4SwhXcf7w.png" /></figure><p><strong>Step-6: Set the password for Administrator :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*_y6Vd1JvUS2dAq6OEobmkQ.png" /></figure><p>Enter a strong password and click finish</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*-2TEuF51KuJO2uAr8fUfiw.png" /></figure><p>Youll get a login page to the windows server Press ctrl+Alt+del to login with the administrator username and password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*QGCUpKO-qWjofDE6zm1O0w.png" /></figure><p>Enter the Password that was set earlier</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dC6NEmFWGdMQ9KgSzi_X_Q.png" /></figure><p>we have succesfull installed and logged into the server</p><p><strong>Step-7: Add Necessary Drivers:</strong></p><ul><li>After installation, check Device Manager for any missing drivers</li><li>Obtain and install drivers from the manufacturer’s website or the driver discs provided with the server hardware.</li><li>Follow installation instructions provided with the drivers.</li></ul><h4><strong>B. Setting a Static IP and Renaming the Server:</strong></h4><h4><strong>a. Set Static IP Address:</strong></h4><p><strong>Step-1: Access Network Settings:</strong></p><ul><li>Go to Control Panel &gt; Network and Sharing Center.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*8gYVyzAFyu85CJFBO786TA.png" /></figure><p><strong>Step-2: Open Adapter Settings:</strong></p><ul><li>Click on “Change adapter settings” in the left panel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*EbhTPxVp1sUjxoMW36w2Rw.png" /></figure><p><strong>Step-3: Configure Network Adapter:</strong></p><ul><li>Right-click on the network adapter (e.g., Ethernet or Local Area Connection) and select Properties.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*8DrXC5wonIOMJyaxyp1J1Q.png" /></figure><p><strong>Step-4: Set IPv4 Properties:</strong></p><ul><li>In the Properties window, find and select Internet Protocol Version 4 (TCP/IPv4), then click Properties.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*vZ3ig1MhmXkRCUoOpc-Azg.png" /></figure><p><strong>Step-5: Configure IPv4 Settings:</strong></p><ul><li>Select “Use the following IP address.”</li><li>Enter the IP address, subnet mask (usually 255.255.255.0), default gateway, and preferred DNS server (usually the IP of your DNS server).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*hWnwI64hrw8wy2HoT2WuUw.png" /></figure><p><strong>Step-6: Save Settings:</strong></p><ul><li>Click OK to save the settings and close the Properties window.</li></ul><p><strong>b. Change Computer Name:</strong></p><p><strong>Step-1: Access System Properties:</strong></p><ul><li>Right-click on This PC or Computer on the desktop or in File Explorer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*ErWSr4MQM0DjynhwfHpkpg.png" /></figure><p><strong>Step-2: Change Computer Name:</strong></p><ul><li>Under the “Computer name, domain, and workgroup settings” section, click “Change settings.”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*ttTwMPb2YZpNRkEvlLOROg.png" /></figure><p><strong>Step-3: Change Computer Name:</strong></p><ul><li>In the System Properties window, click Change.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*ynLgPmTznDaGAtrJT3u1AA.png" /></figure><ul><li>Enter the new computer name in the “Computer name” field.</li><li>Click OK to save the new computer name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*oV0U9zyZ0Yh-8OsKdcL1Eg.png" /></figure><p><strong>Step-4: Restart:</strong></p><ul><li>Restart the computer for the changes to take effect.</li></ul><h4>Part 2: Adding Roles and Features (Active Directory Domain Services)</h4><ol><li><strong>Adding Roles and Features:</strong></li></ol><p><strong>Step-1: </strong>Open Server Manager and Click on “Add roles and features.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*zGrFQXT4L0YKMZzl8mvP-Q.png" /></figure><p><strong>Step-4: </strong>Select “Role-based or feature-based installation.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*hV0b5RZJKcceMGjkKYhdLA.png" /></figure><p><strong>Step-4:</strong>Choose the server and proceed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*IX3cUJlWg1UG6rVelvcy2w.png" /></figure><p><strong>Step-4: </strong>Select “Active Directory Domain Services.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*i4chT6nbS1DB4_IKBmB2Lg.png" /></figure><p>select ADDS</p><p><strong>Step-4: </strong>Add Features if prompted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*IjtqckLJ71r_JDNiQskJlw.png" /></figure><p><strong>Step-4: </strong>Install the role and restart the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*e_cbZiduPXDx12fi_M34fA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*2ZdUOgfuGAzhH-9gZfgjRA.png" /></figure><h4>Part 3: Promoting the Server to Domain Controller</h4><ol><li><strong>Promoting to Domain Controller:</strong></li></ol><p><strong>Step-1: </strong>Open Server Manager after restart. and click “Promote this server to a domain controller.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*2ZdUOgfuGAzhH-9gZfgjRA.png" /></figure><p><strong>Step-2: </strong>Choose “Add a new forest.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*5CaU9D97MRRpGIdGhzDheQ.png" /></figure><p>Enter the root domain name (e.g., techcorp.local).</p><p><strong>Step-3: </strong>Set the DSRM password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*NjmlAfGrodB4gFBeMkGpEw.png" /></figure><ul><li>Configure DNS options or leave defaults.</li><li>leave rest of the options as default and install</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*s2z5UUZPO2FEvEDwGSMHMA.png" /></figure><ul><li>Complete the promotion wizard and allow automatic server restart.</li></ul><h4>Part 4: Adding Users and Organizational Units (OUs)</h4><p><strong>A. Creating Organizational Units:</strong></p><p><strong>Step-1: </strong>Open “Active Directory Users and Computers.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*VGYq5ZGXE0h_maFveVYi3A.png" /></figure><p><strong>Step-2: </strong>Right-click on the domain &gt; “New &gt; Organizational Unit.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*7zM4Bah1CgLBvEtOGVk6GQ.png" /></figure><p><strong>Step-3: </strong>Name the OU (e.g., IT, HR) and click “OK.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*NeTGRjC70i9VTEl2VQC-dg.png" /></figure><p><strong>Step-4: </strong>Organize users and computers into appropriate OUs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*HAyfjsvuaSjArFzQ9Tsy7Q.png" /></figure><p><strong>B. Adding Users:</strong></p><p><strong>Step-1: </strong>Right-click on the organizational unit created for users &gt; “New &gt; User.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*gvFHXls_Fr1uYdWxggQtqA.png" /></figure><p><strong>Step-2: </strong>Enter user details and create the user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*DCQTXinAxV4JUrtu-ToZKg.png" /></figure><p>Enter the passwords and create the user by clicking finish</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*UnzeTwv_MIeYEYg3eWuAZA.png" /></figure><h4>Part 5: Making a User Domain Admin</h4><ol><li><strong>Making a User Domain Admin:</strong></li></ol><p><strong>Step-1:</strong>In “Active Directory Users and Computers,” locate the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*rnF_1Y4T6Prr9Zas3rN2VA.png" /></figure><p><strong>Step-2:</strong>Right-click &gt; “Properties” &gt; “Member Of” tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*uUjt5uZynv3Vf7jkwin17g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*o_m61mQqmGS2ior_rWwcog.png" /></figure><p><strong>Step-3: </strong>Click “Add,” enter “Domain Admins,” and confirm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*5xhQPdvkLnMMTBwWuO2lVg.png" /></figure><h4>Part 6: Configuring DNS</h4><p><strong>CreStep-3:ating Reverse Lookup Zones:</strong></p><p><strong>Step-1: </strong>Open “DNS Manager.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*8OsPsoTRr-iuK1LFZG_1Ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*35IeXM_-d8Nhx3QTdV7XMA.png" /></figure><p><strong>Step-2: </strong>Right-click “Reverse Lookup Zones” &gt; “New Zone.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*LUr13_1yQmIKWQLWBt2DDA.png" /></figure><p><strong>Step-3: </strong>Follow the wizard to create a reverse lookup zone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*yOT5KTRGpUZJYokF09AT7w.png" /></figure><p>fill in the first three parts of the ip</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*v7wwURISviq869jA-2X6dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*RnFhCmuAMrMdPOeQjJlMaw.png" /></figure><p>finish the setup</p><ol><li><strong>Changing Properties of Host for PTR:</strong></li></ol><p><strong>Step-1: </strong>In DNS Manager, find the host entry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*0gm-Y849bjoVVke-1qxUOg.png" /></figure><p><strong>Step-3: </strong>Right-click &gt; “Properties.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*eyicifAn0PGgyKbzbzA6Tw.png" /></figure><h4>Part 7: Configuring DHCP</h4><p><strong>A. Adding Roles and Features (DHCP Server):</strong></p><p><strong>Step-1: </strong>Open Server Manager &gt; “Add roles and features.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*jrREDNTk4G4btt-rvszHvQ.png" /></figure><p><strong>Step-2: </strong>Select DHCP Server and install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*tUOuyR7TGAdJ6GXGIzK9tA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*ayXSYBvFBAVY49cEXYE13A.png" /></figure><p><strong>B. Configuring DHCP:</strong></p><p><strong>Step-1: </strong>Open “DHCP Manager.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*Z9hCdwWOsNzFh0J7uEceWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*ofRInDgH9nZAeFTTgsamBA.png" /></figure><p><strong>Step-2: </strong>Right-click the server &gt; “New Scope.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*WkcMt34xtsTE1h1SYJLgRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*zYpgClXMO4sWCV89hErtkw.png" /></figure><p><strong>Step-3: </strong>Enter scope details (IP range, subnet mask, gateway, DNS).</p><p>Enter the starting and ending ip to set the range</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*RAKVj1n4bC7ADfJyHqxUqw.png" /></figure><p>give the staic ip of the DC as it is hosting the DNS service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*gMr3FF2eVs2TonlzQSfkzA.png" /></figure><p><strong>Step-4: </strong>Complete the wizard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*X5Ph0v8FBH-CzFUrU1onoA.png" /></figure><h4>Part 9: Joining Computers to the Active Directory Domain</h4><p>Window home cannot be connected to a domain</p><p><strong>A. Joining Computers to the Domain:</strong></p><p><strong>Step-1: </strong>On client computer, go to Control Panel &gt; System.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*S1EYpGRskpF_5GtePiGwNQ.png" /></figure><p><strong>Step-2: </strong>Click “Change settings” under “Computer name, domain, and workgroup settings.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*i_QRS85WaEXdb038LlP80A.png" /></figure><p><strong>Step-3: </strong>Click “Change” to join the domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*sN3DhaC2tdWDPn_L0bDvmQ.png" /></figure><p><strong>Step-4: </strong>Enter domain credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*e-MrJ8QmqeazMAQ4GTZyMA.png" /></figure><p>Enter the username and password and click okay</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*eYK3AEAsiT22wB1RKqIM8Q.png" /></figure><p>After entering the right credentials of the user well be prompt with dialog box saying welcome to the “domain name”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D5qBJ04M5AzJGz1m6z8rcQ.png" /></figure><p>We have connected successfully on the Ad</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*qQjGZCywhdzBJiRORtZOCQ.png" /></figure><p>Restart the compuer and login uing the user credential</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*gCMCIqQzMSqqeeMzEjDp3Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*MXloV-8OKMXwxpODWp7e9g.png" /></figure><p><strong>We have sccefully connected to the AD with a user and added this computer to the AD</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c33610a771ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 10: Mastering Network Troubleshooting and Analysis]]></title>
            <link>https://alestinshelmon1.medium.com/day-10-mastering-network-troubleshooting-and-analysis-2104c7fddc8e?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2104c7fddc8e</guid>
            <category><![CDATA[network-traffic]]></category>
            <category><![CDATA[packet]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[network-troubleshooting]]></category>
            <category><![CDATA[analysing-your-traffic]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Thu, 13 Jun 2024 05:13:32 GMT</pubDate>
            <atom:updated>2024-06-13T05:13:32.550Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s focus is on understanding and applying common network troubleshooting techniques, learning to use powerful tools like tcpdump, Wireshark, and nmap, and practicing basic troubleshooting commands like ping, traceroute, and netstat. Additionally, you will monitor network traffic using tcpdump and analyze it, and use nmap to scan a network for open ports and vulnerabilities. Here’s a comprehensive guide to help you dive deep into these essential network troubleshooting skills.</p><h3>A. Common Network Troubleshooting Techniques</h3><p>Network troubleshooting is a critical skill for identifying and resolving connectivity issues. Here are some fundamental techniques:</p><h3><strong>1. Ping</strong></h3><p>The ping command checks the connectivity between your machine and another host. It sends ICMP Echo Request messages and listens for Echo Reply messages.</p><h4><strong>Syntax:</strong></h4><pre>ping &lt;destination&gt;</pre><h4><strong>Options:</strong></h4><ul><li>-c &lt;count&gt;: Specifies the number of packets to send.</li><li>-i &lt;interval&gt;: Sets the interval between packets.</li><li>-s &lt;size&gt;: Specifies the number of data bytes to be sent.</li></ul><h4><strong>Example:</strong></h4><pre>ping -c 5 -i 0.5 google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*_zc6_Rz_8GdqBKVok44GkQ.png" /></figure><p>Sends 5 ping requests to google.com, with an interval of 0.5 seconds between each request. If all ping requests receive replies, it indicates that the host is reachable and there is a network path between the two devices.</p><h4><strong>2. Traceroute</strong></h4><p>The traceroute command shows the path packets take to reach a destination, highlighting each hop and its latency.</p><h4><strong>Syntax:</strong></h4><pre>traceroute &lt;destination&gt;</pre><h4><strong>Options:</strong></h4><ul><li>-m &lt;max_hops&gt;: Sets the maximum number of hops.</li><li>-q &lt;queries&gt;: Specifies the number of probe packets per hop.</li><li><strong>Example:</strong></li></ul><pre>traceroute -m 20 google.com </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*vXDfVcV64tTuXTLMXpHdRw.png" /></figure><p>Traces the route to google.com with a maximum of 20 hops. By examining the hops, you can pinpoint where the connection is failing or experiencing delays.</p><h4><strong>3. Netstat</strong></h4><p>The netstat command displays network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.</p><h4><strong>Syntax:</strong></h4><pre>netstat &lt;options&gt;</pre><h4><strong>Options:</strong></h4><ul><li>-t: Displays TCP connections.</li><li>-u: Displays UDP connections.</li><li>-l: Shows only listening ports.</li><li>-n: Shows numerical addresses instead of resolving hostnames.</li></ul><h4><strong>Example:</strong></h4><pre>netstat -tuln</pre><ul><li><strong>Explanation:</strong> Lists all active listening ports along with the associated programs. Useful for identifying which services are running and which ports are being used.</li></ul><h4>B. Using Tools for Network Analysis</h4><h4><strong>1. tcpdump</strong></h4><p>tcpdump captures network packets and displays them for analysis. It’s a command-line packet analyzer.</p><ul><li><strong>Syntax:</strong></li></ul><pre>tcpdump &lt;options&gt;</pre><h4><strong>Options:</strong></h4><ul><li>-i &lt;interface&gt;: Specifies the interface to listen on.</li><li>-w &lt;file&gt;: Writes the captured packets to a file.</li><li>-c &lt;count&gt;: Captures a specific number of packets.</li><li>-nn: Disables name resolution and shows numerical addresses and port numbers.</li></ul><h4><strong>Example:</strong></h4><pre>sudo tcpdump -i eth0 -c 10 -w capture.pcap</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*iXIwHp4N3MizPxv7LgxBCg.png" /></figure><p><strong>Explanation:</strong> Captures 10 packets on the eth0 interface and saves them to a file named capture.pcap. The captured file can be analyzed later to understand the network traffic patterns and identify potential issues.</p><h4><strong>2. Wireshark</strong></h4><p>Wireshark is a graphical network protocol analyzer. It captures and interactively browses the traffic running on a computer network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jQHzG6fY_BHsynHEwygZFg.png" /></figure><p>Wireshark’s detailed analysis tools help in troubleshooting complex network issues by providing visibility into the data packets transmitted over the network.</p><h4><strong>3. nmap</strong></h4><p>nmap is a network scanning tool used to discover hosts and services on a computer network by sending packets and analyzing the responses.</p><ul><li><strong>Syntax:</strong></li></ul><pre>nmap &lt;options&gt; &lt;target&gt;</pre><h4><strong>Options:</strong></h4><ul><li>-sS: Performs a TCP SYN scan.</li><li>-p &lt;ports&gt;: Scans specific ports.</li><li>-O: Enables OS detection.</li><li>-A: Performs an aggressive scan, including OS detection, version detection, script scanning, and traceroute.</li><li>-T&lt;0-5&gt;: Sets the timing template (higher is faster).</li></ul><h4><strong>Example:</strong></h4><pre><br>nmap -A 192.168.1.100</pre><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*6__rnlvVZHyecGtYEaQHIg.png" /></figure><p><strong>Explanation:</strong> Conducts an aggressive scan on the host at 192.168.1.100, providing detailed information including OS detection and service versions.</p><h3>C. Practical Troubleshooting Exercises</h3><h4><strong>1.Monitoring Network Traffic with tcpdump</strong></h4><pre>sudo tcpdump -c 10 -i eth0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*EutrB1oMr6sUyYlLSfMd3w.png" /></figure><p><strong>Explanation:</strong> This command captures all packets on the eth0 interface. Use options like -w to save the capture for later analysis or -c to limit the number of packets</p><h4><strong>Example:</strong></h4><pre>sudo tcpdump -i eth0 -c 100 -w capture.pcap</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*eVwzliHqli0RqKBEJGxMeQ.png" /></figure><p><strong>Explanation:</strong> Captures 100 packets on eth0 and saves them to capture.pcap.You can later open this file via wireshark for more detailed analysis cat</p><h4><strong>2. Using nmap to Scan a Network</strong></h4><p>When using Nmap to scan a whole subnet, make sure you have explicit permission to scan the network. Unauthorized scanning can lead to serious legal and administrative consequences. Always ensure your activities are compliant with relevant laws and network policies. Use Nmap responsibly and ethically within permitted networks to avoid any negative repercussions.</p><pre>nmap -sS -p 1-65535 192.168.1.0/24</pre><ul><li><strong>Explanation:</strong> Performs a TCP SYN scan on all ports across the 192.168.1.0/24 subnet.</li></ul><h4><strong>Example:</strong></h4><pre>nmap -A -T4 192.168.1.100</pre><ul><li><strong>Explanation:</strong> Conducts an aggressive scan on the host at 192.168.1.100, providing detailed information including OS detection and service versions.</li></ul><p>By understanding and practicing these techniques and tools, you can effectively troubleshoot and manage network issues, ensuring smooth and secure network operations. For a deeper dive into specific network services, you can refer to our previous blog post on SSH and FTP for foundational knowledge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2104c7fddc8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Capturing HTTP Login Credentials Using Wireshark]]></title>
            <link>https://alestinshelmon1.medium.com/capturing-http-login-credentials-using-wireshark-2517fe67c13a?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2517fe67c13a</guid>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[credentials]]></category>
            <category><![CDATA[networkpenetrationtesting]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 19:44:04 GMT</pubDate>
            <atom:updated>2024-06-12T19:44:04.794Z</atom:updated>
            <content:encoded><![CDATA[<p>In this live task, we’ll use Wireshark to capture HTTP packets containing login credentials. This demonstration is purely for educational purposes and should only be conducted on a test network with permission.</p><h3>What is Wireshark?</h3><p>Wireshark is a powerful and widely-used network protocol analyzer. It captures and interactively displays the data traveling back and forth on a network in real-time. This data, or “packets,” can be analyzed to understand various network activities, diagnose issues, and detect malicious behavior.</p><p><strong>Key Features of Wireshark:</strong></p><ul><li><strong>Live Capture</strong>: Capture packets in real-time from a live network connection.</li><li><strong>Offline Analysis</strong>: Analyze previously captured packets stored in a file.</li><li><strong>Rich Protocol Support</strong>: Supports a wide range of network protocols.</li><li><strong>Filtering Capabilities</strong>: Advanced filtering options to isolate specific traffic.</li><li><strong>User-friendly Interface</strong>: Graphical and command-line interfaces for flexible usage.</li></ul><h3>Brief Introduction to Packets in Wireshark</h3><p>Packets are the fundamental units of data transmitted across a network. Each packet contains control information and user data, or payload. In Wireshark, packets are captured and displayed in a detailed and organized manner. Here’s a brief overview of how packets are represented in Wireshark:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*a37Mmp00tSxrfGsic9gpow.png" /></figure><ul><li><strong>Packet List Pane</strong>: Displays all captured packets sequentially.</li><li><strong>Packet Details Pane</strong>: Shows the breakdown of each packet, including headers and payloads.</li><li><strong>Packet Bytes Pane</strong>: Displays the raw data of the packet in hexadecimal and ASCII formats.</li></ul><h3>Steps to Capture HTTP Login Credentials</h3><h3>Step 1: Open Wireshark</h3><ol><li>Launch Wireshark on your Kali Linux system.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*4yvp2L7vGDs6qd1jNcD4sA.png" /></figure><p>click to open <strong>wireshark</strong></p><ol><li>Select the network interface you want to capture traffic on (e.g., eth0) and click the blue shark fin icon to start capturing.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*GQs1kW8fww0YsCWkI_WfLg.png" /></figure><h3>Step 2: Open Browser and HTTP Testing Login Site</h3><ol><li>Open your web browser.</li><li>Navigate to an HTTP testing login site such as <a href="http://testphp.vulnweb.com/login.php.">http://testphp.vulnweb.com/login.php.</a> This site is designed for testing purposes.</li></ol><h3>Step 3: Capture the Data</h3><ol><li>Enter the login credentials (e.g., username: testuser, password: testpassword) on the HTTP login page.</li><li>Submit the form.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*Y6Sd3KU8Zg9BFSOKMTbjEw.png" /></figure><ol><li>Go back to Wireshark and stop the capture by clicking the red square button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*a37Mmp00tSxrfGsic9gpow.png" /></figure><h3>Step 4: Save the Capture Data</h3><ol><li>Save the captured data to a file named test.pcapng.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*GFIasaIh3xZwiAS8Py6c5Q.png" /></figure><p>2. Go to File &gt; Save As... and choose a location and filename.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*-x9sdMWwZpaBgLCaEhj2Ng.png" /></figure><h3>Step 5: Analyze the Capture Data</h3><ol><li>Open the test.pcapng file in Wireshark.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*Kt6hhzijJH9IdiYkuOnzNQ.png" /></figure><p>Apply a display filter to isolate HTTP traffic. In the filter bar, type http and press Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*BM6BwCqqFNH4i21vmCzsEw.png" /></figure><h3>Step 6: Find the Login Credentials</h3><ol><li>Look through the filtered packets for the HTTP POST request that contains the login credentials. This typically includes a packet where the form data is being sent to the server.</li><li>Right-click on the packet and select “Follow &gt; HTTP Stream” to see the entire HTTP conversation.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*esswlxrB40OIeNgP1eWHEQ.png" /></figure><h3>Conclusion</h3><p>By following these steps, you will be able to capture and analyze HTTP traffic to find login credentials using Wireshark. This exercise demonstrates the importance of using secure protocols such as HTTPS to protect sensitive information from being intercepted.</p><h3>Ethical Considerations</h3><p>Remember, capturing and analyzing network traffic without permission is illegal and unethical. Always ensure you have explicit permission and are operating in a controlled environment designed for testing and educational purposes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2517fe67c13a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 9: Deep Dive into Network Services and Management]]></title>
            <link>https://alestinshelmon1.medium.com/day-9-deep-dive-into-network-services-and-management-2a0d1ec8a8a4?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a0d1ec8a8a4</guid>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Sat, 08 Jun 2024 05:14:31 GMT</pubDate>
            <atom:updated>2024-06-08T05:14:31.549Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s focus is on understanding and managing network services, such as SSH, FTP, and HTTP, and learning to start, stop, and restart these services using essential commands. This comprehensive guide will help you gain a strong grasp of network services and their management in a Linux environment.</p><h3>A. Understanding Different Network Services</h3><p>Network services are critical components in a networked system. Here are detailed descriptions of some essential services:</p><h4><strong>1. SSH (Secure Shell)</strong></h4><p>SSH (Secure Shell) is a network protocol that <strong>provides a secure channel over an unsecured network</strong>. This secure channel ensures that data transferred between the client and server is encrypted, thus maintaining the confidentiality and integrity of the information being exchanged. SSH is widely utilized for remote login and command execution, <strong>particularly on remote Linux servers.</strong></p><p>When administrators or users need to manage and interact with remote machines, SSH offers a robust and secure method to do so. Unlike older protocols such as Telnet, which transmit data in plain text, SSH encrypts the entire session, making it extremely difficult for attackers to intercept and read the data being transmitted. This encryption covers all communications, including passwords, making SSH a critical tool for maintaining security in remote operations.</p><p>In addition to basic remote login, SSH supports various features such as tunneling, forwarding TCP ports, and X11 connections; it can also be used for secure file transfers via protocols like SCP (Secure Copy Protocol) and SFTP (SSH File Transfer Protocol). The flexibility and security provided by SSH make it a fundamental tool in system administration, allowing for secure management of servers and network devices without needing physical access to the hardware.</p><ul><li><strong>Usage:</strong> Remote server management, secure file transfers, and running commands on a remote linux machine.</li><li><strong>Example Command:</strong> ssh user@remote_host</li><li><strong>Configuration File:</strong> /etc/ssh/sshd_config</li><li>SSH is crucial for secure remote administration, allowing administrators to manage servers without physical access. For more details, refer to</li></ul><blockquote><a href="https://medium.com/@alestinshelmon1/configuring-ssh-on-centos-7-45466e403f4c">https://medium.com/@alestinshelmon1/configuring-ssh-on-centos-7-45466e403f4c</a></blockquote><h4><strong>2. FTP (File Transfer Protocol)</strong></h4><p>FTP enables the t<strong>ransfer of files between computers on a network.</strong> It operates using separate control and data connections, which allows for efficient management of file transfers. The control connection is used for sending commands and receiving responses, while the data connection is used for transferring the actual files. This separation allows FTP to manage multiple file transfers simultaneously. However, traditional FTP is not secure as it transmits data in plain text, making it susceptible to interception and attacks. Secure alternatives like SFTP (SSH File Transfer Protocol) or FTPS (FTP Secure) are recommended for secure file transfers, as they provide encryption to protect the data during transmission.</p><ul><li><strong>Usage:</strong> Uploading and downloading files from a server.</li><li><strong>Example Command:</strong> ftp ftp.example.com</li><li><strong>Configuration File:</strong> /etc/vsftpd/vsftpd.conf (for vsftpd server)</li><li>FTP is widely used for file sharing, though it’s less secure compared to its encrypted versions (SFTP, FTPS).</li></ul><h4><strong>3. HTTP (Hypertext Transfer Protocol)</strong></h4><p>HTTP is the foundation of data communication on the web. It allows web browsers to retrieve web pages from servers. HTTP is stateless, meaning each request from a client to server is independent. For secure data transmission, HTTPS (HTTP Secure) is used, which adds a layer of encryption via SSL/TLS. This ensures that the data exchanged between the client and server is encrypted, protecting it from eavesdropping and tampering. HTTPS is essential for securing sensitive information such as login credentials, financial transactions, and personal data.</p><ul><li><strong>Usage:</strong> Accessing websites and web services.</li><li><strong>Configuration File:</strong> /etc/httpd/conf/httpd.conf (for Apache HTTP server)</li><li><strong>Explanation:</strong> HTTP is essential for web communication, enabling browsers to retrieve and display web content.</li></ul><h3>B. Managing Network Services with systemctl and service Commands</h3><p>The systemctl and service commands are vital for managing network services in Linux. Here are common operations:</p><h4><strong>a. Using </strong><strong>systemctl Command</strong></h4><h4><strong>1. Start a Service:</strong></h4><pre>sudo systemctl start &lt;service_name&gt;</pre><h4>Example:</h4><pre>sudo systemctl start sshd</pre><p><strong>Explanation:</strong> Starts the specified service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*LT8ZfE7gizPDeT6Q.png" /></figure><h4><strong>2. Stop a Service:</strong></h4><pre>sudo systemctl stop &lt;service_name&gt;</pre><h4>Example:</h4><pre>sudo systemctl stop sshd</pre><p><strong>Explanation:</strong> Stops the specified service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*W0kM_vt0N2ZHUQ7H.png" /></figure><h4><strong>3. Restart a Service:</strong></h4><pre>sudo systemctl restart &lt;service_name&gt;</pre><h4>Example:</h4><pre>sudo systemctl restart httpd</pre><p><strong>Explanation:</strong> Stops and then starts the service.</p><h4><strong>4. Check the Status of a Service:</strong></h4><pre>sudo systemctl status &lt;service_name&gt;</pre><h4>Example:</h4><pre>sudo systemctl status vsftpd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*HDoxQiYBvarLGTm_.png" /></figure><p><strong>Explanation:</strong> Provides the current status of the service.</p><h4><strong>5. Enable a Service to Start on Boot:</strong></h4><pre>sudo systemctl enable &lt;service_name&gt;</pre><h4>Example:</h4><pre>sudo systemctl enable httpd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*36PaA4MovmcIx6DK.png" /></figure><p><strong>Explanation:</strong> Configures the service to start automatically at boot.</p><h4><strong>6. Disable a Service from Starting on Boot:</strong></h4><pre>sudo systemctl disable &lt;service_name&gt;</pre><h4>Example:</h4><pre>sudo systemctl disable httpd</pre><p><strong>Explanation:</strong> Prevents the service from starting automatically at boot.</p><h4><strong>b. Using </strong><strong>service Command</strong></h4><h4><strong>1. Start a Service:</strong></h4><pre>sudo service &lt;service_name&gt; start</pre><h4>Example:</h4><pre>sudo service sshd start</pre><p><strong>Explanation:</strong> Starts the specified service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*36PaA4MovmcIx6DK.png" /></figure><h4><strong>2. Stop a Service:</strong></h4><pre>sudo service &lt;service_name&gt; stop</pre><h4>Example:</h4><pre>sudo service sshd stop</pre><p><strong>Explanation:</strong> Stops the specified service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*W0kM_vt0N2ZHUQ7H.png" /></figure><h4><strong>3. Restart a Service:</strong></h4><pre>sudo service &lt;service_name&gt; restart</pre><h4>Example:</h4><pre>sudo service httpd restart</pre><p><strong>Explanation:</strong> Restarts the specified service.</p><h4><strong>4. Check the Status of a Service:</strong></h4><pre>sudo service &lt;service_name&gt; status</pre><h4>Example:</h4><pre>sudo service vsftpd status</pre><p><strong>Explanation:</strong> Checks and displays the current status of the service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*HDoxQiYBvarLGTm_.png" /></figure><h3>C. Practice Managing SSH and Apache Services</h3><p>Practical exercises are essential for mastering network service management. Here are some tasks to help you practice:</p><h3><strong>a. Managing SSH Service</strong></h3><h4><strong>1. Start SSH Service:</strong></h4><pre>sudo systemctl start sshd</pre><p><strong>Explanation:</strong> Starts the SSH service for secure remote communication.</p><h4><strong>2. Stop SSH Service:</strong></h4><pre>sudo systemctl stop sshd</pre><p><strong>Explanation:</strong> Stops the SSH service.</p><h4><strong>3. Restart SSH Service:</strong></h4><pre>sudo systemctl restart sshd</pre><p><strong>Explanation:</strong> Restarts the SSH service, applying any configuration changes.</p><h4><strong>4. Check SSH Service Status:</strong></h4><pre>sudo systemctl status sshd</pre><ul><li><strong>Explanation:</strong> Provides the status of the SSH service.</li></ul><h4><strong>5. Configure SSH for Key-Based Authentication:</strong></h4><ul><li>Edit the SSH configuration file (/etc/ssh/sshd_config) to enable key-based authentication:</li></ul><pre>sudo nano /etc/ssh/sshd_config <br># Add or modify the following lines: <br>PubkeyAuthentication yes <br>AuthorizedKeysFile .ssh/authorized_keys</pre><p>.After modifying the configuration file<strong> restart</strong> the service to implement the changes made</p><pre>sudo systemctl restart sshd</pre><ul><li><strong>Explanation:</strong> Configures SSH for key-based authentication, enhancing security.</li></ul><h3><strong>b. Managing Apache Service</strong></h3><h4><strong>1. Start Apache Service:</strong></h4><pre>sudo systemctl start httpd</pre><p><strong>Explanation:</strong> Starts the Apache HTTP server.</p><h4><strong>2. Stop Apache Service:</strong></h4><pre>sudo systemctl stop httpd</pre><ul><li><strong>Explanation:</strong> Stops the Apache HTTP server.</li></ul><h4><strong>3. Restart Apache Service:</strong></h4><pre>sudo systemctl restart httpd</pre><ul><li><strong>Explanation:</strong> Restarts the Apache HTTP server.</li></ul><h4><strong>4. Check Apache Service Status:</strong></h4><pre>sudo systemctl status httpd</pre><ul><li><strong>Explanation:</strong> Provides the status of the Apache service.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a0d1ec8a8a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 8: Configuring Network Interfaces in Linux]]></title>
            <link>https://alestinshelmon1.medium.com/day-8-configuring-network-interfaces-in-linux-55abab7c4637?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/55abab7c4637</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ipaddressstatic]]></category>
            <category><![CDATA[linux-networking]]></category>
            <category><![CDATA[networking-commands]]></category>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Thu, 06 Jun 2024 06:06:42 GMT</pubDate>
            <atom:updated>2024-06-06T06:06:42.068Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, we delve into the configuration of network interfaces in Linux, distinguishing between static and dynamic IP addressing, and practicing these configurations using essential commands.</p><h3>A. Understanding IP Addressing</h3><h4>Static IP Addressing</h4><p>Static IP Addressing involves <strong>manually assigning a fixed IP address to a device on a network</strong>. This assignment typically involves configuring the device’s network settings, including its IP address, subnet mask, gateway, and DNS servers. Once configured, the device retains the same IP address until manually changed. Static IP addressing provides reliability and consistency, as devices always have the same IP address, making them predictable and easier to manage in environments where specific IP addresses are required for network services or applications.</p><h4>Dynamic IP Addressing</h4><p>Dynamic IP Addressing relies on DHCP (Dynamic Host Configuration Protocol) servers to<strong> automatically assign IP addresses to devices on a network</strong>. When a device connects to the network, it sends a request to the DHCP server, which then assigns an available IP address from a pool of addresses configured on the server. This process eliminates the need for manual IP configuration, making it particularly useful in large networks where managing static IP addresses for numerous devices can be cumbersome.</p><p>Dynamic IP addressing offers flexibility and scalability, as devices can join and leave the network without requiring manual IP configuration. Additionally, DHCP servers can assign IP addresses dynamically based on network demand, optimizing address utilization and conserving IP address space. However, the main drawback is that the assigned IP addresses are not fixed and may change over time, potentially causing issues for services or applications that rely on consistent IP addressing.</p><h3>B. Configuring a Static IP Address</h3><h4>Configuring a Network Interface with a Static IP Address</h4><p>network connections are managed by the NetworkManager daemon, which simplifies the process of configuring and managing network interfaces. For static IP address configuration, NetworkManager uses ifcfg files located in the /etc/sysconfig/network-scripts/ directory. These files define the network settings for each interface and allow for easy configuration and management.</p><h4>Step-by-Step Guide</h4><h4><strong>1. Create or Edit the Network Interface Configuration File</strong></h4><p>Create a file named /etc/sysconfig/network-scripts/ifcfg-ens33 (or edit it if it already exists) with the following contents. Replace ens33 with your actual network interface name, which can be determined using the ip link show command.</p><pre>sudo nano /etc/sysconfig/network-scripts/ifcfg-ens33</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*V9-6dCDVlsoqSqKThWodjw.png" /></figure><p><strong>Edit the file with the following contents</strong></p><h4><strong>2. Add the following configuration:</strong></h4><pre>DEVICE=eth0 <br>BOOTPROTO=none<br>ONBOOT=yes <br>PREFIX=24 <br>IPADDR=192.168.2.203 <br>GATEWAY=192.168.2.1  <br># Add your gateway IP address <br>DNS1=8.8.8.8         <br># Add your DNS server IP address <br>DNS2=8.8.4.4         <br># Add a secondary DNS server if needed</pre><ol><li><strong>Explanation of Configuration Parameters:</strong></li></ol><ul><li>DEVICE=eth0: Specifies the name of the network interface.</li><li>BOOTPROTO=none: Disables DHCP, indicating a static IP configuration.</li><li>ONBOOT=yes: Ensures the interface is activated at boot.</li><li>PREFIX=24: Specifies the subnet mask in CIDR notation (equivalent to 255.255.255.0).</li><li>IPADDR=192.168.2.203: Assigns the static IP address to the interface.</li><li>GATEWAY=192.168.2.1: Specifies the default gateway for the network.</li><li>DNS1=8.8.8.8: Sets the primary DNS server.</li><li>DNS2=8.8.4.4: Sets the secondary DNS server (optional).</li></ul><h4>modified configuration file</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Kn0D5zlb76WNeMzSLJrWZQ.png" /></figure><h4><strong>3. Restart the Network Service</strong></h4><ol><li>After saving the configuration file, restart the network service to apply the changes:</li></ol><pre>sudo systemctl restart network</pre><p><strong>Note:</strong> If you encounter any issues with the network service restarting, you can use the following command to check the status and logs for troubleshooting:</p><pre>sudo systemctl status network</pre><pre>sudo journalctl -xe</pre><h4><strong>4. Verify the Configuration</strong></h4><p>To ensure that the network interface is configured correctly with the static IP address, use the following command:</p><pre>ip addr show ens33</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*7cf44zuTDIxVP9nDKvCe8w.png" /></figure><p>You should see the assigned IP address (192.168.1.123) in the output</p><h4>Setting up a static</h4><h4>a. Using ifconfig:</h4><p><strong>ifconfig</strong> is a versatile command-line utility used to configure, manage, and query network interface parameters in Unix-like operating systems. It allows users to set up and manipulate network interfaces, including assigning IP addresses and configuring network-related parameters.</p><p><strong>Syntax</strong></p><pre>ifconfig &lt;interface&gt; &lt;IP_address&gt; netmask &lt;netmask&gt;</pre><p><strong>Options:</strong></p><ul><li>&lt;interface&gt;: Specifies the name of the network interface to be configured.</li><li>&lt;IP_address&gt;: Specifies the static IP address to assign to the network interface.</li><li>&lt;netmask&gt;: Specifies the subnet mask corresponding to the assigned IP address, defining the network portion of the address.</li></ul><p><strong>Example:</strong></p><pre>ifconfig ens33 192.168.1.100 netmask 255.255.255.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*rshqNRJlt0yi5b9eqhhh3A.png" /></figure><p>This command assigns the IP address 192.168.1.100 to the network interface eth0 with a subnet mask of 255.255.255.0. The IP address serves as the unique identifier for the device on the network, while the subnet mask determines the network portion of the address.</p><h4>b. Using ip</h4><p>ip is a powerful and versatile tool for manipulating networking parameters in Linux systems. It provides advanced functionality for configuring network interfaces, routing, and policy-based routing, offering more flexibility and control compared to traditional utilities like ifconfig.</p><p><strong>Syntax:</strong></p><pre>ip addr add &lt;IP_address&gt;/&lt;prefix_length&gt; dev &lt;interface&gt;</pre><p><strong>Options:</strong></p><ul><li>&lt;IP_address&gt;/&lt;prefix_length&gt;: Specifies the IP address along with the prefix length, indicating the subnet mask.</li><li>dev &lt;interface&gt;: Specifies the network interface to which the IP address will be assigned.</li></ul><p><strong>Example:</strong></p><pre>ip addr add 192.168.1.100/24 dev eth0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*Aabjn_To2NqnY226euqvGQ.png" /></figure><p>This command assigns the IP address 192.168.1.100 with a subnet mask of 255.255.255.0 (represented as /24) to the network interface eth0. The prefix length specifies the number of bits in the subnet mask, determining the size of the network.</p><h3>B. Setting Up a Dynamic IP Address Using DHCP</h3><h4>1. Create or Edit the Network Interface Configuration File</h4><p>Create a file named /etc/sysconfig/network-scripts/ifcfg-ens33 (or edit it if it already exists) with the following contents. Replace ens33 with your actual network interface name, which can be determined using the ip link show command.</p><pre>sudo nano /etc/sysconfig/network-scripts/ifcfg-ens33</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*V9-6dCDVlsoqSqKThWodjw.png" /></figure><p><strong>Explanation</strong>: Configures interface eth0 to use DHCP for dynamic IP assignment.</p><h4>2. Restart networking service:</h4><pre>sudo systemctl restart network</pre><h4>3. Verifying Network Configurations</h4><h4>a. Using ifconfig:</h4><pre>ifconfig ens33</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*jypQqmqcXbiB2eaus-yoSw.png" /></figure><h4>b. Using ip addr:</h4><pre>ip addr show dev eth0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*YVJY4JJoownISkgvQXlBng.png" /></figure><h3>Conclusion</h3><p>By practicing these configurations, you gain proficiency in managing network interfaces in Linux. Understanding the nuances of static and dynamic IP addressing enhances your networking expertise. Take time to verify your configurations to ensure smooth network operation. Stay diligent and check off each task upon completion to track your progress!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55abab7c4637" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 7: Mastering Network Commands in Linux]]></title>
            <link>https://alestinshelmon1.medium.com/day-7-mastering-network-commands-in-linux-e5c0d4c99966?source=rss-a4fc7b0fb07d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5c0d4c99966</guid>
            <dc:creator><![CDATA[Alestin shelmon]]></dc:creator>
            <pubDate>Tue, 04 Jun 2024 12:00:08 GMT</pubDate>
            <atom:updated>2024-06-04T20:17:23.461Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to Day 7 of our journey into mastering Linux! Today, we’re diving into the world of network commands. We’ll explore how to view network configurations, check connectivity, and gather network statistics using essential Linux commands. By the end of this blog, you’ll be comfortable with using ifconfig, ip, ping, traceroute, and netstat commands, and you&#39;ll understand the significance of their outputs. Let&#39;s get started!</p><h3>A. Usage of ifconfig and ip Commands</h3><p>The first step in our network command exploration is understanding how to view network configurations using ifconfig and ip commands.</p><h4>1. ifconfig</h4><p><strong>Description</strong>: The ifconfig (interface configuration) command is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually used when needed during debugging or when you need system tuning.</p><p><strong>Syntax</strong>:</p><pre>ifconfig [interface] [options]</pre><p><strong>Common Options</strong>:</p><h4><strong>a. Without Options:</strong></h4><p>Displays the current configuration of all active network interfaces.</p><pre>ifconfig</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*lXsIlWd2U30JPn5f.png" /></figure><p><strong>output breakdown</strong></p><ul><li><strong>eth0</strong>: This is the name of the network interface.</li><li><strong>flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;</strong>: These flags indicate the status and capabilities of the interface.</li><li><strong>UP</strong>: The interface is up and running.</li><li><strong>BROADCAST</strong>: The interface supports broadcasting.</li><li><strong>RUNNING</strong>: The interface is operational.</li><li><strong>MULTICAST</strong>: The interface supports multicast.</li><li><strong>mtu 1500</strong>: Maximum Transmission Unit, the largest size of packets that the network interface can send.</li><li><strong>inet 192.168.5.112</strong>: The IPv4 address assigned to the interface.</li><li><strong>netmask 255.255.255.0</strong>: The subnet mask.</li><li><strong>broadcast 192.168.1.255</strong>: The broadcast address.</li><li><strong>inet6 fe80::a00:27ff:fe14:57db</strong>: The IPv6 address assigned to the interface.</li><li><strong>prefixlen 64</strong>: The prefix length of the IPv6 address.</li><li><strong>scopeid 0x20&lt;link&gt;</strong>: The scope of the address, which in this case is link-local.</li><li><strong>ether 08:00:27:14:57</strong></li><li>: The MAC (Media Access Control) address.</li><li><strong>txqueuelen 1000</strong>: The length of the transmission queue.</li><li><strong>RX packets 467766 bytes 64190214 (61.1 MiB)</strong>: Statistics on received packets and their total size.</li><li><strong>RX errors 0 dropped 0 overruns 0 frame 0</strong>: Error statistics for received packets.</li><li><strong>TX packets 234456 bytes 37914658 (36.1 MiB)</strong>: Statistics on transmitted packets and their total size.</li><li><strong>TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</strong>: Error statistics for transmitted packets.</li></ul><h4><strong>b. interface</strong>:</h4><p>Display configuration for a specific interface.</p><ul><li><strong>Example:</strong></li></ul><pre>ifconfig eth0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/0*3Q25B-GTsZWJbx4M.png" /></figure><p>This output is similar to the one above but focuses on the eth0 interface only.</p><h4><strong>c. down</strong>:</h4><p>Deactivate an interface.</p><pre>ifconfig eth0 down</pre><ul><li><strong>Example</strong>:</li></ul><pre>sudo ifconfig eth0 down</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*g5IHg8V6V9Swbk_I.png" /></figure><p>This command brings down the eth0 interface, effectively disabling it.</p><h4><strong>d. up</strong>:</h4><p>Activate an interface.</p><pre>ifconfig eth0 up</pre><ul><li><strong>Example</strong>:</li></ul><pre>sudo ifconfig eth0 up</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*s6EJnSiRfTIJQzwfYagRPg.png" /></figure><p>This command brings up the eth0 interface. Using sudo ensures you have the necessary permissions.</p><h4><strong>e. netmask</strong>:</h4><p>Set a network mask.</p><pre>ifconfig eth0 netmask 255.255.255.0</pre><p><strong>Example</strong>:</p><pre>sudo ifconfig eth0 netmask 255.255.0.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*IIv1wYXWDqa3WdxvW9RGyA.png" /></figure><p>This command sets the subnet mask for the eth0 interface.</p><h4><strong>f. broadcast</strong>:</h4><ul><li>Set a broadcast address.</li></ul><pre>ifconfig eth0 broadcast 192.168.1.255</pre><ul><li><strong>Example</strong>:</li></ul><pre>sudo ifconfg eth0 broadcast 192.168.1.255</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*eDssyhbD8-wA04c2K7CWYQ.png" /></figure><p>This command sets the broadcast address for the eth0 interface.</p><h4><strong>g. mtu</strong>:</h4><p>Set the maximum transmission unit.</p><pre>ifconfig eth0 mtu 1500</pre><p><strong>Example</strong>:</p><pre>sudo ifconfig eth0 mtu 1600</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*tapqKTUpPjlGqeVr9TWRAg.png" /></figure><p>This command sets the MTU for the eth0 interface.</p><p><strong>Note: </strong>The above examples are just a few of the options available with the if configcommand, for more options and details, you can use ifconfigcommand to get the manual of the ifconfigcommand.</p><h3>2. ip addr</h3><p><strong>Description</strong>: The ip command is a more modern and versatile tool for managing network interfaces compared to ifconfig. It provides detailed information on network interfaces and their IP addresses.</p><p><strong>Syntax</strong>:</p><pre>ip addr [show] [interface]</pre><p><strong>Common Options</strong>:</p><h4><strong>a. show</strong>:</h4><p>Display all IP addresses and properties for all interfaces (default).</p><pre>ip addr</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Y_2Ej57EJm5pYD7gHwLHvA.png" /></figure><h4><strong>b. interface</strong>:</h4><p>Show information for a specific interface.</p><pre>ip addr show eth0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*9BUk-i8Ilf88ibla_3NtuQ.png" /></figure><h4><strong>c. add</strong>:</h4><p>Add an IP address to an interface.</p><pre>ip addr add 192.168.1.100/24 dev eth0</pre><h4><strong>d. del</strong>:</h4><p>Remove an IP address from an interface.</p><pre>ip addr del 192.168.1.100/24 dev eth0</pre><p><strong>Note: </strong>The above examples are just a few of the options available with the ip addrcommand, for more options and details, you can use ip addrcommand to get the manual of the ip addrcommand.</p><h3>B. ping Command:</h3><p>The ping command is used to test the reachability of a host on an IP network. It works by sending a series of Internet Control Message Protocol (ICMP) “echo request” packets to the target host and listening for ICMP “echo response” replies. The basic syntax of the ping command is:</p><h4>Common Options:</h4><ul><li>-c COUNT: Stop after sending COUNT packets.</li><li>-i INTERVAL: Wait INTERVAL seconds between sending each packet.</li><li>-t TTL: Set the Time To Live.</li><li>-s PACKETSIZE: Specifies the number of data bytes to be sent.</li><li>-W TIMEOUT: Time to wait for a response, in seconds.</li></ul><h4><strong>Syntax :</strong></h4><pre>ping [options] [host]</pre><p>Where host is the IP address or hostname of the target host you want to test</p><p><strong>Common Options</strong>:</p><h4>a. ping ip</h4><p>To ping a host with IP address</p><h4>Syntax :</h4><pre>ping [options] [ipadress]</pre><p><strong>Example :</strong></p><pre>ping -c 4 8.8.8.8</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*s2lbFb6ZsG3p6S0oFR5tlg.png" /></figure><h4>b. ping hostname</h4><p>To ping a host with hostname</p><h4>Syntax :</h4><pre>ping [options] [hostname]</pre><p><strong>Example :</strong></p><pre>ping -c 4 google.com</pre><p>Ping google.com with a Specified Number of Packets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*5Vu3vcJGPvj4jOYt1uRAKA.png" /></figure><h4>c. Set the Interval Between Packets</h4><p>Set the Interval Between Packets to 2 Seconds</p><pre>ping -i 2 google.com</pre><p>This command sends ICMP ECHO_REQUEST packets to google.com with a <strong>2-second interval between each packet</strong>. The output shows the round-trip time for each packet with the specified interval.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*-FU4oPWmkjezzzoBt2ETvw.png" /></figure><h4>d. Set the Time</h4><p>Sets the Time To Live to 10</p><pre>ping -t 10 google.com</pre><p>This command sends ICMP ECHO_REQUEST packets to google.com with a TTL of 10. The output shows the round-trip time for each packet, with packets likely not reaching the destination due to the low TTL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*5tJXkYACKoHCWG-KsEdiRA.png" /></figure><h4>e. Specify a Packet Size</h4><p>Specify a Packet Size of 100 Bytes</p><pre>ping -s 32 google.com</pre><p>This command sends ICMP ECHO_REQUEST packets to google.com with a data size of 32 bytes. The output shows the round-trip time for each packet with the specified size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*54ute__B0an9kbaKhpYcZA.png" /></figure><h4>f. Set a Timeout</h4><p>Set a Timeout of 5 Seconds</p><pre>ping -W [destination]</pre><p>This command sends ICMP ECHO_REQUEST packets to [desination] and waits up to 5 seconds for a response. The output shows the round-trip time for each packet, or indicates a timeout if no response is received within 5 seconds.</p><p><strong>Note: </strong>The above examples are just a few of the options available with the ping command, for more options and details, you can use man ping command to get the manual of the ping command.</p><h3>C. traceroute command</h3><h4>Basic Syntax:</h4><pre>traceroute [OPTIONS] DESTINATION</pre><h4>Common Options:</h4><ul><li>-4: Use IPv4.</li><li>-6: Use IPv6.</li><li>-d: Enable socket-level debugging.</li><li>-F: Set the don&#39;t fragment bit.</li><li>-f [first_ttl]: Set the initial TTL (time to live) for packets.</li><li>-g [gateway]: Specify a loose source route gateway (maximum 8).</li><li>-I: Use ICMP ECHO for probes.</li><li>-i [interface]: Specify the network interface to use.</li><li>-m [max_ttl]: Set the maximum TTL (maximum hop count).</li><li>-n: Do not resolve hostnames, show numerical addresses.</li><li>-p [port]: Set the destination port to use (for UDP and TCP).</li><li>-q [nqueries]: Set the number of probes per hop.</li><li>-r: Bypass the normal routing tables, send directly to a host on an attached network.</li><li>-S: Print the number of used probes and hops after each line.</li><li>-s [source_address]: Use the specified source address.</li><li>-t [tos]: Set the type of service (TOS) field.</li><li>-T: Use TCP SYN for probes.</li><li>-v: Verbose output.</li><li>-w [wait]: Set the time to wait for a response, in seconds.</li><li>-x: Enable ICMP extensions.</li><li>-z [pause]: Set the time to pause between probes, in seconds.</li></ul><h4>a. Traceroute with a Maximum of 10 Hops</h4><pre>traceroute -m 10 google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*h-C6zGrCUv5gh4nBHFVuiQ.png" /></figure><p>This command performs a traceroute to google.com with a maximum of 10 hops. The output shows each hop and the round-trip time for probes sent to each hop.</p><h4>b. Use a Specific Destination Port</h4><pre>traceroute -p 8080 google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*3gC3L2EuSNKqzhl8QaPDGw.png" /></figure><p>This command performs a traceroute to google.com using port 8080. The output shows each hop and the round-trip time for probes sent to each hop on the specified port.</p><h4>c . Use IPv4</h4><pre>traceroute -4 google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*9R0Aj-0d0Kt_rsgz5Cq7pA.png" /></figure><p>Forces traceroute to use IPv4 for the probes. This is useful when you want to ensure that IPv4 is used instead of IPv6.</p><h4>d. Use IPv6</h4><pre>traceroute -6 google.com</pre><p>Forces traceroute to use IPv6 for the probes. This is useful when you want to ensure that IPv6 is used instead of IPv4.</p><h4>e. Set Initial TTL (Time to Live)</h4><pre>traceroute -f 5 google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*TrL_jrYttuVdG2gvMkb4uw.png" /></figure><p>Sets the initial TTL to 5. This means the probes will start from the 5th hop.</p><h4>f. Do Not Resolve Hostnames</h4><pre>traceroute -n google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*zX0QmjON5sJ-4hgVcS3ZmQ.png" /></figure><p>Displays numerical addresses instead of resolving hostnames. This can speed up the command as it avoids DNS resolution.</p><h4>g. Use ICMP ECHO for Probes</h4><pre>traceroute -I google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*ZEhtfBbJOk3EFA9eMMd_QA.png" /></figure><p>Uses ICMP ECHO instead of UDP for probes. This is similar to the behavior of the ping command.</p><h4>h. Set Number of Probes per Hop</h4><pre>traceroute -q 2 google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*rCddXmJ9pvdfDZc8SrF2rw.png" /></figure><p>Sends 2 probes per hop instead of the default 3.</p><h4>i. Set the Time to Wait for a Response</h4><pre>traceroute -w 2 google.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*YPwLXUGaS8PAXT6VQzV8dQ.png" /></figure><p>Sets the time to wait for a response to 2 seconds. This can be useful for networks with high latency.</p><p><strong>Note: </strong>The above examples are just a few of the options available with the traceroute command, for more options and details, you can use man traceroute command to get the manual of the traceroute command.</p><h3>D. netstat Command in Linux</h3><p>The netstat command is used for displaying network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. It&#39;s a powerful tool for diagnosing network issues and monitoring network activity.</p><h4>Basic Syntax:</h4><pre>netstat [OPTIONS]</pre><h4>Common Options:</h4><ul><li>-a: Show all sockets (default: connected).</li><li>-t: Display TCP connections.</li><li>-u: Display UDP connections.</li><li>-n: Show numerical addresses instead of resolving hosts.</li><li>-p: Show the PID and name of the program to which each socket belongs.</li><li>-r: Display the routing table.</li><li>-i: Display network interfaces.</li><li>-s: Display summary statistics for each protocol.</li><li>-l: Show only listening sockets.</li></ul><h3>Examples:</h3><h4>a. Show All Sockets</h4><pre>netstat -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*qWpKuqrmBuX2b8GxP8zXOw.png" /></figure><p>This command displays all sockets, both listening and non-listening. The output includes TCP, UDP, and UNIX domain sockets.</p><h4>b. Display TCP Connections</h4><pre>netstat -t</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*DsKKIGdKPU2KJYv1ErSywA.png" /></figure><p>This command displays only TCP connections. The output includes information on the status of each TCP connection.</p><h4>c. Display UDP Connections</h4><pre>netstat -u</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*9_muuJ8Pr4JBlFjOU8ZqMQ.png" /></figure><p>This command displays only UDP connections. Since UDP is connectionless, it doesn’t show states like TCP.</p><h4>d. Show Numerical Addresses</h4><pre>netstat -n</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*U9QGzs5-l-G480iwF1a1PQ.png" /></figure><p>This command displays addresses and port numbers in numerical form instead of resolving hosts and services.</p><h4>e. Display Routing Table</h4><pre>netstat -r</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*ngqldveVk8PLvHG_qHCPRg.png" /></figure><p>This command displays the kernel routing table. The output is similar to the route -n command.</p><h4>f. Display Network Interfaces</h4><pre>netstat -i</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*uOJRZJJadUZzNrV9b7ZRMg.png" /></figure><p>This command displays statistics for network interfaces. The output includes the interface name, MTU, RX-OK, RX-ERR, RX-DRP, RX-OVR, TX-OK, TX-ERR, TX-DRP, TX-OVR, and flags.</p><h4>g. Display Summary Statistics for Each Protocol</h4><pre>netstat -s</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*dn6PUH9AV43n75EMSAL0AA.png" /></figure><p>This command displays a summary of statistics for each protocol. The output includes detailed statistics for TCP, UDP, ICMP, and IP protocols.</p><h4>h. Show Only Listening Sockets</h4><pre>netstat -l</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*i8A0Rd8UNyAjzVAcKw9Gbg.png" /></figure><p>This command displays only listening sockets. The output includes information on sockets that are in the listening state.</p><p><strong>Note: </strong>The above examples are just a few of the options available with the netstat command, for more options and details, you can use man netstat command to get the manual of the netstat command.</p><h4><strong>conclusion :</strong></h4><p>in this we discussed about the essential network commands. We explore ifconfig and ip for viewing and configuring network interfaces, ping for testing connectivity, traceroute for tracing network paths, and netstat for monitoring network connections and statistics. These commands enable efficient network management, troubleshooting, and performance tuning in a Linux environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5c0d4c99966" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>