<?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 elwaa4 on Medium]]></title>
        <description><![CDATA[Stories by elwaa4 on Medium]]></description>
        <link>https://medium.com/@alielgendy4?source=rss-9bc49f6e8301------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cZMYyD3He2Ovxg08bEXn7A.png</url>
            <title>Stories by elwaa4 on Medium</title>
            <link>https://medium.com/@alielgendy4?source=rss-9bc49f6e8301------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:30:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alielgendy4/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[Networking at eJPT course]]></title>
            <link>https://medium.com/@alielgendy4/networking-at-ejpt-course-736def219db2?source=rss-9bc49f6e8301------2</link>
            <guid isPermaLink="false">https://medium.com/p/736def219db2</guid>
            <category><![CDATA[ejpt]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[elwaa4]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 14:34:51 GMT</pubDate>
            <atom:updated>2024-07-27T13:17:08.540Z</atom:updated>
            <content:encoded><![CDATA[<h3>Networking at ejpt course</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*FWflJOyUEck6PxP0JrKVCA.png" /></figure><blockquote><em>protocols</em></blockquote><p>theses protocols ensure that different computer using different hardware can communicate</p><blockquote><em>packet</em></blockquote><p>the information between networked computers this information is carried by packets</p><p>these electrical signals are then interpreted as bits that make up the information</p><p>the packets has the following structure header and payload</p><ul><li>packet in application layer called : data</li><li>packet in transport layer called : segment</li><li>packet in internet layer called : packet</li><li>packet in link layer called : frame</li></ul><blockquote><em>header</em></blockquote><p>has a protocol specific structure this ensures that the receiving host can correctly</p><blockquote><em>payload</em></blockquote><p>the payload is the actual information it could be something like part of an email message or the content of a file</p><blockquote><em>iso /osi of seven layers</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*hbcfQPPcLJ2LxSVHeiguIg.png" /></figure><blockquote><em>Encapsulation / Tcp ip module</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*2Y7t1E_41cQcmYHiuAlLDw.png" /></figure><blockquote><em>IP</em></blockquote><p>the internet protocol is the protocol that runs on the internet layer of the internet protocol</p><p>ip is in charg of delivering the datagrams</p><p>and it uses ip addresses to identify a host</p><blockquote><em>IPv4 : an ipv4 addresses consists of four bytes or octets a byte consists of 8 bits</em></blockquote><p>you can represent up to 2⁸ it start from 0.0.0.0 to 255.255.255.255</p><p>example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26WzHuFk1St1UcHNXE9KsA.png" /></figure><p>local host : 127.0.0.0–127.255.255.255</p><p>private networks : 192.168.0.0–192.168.255.255</p><p>Remember : the lower layer serves the layer above</p><blockquote><em>mask</em></blockquote><p>to fully identify a host you also need to know its network to do that you will need an IP address and a netmask or subnet mask</p><blockquote><em>IPv6</em></blockquote><p>as a 32-bit IPv6 address has 2¹²⁸ =2³² * 2⁹⁶ possible addresses</p><p>2⁹⁶ is equal 79 octillion addresses</p><p>IPv6 address consists of 1-bit hexadecimal numbers separated by colon :</p><p>examples:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*IxhL4C3HvfIP05LmTfcjeg.png" /></figure><blockquote><em>Routing</em></blockquote><p>routers are devices connected to different networks at the same time they are able to forward IP datagrams from one network to another . the forwarding policy is based on routing protocols</p><blockquote><em>Routing Table</em></blockquote><p>to choose the right forwarding interface a router performs a lookup in routing table where it finds an IP</p><p>example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*p02ZkHEiiYZSuPl6faUfXQ.png" /></figure><blockquote><em>to check Routing table by commands use</em></blockquote><ul><li>ip route on linux</li><li>route print on windows</li><li>netstat -r on osx</li></ul><blockquote><em>Link Layer Devices and Protocols</em></blockquote><p>Hubs and switches are network devices that forward frames (layer 2 packets) on local network</p><p>they work with link layer network addresses: MAC addresses</p><blockquote><em>Mac addresses</em></blockquote><p>are 48 bit (6 bytes) long and are expressed in hexadecimal from (HEX)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*mERL3nq1k0cX3mkbR6XXrA.png" /></figure><blockquote><em>command line to know mac addresses</em></blockquote><ul><li>Linux → ip addr</li><li>windows → ipconfig /all</li></ul><blockquote><em>switch</em></blockquote><p>Switches are network devices that operate at the link layer of the OSI model. They are responsible for forwarding frames to the appropriate destination based on the MAC addresses in the frames. Switches use MAC address tables to learn and store the MAC addresses of connected devices. When a frame arrives at a switch, it checks the destination MAC address and forwards the frame only to the port connected to the device with that MAC address.</p><p>switches without VLANs do not segment networks routers do</p><blockquote><em>ARP</em></blockquote><p>with ARP a host can build the correct IP address -Mac address binding</p><blockquote><em>check the Arp cache of your host</em></blockquote><ul><li>Linux → ip neighbour</li><li>windows →arp -a</li></ul><blockquote><em>TCP and UDP</em></blockquote><p>In the TCP/IP protocol suite, TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are two transport layer protocols that are responsible for delivering data across a network.</p><p>TCP provides reliable, connection-oriented communication, ensuring that data is delivered in the correct order and without errors. It establishes a connection between the sender and receiver and performs error checking and flow control.</p><p>UDP, on the other hand, is a connectionless protocol that does not guarantee delivery or order of data. It is often used for real-time applications such as video streaming or online gaming, where a small delay is preferable to retransmission delays.</p><p>Both protocols have their own advantages and use cases, and the choice between TCP and UDP depends on the specific requirements of the application or service being used.</p><blockquote><em>TCP</em></blockquote><ul><li>Guarantees packet delivery → Because of that an application that needs a guaranteed delivery will use TCP as the transport protocol</li><li>connection oriented →it must establish a connection before transferring data</li><li>is most used transport protocol →like email clients , web browsers and FTP</li></ul><blockquote><em>UDP</em></blockquote><p>it does not guarantee packet delivery</p><p>it is connectionless</p><p>is faster than TCP ,as it provides a better throughput (number of packets per second ); it used by multimedia applications</p><p>used for VoIP and video streaming applications where you can tolerate a little glitch in the audio or video</p><blockquote><em>Ports</em></blockquote><p>are used to identify a signal network process on a machine if you want to unequivocally identify a process on a network , you need to know the IP : Port pair</p><p>like : 192.168.5.3:80</p><blockquote><em>Firewalls and Network Defense</em></blockquote><p>firewalls are specialized software modules running on a computer or a dedicated network device</p><p>they serve to filter packets with packet filtering an administrator can create rules like :</p><ul><li>source IP address</li><li>Destination IP address</li><li>Protocol</li><li>Source port</li><li>Destination port</li></ul><blockquote><em>The more common actions are</em></blockquote><ul><li>Allow : allow the packet to pass</li><li>Drop : drops the packet without any diagnostic message to packet source host</li><li>Deny : do not let the packet pass , but notify the source host</li></ul><p>packet filtering firewalls : inspecting the header of a packet does not give you any information on the actual packet content</p><blockquote><em>Packet Filtering</em></blockquote><p>An application layer exploit could be an XSS, a buffer overflow ,a SQL injection and much , much more</p><p>Packet filtering is not enough to stop layer 7 attacks</p><p>Trojan horse : used to remotely manage that machine , by default can be configured to accept connections on port 123 TCP or UDB</p><blockquote><em>Application Layer Firewalls</em></blockquote><p>Application Layer Firewalls works by checking all the OSI 7 layers</p><blockquote><em>IDS</em></blockquote><p>Intrusion Detection Systems (IDS) are security tools that monitor network traffic for suspicious activity or signs of unauthorized access. They analyze network packets and compare them against known patterns or signatures of attacks. When an IDS detects a potential threat, it can generate analert or take other actions to mitigate the risk. IDS can be an important part of network defense, helping to identify and respond to security incidents in real-time.</p><p>there is not just traffic detection , but intrusion detection</p><p>inspect the application payload trying detect any potential attack</p><p>IDS : used for detecting ongoing intrusions it checks for attack vectors like ping sweeps port scans ,SQL injections , buffer overflows</p><ul><li>A DMZ (Demilitarized Zone) is a network segment that separates an organization’s internal network from an external network, typically the internet. It acts as a buffer zone, providing an additional layer of security by isolating publicly accessible services from the internal network.</li><li>In a DMZ, you can place servers or services that need to be accessible from the internet, such as web servers, email servers, or FTP servers. These servers are exposed to the outside world but are isolated from the internal network where sensitive data and resources are stored.</li><li>By implementing a DMZ, you can protect your internal network from direct attacks and minimize the potential damage if a server in the DMZ is compromised.</li></ul><blockquote><em>IPS</em></blockquote><p>Intrusion Prevention Systems (IPS) are security tools that go beyond intrusion detection by actively preventing network attacks. IPS works by analyzing network traffic in real-time and taking immediate action to block or mitigate any detected threats. It can automatically drop malicious packets, reset connections, or send alerts to administrators for further investigation and response.</p><p>IPS plays a crucial role in network defense, helping organizations proactively protect their systems and data from unauthorized access and potential security breaches. By continuously monitoring network traffic, IPS can detect and prevent various types of attacks, such as malware infections, DDoS attacks, and unauthorized access attempts.</p><p>In addition to its real-time protection capabilities, IPS also provides valuable insights into network security by generating detailed logs and reports. These logs can be used for forensic analysis and incident response, allowing organizations to identify the source of an attack, assess the extent of the damage, and take appropriate measures to prevent future incidents.</p><p>Implementing an IPS as part of a comprehensive network security strategy can significantly enhance an organization’s overall security posture. By combining intrusion detection with proactive prevention measures, IPS helps organizations stay one step ahead of potential threats and protect their valuable assets.</p><blockquote><em>NAT</em></blockquote><p>Network Address Translation (NAT) is a technique used in computer networks to translate private IP addresses to public IP addresses and vice versa. It allows multiple devices in a private network to share a single public IP address, which conserves IP address space.</p><p>NAT operates at the network layer of the OSI model and is commonly used in home and small office networks. It provides an additional layer of security by hiding the internal IP addresses from the public network, making it more difficult for external threats to directly access the devices on the private network.</p><p>NAT can be implemented using various methods, such as static NAT, dynamic NAT, and port address translation (PAT). These methods determine how the translation is performed and how the mapping between private and public IP addresses is maintained.</p><p>Overall, NAT is an essential component in modern networking that enables efficient use of IP addresses and enhances network security.</p><blockquote><em>DNS</em></blockquote><p>Domain Name System (DNS) is a fundamental protocol used in computer networks to translate human-readable domain names into IP addresses. It acts as a distributed database that stores the mapping between domain names and IP addresses, allowing users to access websites and other network resources using easy-to-remember names.</p><p>When a user enters a domain name in a web browser, the DNS system is responsible for resolving that domain name to the corresponding IP address. This involves a series of queries and responses between DNS servers to find the authoritative server that holds the IP address information for the requested domain.</p><p>DNS plays a crucial role in the functioning of the internet, enabling seamless communication between devices and ensuring that users can easily access the resources they need. Without DNS, users would have to memorize complex IP addresses for every website they want to visit, which would be highly impractical.</p><p>In addition to translating domain names to IP addresses, DNS also supports other types of records, such as MX records for email routing and TXT records for information verification and authentication.</p><p>Overall, DNS is a critical component of modern networking infrastructure, facilitating the smooth operation of the internet and enabling users to navigate the online world with ease.</p><blockquote><em>DNS Structure</em></blockquote><ul><li>Host</li><li>Sub Domain</li><li>Domain</li><li>Top Level Domain</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*ctKymbi9cWnj8xmUY24zmA.png" /></figure><blockquote><em>command line to know IP for any web</em></blockquote><ul><li>Linux →ping IP OR web name</li><li>windows →nslookup</li></ul><p>اللهم انفعنا بما علمتنا و علمنا ما ينفعنا و رزقنا علما ينفعنا و زدنا علما الحمد لله على كل حال</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=736def219db2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>