<?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 Omer Faruk Sanlialp on Medium]]></title>
        <description><![CDATA[Stories by Omer Faruk Sanlialp on Medium]]></description>
        <link>https://medium.com/@ofsanlialp?source=rss-1a107912fba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HeUmpynqaLpgJ2vRndC3Bg.jpeg</url>
            <title>Stories by Omer Faruk Sanlialp on Medium</title>
            <link>https://medium.com/@ofsanlialp?source=rss-1a107912fba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 01:35:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ofsanlialp/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[Email Gateway Security]]></title>
            <link>https://medium.com/@ofsanlialp/investigating-email-threats-55aeb5d10da0?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/55aeb5d10da0</guid>
            <category><![CDATA[cyber-security-training]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[blue-team]]></category>
            <category><![CDATA[phishing]]></category>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 07:55:43 GMT</pubDate>
            <atom:updated>2023-09-30T07:57:30.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Az5hKA8a02SLW9wC" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One of the most popular attack type for cyber criminals are phishing attacks. In my previous articles, I mention that “<a href="https://medium.com/@ofsanlialp/what-is-phishing-attacks-how-to-prevent-phishing-1133c049e43f">What is Phishing Attacks? How to Prevent Phishing</a>” and we talked about “<a href="https://medium.com/@ofsanlialp/top-3-phishing-attacks-8cf0bb8e290d">TOP 3 Phishing Attacks</a>”. In this article, I would like to talk about email gateway security.</p><h3>Content:</h3><ul><li>Email Gateway Security</li><li>Important Logs for Detection</li><li>Important Log Fields</li></ul><h3>Email Gateway Security</h3><p>Email gateway security, also known as email security gateway or email security gateway appliance, refers to a set of measures and technologies implemented to protect an organization’s email infrastructure from various threats and vulnerabilities. These threats can include phishing attacks, malware (viruses, worms, Trojans), spam, and other forms of cyberattacks that target email systems.</p><p>Key components and features of email gateway security typically include:</p><p><strong>1. Anti-Phishing:</strong> Email gateways employ advanced algorithms and heuristics to detect phishing attempts. They analyse incoming emails for suspicious links, domains, and content that may mimic legitimate sources.<br> <br><strong>2. Anti-Malware:</strong> Email gateways scan email attachments and links for malware. They can detect and block viruses, ransomware, and other malicious payloads that may be sent via email.<br> <br><strong>3. Spam Filtering:</strong> Spam emails can clutter inboxes and potentially carry malicious content. Email gateways use filters to identify and move spam emails to a separate folder or quarantine them.<br> <br><strong>4. Content Filtering:</strong> Organizations can implement content filtering policies to control the types of content that can be sent or received via email. This helps prevent the transmission of sensitive data and inappropriate content.<br> <br><strong>5. Data Loss Prevention (DLP):</strong> DLP policies can be enforced at the email gateway to prevent the accidental or intentional leakage of sensitive data through email. This involves monitoring and blocking certain data types or patterns.<br> <br><strong>6. Email Authentication: </strong>Email gateways can check the authenticity of incoming emails by verifying SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting, and Conformance) records. This helps in detecting email spoofing and phishing attempts.<br> <br><strong>7. Encryption: </strong>Email gateways can facilitate email encryption, ensuring that sensitive information is transmitted securely. This can include Transport Layer Security (TLS) for email transport and end-to-end encryption for the content.<br> <br><strong>8. Archiving and Retention:</strong> Some email gateways offer archiving and retention capabilities, allowing organizations to store and retrieve email communications for compliance and legal purposes.<br> <br><strong>9. Behavioural Analysis:</strong> Advanced email gateways may use behavioural analysis and machine learning to identify unusual patterns in email communications, such as the sudden increase in email traffic or unusual attachment types.<br> <br><strong>10. Reporting and Monitoring:</strong> Email gateway solutions often provide reporting and monitoring tools to help administrators track email security incidents and analyze email traffic trends.</p><p>Implementing robust email gateway security is essential for protecting an organization’s sensitive information, maintaining business continuity, and preventing security breaches. It serves as a crucial layer in an organization’s overall cybersecurity strategy, complementing other security measures like endpoint protection, firewalls, and user training and awareness programs.</p><h3><strong>Important Logs for Detection</strong></h3><p>Email security solutions typically track and checks several type of logs to prevent potential attacks. Here are some common log types:</p><p><strong>1. Access Logs</strong>: Access logs record information about who accesses the email system, when they access it, and from which IP addresses. These logs help in identifying unauthorized access attempts and potential intrusions.<br> <br><strong>2. Authentication Logs:</strong> Authentication logs track user login attempts and record whether they were successful or failed. Failed login attempts may indicate unauthorized access attempts or brute force attacks.</p><p><strong>3. Email Delivery Logs:</strong> These logs document the delivery status of outbound emails. They record information about which emails were successfully delivered, bounced, or delayed. Monitoring email delivery logs helps ensure that legitimate emails reach their intended recipients.<br> <br><strong>4. SMTP Logs:</strong> Simple Mail Transfer Protocol (SMTP) logs track the details of email transmission, including sender and recipient addresses, timestamps, and the SMTP commands used during the email exchange. These logs are valuable for diagnosing email delivery issues and identifying suspicious email activity.<br> <br><strong>5. Content Scanning Logs:</strong> Email security solutions often perform content scanning for malware and other threats. Content scanning logs record information about the files and attachments that were scanned, as well as any threats detected.<br> <br><strong>6. Anti-Spam Logs:</strong> Anti-spam logs document the actions taken by the email security system to filter out spam emails. They may include information about emails that were marked as spam, quarantined, or delivered to the inbox.<br> <br><strong>7. Anti-Phishing Logs:</strong> These logs track the detection and handling of phishing attempts. They record information about emails that were identified as phishing threats, including details about the phishing URLs or content.<br> <br><strong>8. Data Loss Prevention (DLP) Logs: </strong>DLP logs capture events related to data protection policies. They record instances where sensitive data may have been transmitted via email in violation of organizational policies.<br> <br><strong>9. Firewall Logs:</strong> In some cases, email security solutions are integrated with network firewalls. Firewall logs provide information about network traffic, including email traffic, that is allowed or blocked by the firewall rules.<br> <br><strong>10. Alert Logs:</strong> Alert logs contain information about security alerts and events triggered by the email security solution. These logs help administrators quickly identify and respond to potential security incidents. <br> <br><strong>11. Policy Violation Logs:</strong> If email security policies are violated, these logs document the violations. This can include breaches of content filtering policies, authentication rules, or other security policies.<br> <br><strong>12. Audit Logs:</strong> Audit logs provide a comprehensive record of all activities within the email security system. They are valuable for compliance purposes and for investigating security incidents.</p><p><strong>13. System Performance Logs:</strong> These logs track the performance of the email security solution, including resource utilization, system errors, and uptime/downtime events.</p><h3>Important Log Fields</h3><p><strong>1. SMTP Server IP:</strong> Checking whether incoming emails are sent from blacklisted SMTP server IPs or identifying spoofed emails is a common practice in email security to protect against spam, phishing, and other malicious activities. To perform these checks, you can use various tools and services that maintain lists of known blacklisted SMTP server IPs and implement authentication methods like SPF, DKIM, and DMARC.</p><p><strong>2. Sender email address:</strong> Receiving an email from a blacklisted domain or an email address that appears suspicious should indeed raise concerns about the authenticity and legitimacy of the message. Email spoofing is a common tactic used by cybercriminals to deceive recipients into believing that an email is coming from a trusted source, even when it’s not.</p><p><strong>3. Recipient email address: </strong>If you have received an email from a potentially malicious or blacklisted domain and you want to scope the potentially infected users and machines within your organization.</p><p><strong>4. Email subject: </strong>The email subject is a critical element of an email message, and attackers often use various tactics, including motivational phrases and attention-grabbing subject lines, to encourage victims to interact with the email content. These tactics are part of social engineering techniques designed to manipulate recipients into taking actions that may be harmful or malicious.<br> <br><strong>5. Attached filename:</strong> When an email sender attaches files to an email sent to the recipient, information about the attachment filenames can often be found in the email logs. Some of the most know file names are: “Invoice.pdf , BillingStatement.doc, Shippinglabel.pdf, AccountStatement.pdf, TaxFiling.doc etc.”</p><p><strong>6. Malware category: </strong>When the category “malware” or “malicious attachment” shows up in email logs, it indicates that the email security system or email gateway has detected a file attachment within an email that is considered to be malicious or potentially harmful. This categorization is made based on various security checks and scans performed by the email security solution. This field might provide malware family information such as ZLoader, a Trojan Word document etc.</p><p><strong>7. Attached URL:</strong> When an email security system or email gateway displays an “Attached URL” section in email logs or reports, it typically means that the system has detected and recorded one or more URLs (web links) that are included in the body of the email. This section is used to provide information about the URLs found within the email.</p><p><strong>8. Device action:</strong> The “Device Action” field in email security logs or reports typically indicates the action taken by an email security appliance or system regarding a specific email message. This field provides information about what the email security system did when it encountered the email in question.<br> <br><strong>9. Block reason:</strong> The “Block reason” field in email logs or reports provides information about why an email was blocked or prevented from being delivered by the email gateway or email security system. It specifies the reason or criteria that led to the blocking of the email. This field is essential for understanding the specific security concerns or policy violations that resulted in the email being blocked.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55aeb5d10da0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explain the threat landscape (Exercise)]]></title>
            <link>https://medium.com/@ofsanlialp/explain-the-threat-landscape-exercise-d37a7a99370e?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/d37a7a99370e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cyber-security-courses]]></category>
            <category><![CDATA[cyber-security-training]]></category>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Tue, 26 Sep 2023 17:53:36 GMT</pubDate>
            <atom:updated>2023-09-26T18:08:19.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*SF0E1N-8XXW46vNA2Tu9gA.jpeg" /><figcaption><a href="https://www.framegroup.com.au/wp-content/uploads/2022/08/types-of-cyber-attacks.jpg">https://www.framegroup.com.au/wp-content/uploads/2022/08/types-of-cyber-attacks.jpg</a></figcaption></figure><p>Threat landscape is comprised of three components:</p><ol><li>The areas that are vulnerable to attack.</li><li>The people that are liable to make an attack.</li><li>The types of attacks used.</li></ol><p>In this exercise, we will create a report for Sam’s Scoops discussing the threat landscape.</p><p>As we create this document, bear in mind that our audience has a limited knowledge of online dangers, so keep it simple and explain all unfamiliar terms. We can also support our explanations with images and diagrams as needed.</p><p>The topics we will cover include:</p><ul><li>Identify three online threats and explain how each threat is caused.</li><li>Highlight the potential dangers associated with each threat that we have identified.</li><li>Prescribe some preventative methods that we can employ for Sam’s Scoops.</li></ul><h3><strong>Case Study</strong></h3><p>The staff at Sam’s Scoops are excellent ice cream makers and make a product that is much loved in their seaside community; however, they know little about good online practices. Our task is to gather information on the do’s and don’ts of online actions and then share our findings with the team. To be more specific, we’ll identify <strong>three vulnerabilities</strong>, and for each one, we’ll describe the <strong>risk</strong> it brings, the <strong>type of attack</strong> that a cybercriminal might use to exploit it, and a <strong>mitigation </strong>technique that can be used to reduce risk and improve safety.</p><h3><strong>Instructions</strong></h3><h3><strong>Step 1: Identify plausible online threats</strong></h3><p>Identify three potential threats that present a risk to a budding ice cream business looking to establish an online presence. Consider the types of online activities that small businesses tend to engage in.</p><h3><strong>Step 2: Identify the risks posed by each threat</strong></h3><p>Once we have figured out the threats, explain how each one can put the company at risk of an attack.</p><h3><strong>Step 3: Identify attacks used to exploit each threat, and their effects</strong></h3><p>By which means might an attacker exploit each vulnerability, and how would the company be affected if an attack is carried out?</p><h3><strong>Step 4: Identify preventative measures relative to each threat that one can take to better protect the business</strong></h3><p>Make Sam’s team aware of what steps they can take to reduce vulnerabilities and better safeguard themselves against risks.</p><h3><strong>Step 5: Present your findings</strong></h3><p>Write a summary of what we have found and consult the example below to understand how to format our report. Remember that we are presenting to an audience with limited knowledge of online dangers, so keep it simple and explain all unfamiliar terms. We can also support our explanations with images and diagrams as needed.</p><h3><strong>Threat #1:</strong></h3><p><strong>Vulnerability</strong>: Account password shared with an acquaintance**</p><p>Making a password known to even one person significantly raises the risk of that password ending up in the hands of someone with malicious intent.</p><p><strong>Risk</strong>: Unintended access</p><p>The password may be used to gain access to an account by someone who isn’t meant to have it.</p><p><strong>Attack</strong>: Theft of sensitive data</p><p>Once unauthorized access has been gained, an individual may acquire sensitive information such as personal and financial details.</p><p><strong>Mitigation</strong>: Change the password, don’t share!</p><p>If a password has been shared, the account password should be changed immediately to render the shared one useless. And make sure no one knows the new password!</p><h3><strong>My Report</strong></h3><p>Let’s go through the steps and identify vulnerabilities, risks, potential attacks, and mitigation techniques for Sam’s Scoops:</p><h3><strong>Threat #1</strong>: Weak Password Management</h3><p><strong>Vulnerability</strong>: Using weak or easily guessable passwords for online accounts.</p><p><strong>Risk</strong>: If an attacker successfully guesses or cracks a weak password, they can gain unauthorized access to Sam’s Scoops’ online accounts, potentially compromising sensitive information.</p><p><strong>Attack</strong>: Brute Force Attack — An attacker systematically tries different combinations of passwords until the correct one is found.</p><h3><strong>Mitigation</strong>:</h3><ul><li><strong>Use Strong Passwords</strong>: Encourage the use of complex passwords that include a mix of upper and lower-case letters, numbers, and special characters.</li><li><strong>Implement Multi-Factor Authentication (MFA)</strong>: Enable MFA wherever possible to provide an extra layer of security.</li><li><strong>Regular Password Updates</strong>: Advise staff to update their passwords periodically to reduce the risk of compromise.</li></ul><h3><strong>Threat #2</strong>: Lack of Data Backup</h3><p><strong>Vulnerability</strong>: Failing to regularly back up important business data.</p><p><strong>Risk</strong>: Without backups, Sam’s Scoops is at risk of losing critical data in case of accidental deletion, hardware failure, or cyberattacks.</p><p><strong>Attack</strong>: Ransomware Attack — Cybercriminals may encrypt the business’s data and demand a ransom for decryption.</p><h3><strong>Mitigation</strong>:</h3><ul><li><strong>Regular Backups</strong>: Implement automated, regular backups of all important data, both locally and offsite.</li><li><strong>Test Restoration</strong>: Periodically test the data restoration process to ensure backups are functioning correctly.</li><li><strong>Educate Staff</strong>: Train employees on recognizing phishing attempts that could lead to ransomware attacks.</li></ul><h3><strong>Threat #3:</strong> Lack of Employee Training</h3><p><strong>Vulnerability</strong>: Employees with limited knowledge of online dangers and cybersecurity best practices.</p><p><strong>Risk</strong>: Uninformed employees are more likely to fall victim to phishing attacks, inadvertently download malware, or share sensitive information with unauthorized parties.</p><p><strong>Attack</strong>: Phishing Attack — Cybercriminals send deceptive emails to trick employees into revealing sensitive information.</p><h3><strong>Mitigation</strong>:</h3><ul><li><strong>Cybersecurity Training</strong>: Conduct regular training sessions for employees to raise awareness about online threats and how to identify them.</li><li><strong>Simulated Phishing Exercises</strong>: Run simulated phishing campaigns to test and educate employees on recognizing phishing attempts.</li><li><strong>Create a Reporting Culture</strong>: Encourage employees to report any suspicious activities or emails immediately.</li></ul><h3>Conclusion</h3><p>In this report, we’ve identified three online threats that Sam’s Scoops should be aware of and provided recommendations to mitigate these risks. It’s essential for the business to address weak password management, implement data backup strategies, and prioritize employee training to enhance its online security posture. By taking these preventive measures, Sam’s Scoops can significantly reduce its vulnerability to online threats and better safeguard its online presence and customer data.</p><p>Remember, educating employees and regularly updating security practices are essential steps toward a safer online environment.</p><p>Note: You can find more details about this case study on Microsoft Cybersecurity Analyst Professional Certificate training on Coursera.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d37a7a99370e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Manage File Permissions in Linux For Users, Groups, and Others]]></title>
            <link>https://medium.com/@ofsanlialp/how-to-manage-file-permissions-in-linux-for-users-groups-and-others-c5a28dff9655?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5a28dff9655</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Wed, 28 Dec 2022 10:52:03 GMT</pubDate>
            <atom:updated>2023-09-30T08:22:32.078Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_OTWcr2-Nw7lPnQx" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a Linux user, it is important to understand how to manage file permissions in order to secure your system and protect your data. File permissions determine who has access to a particular file or directory, and how they are allowed to interact with it. In Linux, there are three categories of users: the owner of the file, the group the file belongs to, and others. In this article, we will discuss how to manage file permissions for these three categories of users, as well as provide examples of how to set permissions using the chmod command.</p><p>Before we dive into how to manage file permissions, it’s important to understand the basics of how Linux handles file permissions. When a file or directory is created in Linux, it is assigned an owner and a group. The owner is the user who created the file, and the group is a collection of users who have been granted access to the file. In addition to the owner and group, there is a third category called “others,” which refers to any users who are not the owner or part of the group.</p><p>Each file and directory has a set of permissions associated with it, which dictate which actions can be taken by the owner, group, and others. These permissions are represented by a series of characters, known as the “permission string.” The first character indicates the type of file (e.g. “d” for directory, “-” for regular file), and the next three characters represent the permissions for the owner, group, and others, respectively. These characters can be either a “r” (for read), “w” (for write), or “x” (for execute).</p><p>For example, a file with the permission string “<strong>-rw-r — r — </strong>“ would have <strong>read</strong> and <strong>write</strong> permissions for the <strong>owner</strong>, <strong>read</strong> permission for the <strong>group</strong>, and <strong>read</strong> permission for <strong>others</strong>. A directory with the permission string “<strong>drwxr-xr-x</strong>” would have <strong>read</strong>, <strong>write</strong>, and <strong>execute</strong> permissions for the <strong>owner</strong>, <strong>read</strong> and <strong>execute</strong> permissions for the <strong>group</strong>, and <strong>read</strong> and <strong>execute</strong> permissions for <strong>others</strong>.</p><h3>Manage File Permissions</h3><p>Now that we have a basic understanding of how Linux handles file permissions, let’s take a look at how to manage them. The primary tool for managing file permissions is the <strong>chmod</strong> command, which stands for “<strong>change mode</strong>.” This command allows you to change the permissions of a file or directory by specifying the permission string or by using octal notation.</p><p>To set permissions using the permission string, you can use the following syntax:</p><blockquote><strong>chmod [permission string] [file or directory]</strong></blockquote><p>For example, to set read, write, and execute permissions for the owner, read and execute permissions for the group, and read and execute permissions for others on a directory called “<strong>documents</strong>,” you would use the following command:</p><blockquote><strong>chmod 755 documents</strong></blockquote><p>To set permissions using octal notation, you can use the following syntax:</p><blockquote><strong>chmod [octal value] [file or directory]</strong></blockquote><p>For example, to set read, write, and execute permissions for the owner, read and execute permissions for the group, and read and execute permissions for others on a directory called “documents,” you would use the following command:</p><blockquote><strong>chmod 755 documents</strong></blockquote><p>It’s important to note that the octal value is a combination of three digits, each representing the permissions for the owner, group, and others, respectively. The first digit represents the permissions for the owner, the second digit represents the permissions for the group, and the third digit represents the permissions for others. The value of each digit is determined by the sum of the values for the corresponding permissions.</p><p>For example, the value 7 represents read, write, and execute permissions (4+2+1), while the value 4 represents read permission only.</p><p>Here are some examples of octal values and their corresponding permissions:</p><ul><li>755: read, write, and execute for owner; read and execute for group and others</li><li>644: read and write for owner; read only for group and others</li><li>777: read, write, and execute for all users</li><li>600: read and write for owner; no access for group and others</li></ul><p>It’s important to note that when using the chmod command, you can specify the <strong>user</strong> or <strong>group</strong> that the permissions apply to using a “<strong>u</strong>” for <strong>user</strong>, “<strong>g</strong>” for <strong>group</strong>, or “<strong>o</strong>” for <strong>others</strong>.</p><p>For example, to set read and write permissions for the owner and read only permissions for the group and others on a file called “<strong>test.txt</strong>,” you would use the following command:</p><blockquote><strong>chmod u=rw,g=r,o=r test.txt</strong></blockquote><p>In addition to setting permissions, the chmod command also has the ability to <strong>add</strong> or <strong>remove</strong> <strong>permissions</strong> using the “<strong>+</strong>” and “<strong>-</strong>” symbols, respectively.</p><p>For example, to add execute permission for the group on a file called “<strong>test.txt</strong>,” you would use the following command:</p><blockquote><strong>chmod g+x test.txt</strong></blockquote><p>To remove write permission for others on a file called “test.txt,” you would use the following command:</p><blockquote><strong>chmod o-w test.txt</strong></blockquote><p>It’s important to be mindful of the permissions you set on your files and directories, as they can have a significant impact on the security and accessibility of your system. For example, setting read, write, and execute permissions for all users on a directory containing sensitive information could compromise the security of your system. On the other hand, setting too restrictive permissions could make it difficult for users to access and work with important files and directories.</p><p>In conclusion, managing file permissions in Linux is an important aspect of securing and protecting your system and data. By using the <strong>chmod</strong> command, you can specify the permissions for the owner, group, and others on a file or directory, as well as add or remove permissions using the “+” and “-” symbols. It’s important to be mindful of the permissions you set, as they can have a significant impact on the security and accessibility of your system. By understanding and properly managing file permissions, you can ensure that your system and data are secure and accessible to the appropriate users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5a28dff9655" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Malware and Malware Types?]]></title>
            <link>https://medium.com/@ofsanlialp/what-is-malware-and-malware-types-1975c9ee921d?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/1975c9ee921d</guid>
            <category><![CDATA[ransomware]]></category>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware]]></category>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Tue, 27 Dec 2022 16:13:34 GMT</pubDate>
            <atom:updated>2022-12-27T16:13:34.671Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5ot1wBlBoq-ZnkC2" /></figure><p>Malware, short for malicious software, is any software designed to harm or exploit computer systems. Malware can take many forms, including viruses, worms, trojans, ransomware, spyware and adware. It can be spread through email attachments, websites, or infected software and is often used to steal sensitive information, disrupt system operations, or hold data hostage.</p><ol><li>Virus: A virus is a type of malware that infects a computer and replicates itself by attaching to a host program or file. It is typically spread through email attachments, websites, or infected software and can cause damage to the infected system or steal sensitive information.</li><li>Worm: A worm is a type of malware that can replicate itself and spread from one computer to another without the need for a host program or file. It is typically spread through networks or through email attachments and can cause damage to the infected system or steal sensitive information.</li><li>Trojan: A trojan is a type of malware that disguises itself as a legitimate program or file in order to gain access to a computer. Once it is installed, it can perform a variety of malicious actions, such as stealing sensitive information or allowing an attacker to gain remote access to the infected system.</li><li>Ransomware: Ransomware is a type of malware that encrypts the victim’s files and demands a ransom to decrypt them. It is typically spread through email attachments or websites and can cause significant disruption to the infected system.</li><li>Spyware: Spyware is a type of malware that is used to gather information about a person or organization without their knowledge. It can be installed on a computer through infected software or websites and can be used to track a person’s online activities, steal sensitive information, or display unwanted advertisements.</li><li>Adware: Adware is a type of malware that displays unwanted advertisements on a computer. It is often bundled with other software and can be difficult to remove.</li></ol><p>Some top malwares that affected many companies:</p><ol><li>WannaCry: WannaCry is a ransomware that was first discovered in May 2017. It targets Windows operating systems and encrypts the victim’s files, demanding a ransom to decrypt them. WannaCry was particularly devastating because it was able to spread quickly through a vulnerability in older versions of Windows. It affected more than 200,000 computers in 150 countries, causing billions of dollars in damages.</li><li>NotPetya: NotPetya is another ransomware that was discovered in June 2017. Like WannaCry, it targets Windows systems and encrypts the victim’s files. However, it also destroys the Master Boot Record (MBR) of the victim’s computer, making it difficult to recover the system even if the ransom is paid. NotPetya caused major disruptions at companies such as Maersk, Merck, and FedEx, resulting in hundreds of millions of dollars in losses.</li><li>Emotet: Emotet is a type of malware that is typically spread through phishing emails. It was first discovered in 2014, but has continued to evolve and pose a threat to businesses. Emotet is known for its ability to evade detection and spread quickly within an organization. It has been used to deliver other forms of malware, such as ransomware and banking trojans. Emotet has affected a wide range of industries, including healthcare, finance, and government.</li><li>Sunburst: Sunburst, also known as Solorigate or HatMan, is a sophisticated piece of malware that was discovered in December 2020. It targets Windows systems and was used to infiltrate a number of government agencies and private companies. Sunburst is believed to have been developed by a state-sponsored hacking group and was spread through software updates from a supply chain management company.</li><li>REvil: REvil is a type of ransomware that was discovered in April 2020. It is known for targeting high-profile victims and demanding large ransoms. REvil has affected a number of companies, including Travelex, the world’s largest foreign exchange company, and Grubman Shire Meiselas &amp; Sacks, a law firm representing celebrities.</li><li>TrickBot: TrickBot is a banking trojan that was first discovered in 2016, but has continued to evolve and pose a threat. It is typically spread through phishing emails and is used to steal login credentials and financial information. TrickBot has affected a number of banks and financial institutions, as well as individuals.</li></ol><p>Malware can have serious consequences for businesses, including financial losses, damage to reputation, and legal liabilities. It is important for companies to implement strong cybersecurity measures and educate their employees about the risks of malware.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1975c9ee921d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TOP 3 Phishing Attacks]]></title>
            <link>https://medium.com/@ofsanlialp/top-3-phishing-attacks-8cf0bb8e290d?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cf0bb8e290d</guid>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[phishing-attacks]]></category>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Tue, 27 Dec 2022 15:50:15 GMT</pubDate>
            <atom:updated>2022-12-27T15:50:15.404Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*YMIt1lXigDabaU2d9aXKGQ.jpeg" /></figure><p>Phishing attacks are a type of cybercrime in which attackers use fake emails, text messages, or websites to trick people into giving them sensitive information such as login credentials, financial information, or personal data. These attacks are often targeted at individuals or small businesses, and they can be difficult to detect because they are designed to look legitimate.</p><ol><li>Spear phishing: Spear phishing is a targeted attack that is specifically aimed at a particular individual or group of individuals. These attacks often use personalized information about the victim in order to make the attack more convincing. For example, an attacker might send an email pretending to be from a trusted friend or colleague, and include information about the victim in the email in order to make it more believable. According to the Verizon Data Breach Investigations Report, spear phishing was the most common type of phishing attack in 2020, accounting for over 70% of all phishing attacks.</li><li>Whaling: Whaling is a targeted attack that is specifically aimed at high-level executives or other important individuals within a company. These attacks are often more sophisticated than other types of phishing attacks, and they may use fake websites or phone calls in addition to emails in order to trick victims into giving up sensitive information. According to the 2020 Cyber Security Breaches Survey, whaling attacks accounted for 11% of all cyber security breaches in the UK.</li><li>Vishing: Vishing, or voice phishing, is a type of phishing attack that uses phone calls rather than emails or text messages to trick victims into giving up sensitive information. These attacks often use fake caller ID information in order to appear legitimate, and they may use social engineering tactics such as building trust or creating a sense of urgency in order to convince victims to provide personal information. According to the 2020 Cyber Security Breaches Survey, vishing attacks accounted for 4% of all cyber security breaches in the UK.</li></ol><p>To protect against phishing attacks, it is important to use spam filters, be cautious when providing sensitive information, use strong passwords and two-factor authentication, and educate employees about online security. It is also a good idea to be cautious when clicking on links in emails or text messages, and to verify the authenticity of websites before entering any personal information on them. By following these prevention methods, individuals and organizations can significantly reduce the risk of falling victim to a phishing attack.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cf0bb8e290d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Phishing Attacks? How to Prevent Phishing]]></title>
            <link>https://medium.com/@ofsanlialp/what-is-phishing-attacks-how-to-prevent-phishing-1133c049e43f?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/1133c049e43f</guid>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[socialengineeringattack]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cybercrime]]></category>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Tue, 27 Dec 2022 15:41:08 GMT</pubDate>
            <atom:updated>2022-12-27T15:41:08.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PpTKwn6DUhB-aGPTCTTrOg.jpeg" /></figure><p>Phishing attacks are a type of cyber-crime in which attackers send fake emails or text messages, or create fake websites, in an attempt to trick people into giving them sensitive information such as login credentials, financial information, or personal data. These attacks are often targeted at individuals or small businesses, and they can be difficult to detect because they are designed to look legitimate.</p><p>One common type of phishing attack is called spear phishing, which is a targeted attack that is specifically aimed at a particular individual or group of individuals. These attacks often use personalized information about the victim in order to make the attack more convincing. For example, an attacker might send an email pretending to be from a trusted friend or colleague, and include information about the victim in the email in order to make it more believable.</p><p>Another type of phishing attack is called whaling, which is a targeted attack that is specifically aimed at high-level executives or other important individuals within a company. These attacks are often more sophisticated than other types of phishing attacks, and they may use fake websites or phone calls in addition to emails in order to trick victims into giving up sensitive information.</p><p>There are several ways that individuals and organizations can detect and prevent phishing attacks. One effective method is to use spam filters, which can help to identify and block suspicious emails before they reach a person’s inbox. It is also important to be aware of the types of information that attackers are likely to ask for, and to be cautious when providing this information online or over the phone.</p><p>Another important prevention method is to use strong and unique passwords for all accounts, and to use two-factor authentication whenever possible. This adds an extra layer of security to accounts by requiring users to enter a code that is sent to their phone or email in order to access their accounts.</p><p>It is also a good idea to be cautious when clicking on links in emails or text messages, as attackers often use these links to redirect victims to fake websites where they can be tricked into entering sensitive information. It is important to verify the authenticity of websites before entering any personal information on them.</p><p>One way to do this is to look for the padlock icon in the address bar of a website, which indicates that the site is secure. It is also a good idea to check the website’s URL to make sure that it is legitimate and not a spoofed version of a real website.</p><p>In addition to these prevention methods, it is also important to educate employees and users about the risks of phishing attacks and how to protect themselves. This can include training programs or regular reminders about best practices for online security.</p><p>Overall, phishing attacks are a serious threat to individuals and organizations, and it is important to take steps to protect against them. By using spam filters, being cautious when providing sensitive information, using strong passwords and two-factor authentication, and educating employees about online security, it is possible to reduce the risk of falling victim to a phishing attack.</p><p>There are several other prevention methods that individuals and organizations can use to protect against phishing attacks:</p><ol><li>Use security software: Security software, such as antivirus and firewall programs, can help to protect against phishing attacks by identifying and blocking suspicious websites and emails.</li><li>Keep software and systems up to date: Keeping software and systems up to date with the latest patches and security updates can help to protect against vulnerabilities that attackers may try to exploit.</li><li>Use a virtual private network (VPN): A VPN can help to encrypt internet traffic and protect against attacks by hiding a user’s IP address and location.</li><li>Be cautious with public Wi-Fi: Public Wi-Fi networks can be vulnerable to attacks, so it is important to use caution when accessing sensitive information on these networks.</li><li>Use encryption: Encrypting data can help to protect it from being accessed by unauthorized parties.</li><li>Enable two-factor authentication: As mentioned earlier, two-factor authentication adds an extra layer of security to accounts by requiring users to enter a code that is sent to their phone or email in order to access their accounts.</li><li>Use a password manager: A password manager can help to create and store strong, unique passwords for all accounts, which can help to protect against attacks.</li><li>Be aware of social engineering tactics: Attackers may use social engineering tactics, such as building trust or creating a sense of urgency, to trick individuals into giving up sensitive information. It is important to be aware of these tactics and to be cautious when providing personal information.</li><li>Use caution with unfamiliar emails and websites: Be cautious when clicking on links in emails or text messages from unfamiliar senders, and verify the authenticity of unfamiliar websites before entering any personal information on them.</li></ol><p>By following these prevention methods, individuals and organizations can significantly reduce the risk of falling victim to a phishing attack. It is also important to regularly review and update these practices to stay current with the latest threats and techniques used by attackers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1133c049e43f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How can you access your dynamic home IP with a domain name?]]></title>
            <link>https://medium.com/@ofsanlialp/how-can-you-access-your-dynamic-home-ip-with-a-domain-name-2ec7677a4642?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ec7677a4642</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Sun, 27 Feb 2022 13:30:19 GMT</pubDate>
            <atom:updated>2022-02-28T15:42:03.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*Q4050g-RTkndotNtbm0uUw.png" /></figure><p>Let’s say that, you have a home server or PC that has a VM, which is running your cyber security lab environment, and you want to access it when you go to a coffee shop or during travel time. However, when you typed your public IP on SSH connection, you received a “Connection Refused” message. Maybe you were using Remote Desktop Applications. But somehow you were not able to access your computer. If your firewall rules port forwarding were correctly defined and your device was up and running, then most probably, your public IP address is wrong.</p><p>Generally, Internet Service Providers(ISP) generate a dynamic IP for home users. If you need a static IP, you might need to pay an additional fee for that service. Because of that, you should record your public IP into your domain name whenever it changes. There are some free limited services, but you might not want to feel safe. In this article, I will explain to you how you can record your public IP into your DNS records.</p><p>In this example, I used an Ubuntu server. But you can follow the same steps for Kali Linux or similar Linux-based systems. Also, you should have a domain name that you wish to use, and also you should have a Cloudflare account.</p><h4><strong>What is Cloudflare?</strong></h4><p>In July 2009, a massive DDoS attack occurred against the government, news media, and financial websites in South Korea and the United States. Those attacks highlighted how fragile the Internet was. And how people were dependent on access to the web as part of their daily lives. So, this caused the birth of Cloudflare, which provides security for big and small enterprises. This platform provides the Layer 3 and Layer 7 network services. Also, it secures and accelerates your apps, APIs, and websites in minutes by pointing your DNS to Cloudflare. Instantly you can turn on performance and security services, including CDN, WAF, DDOS protection, bot management, API security, web analytics, image optimization, stream delivery, load balancing, SSL, and DNS.</p><p>This service also has paid services. But for our basic needs, we will use the free Cloudflare DNS record system function only.</p><h4><strong>Setup Cloudflare DNS recorder</strong></h4><p>I created a Cloudflare DNS recorder as open-source. So you can change or modify freely. If you have any advice to make this project more stable, please do not hesitate to contact me.</p><p>First of all, you should make your system ready. As a first step, you should make sure you have updated and upgraded your apt. To do that</p><h4><strong>1- Get Updated “apt-get” for your system</strong></h4><blockquote>$ sudo apt-get update<br>$ sudo apt-get upgrade</blockquote><ul><li>apt-get update updates the list of available packages and their versions, but it does not install or upgrade any packages.</li><li>apt-get upgrade actually installs newer versions of the packages you have. After updating the lists, the package manager knows about available updates for the software you have installed. This is why you first want to update.</li></ul><h4><strong>2- Setup Python3</strong></h4><p>Then we need to have python3 to run the script that helps us check our IP and record it to Cloudflare DNS records via Cloudflare API. To do that;</p><blockquote>$ sudo apt-get install python3<br>$ sudo python3 --version</blockquote><h4><strong>3- Setup Python Pip</strong></h4><p>Now you should have python3. It is time to get python-pip, which is a package manager that provides necessary python dependencies. Those dependencies help us to make API requests and read YAML configuration files.</p><blockquote>$ curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py<br>$ sudo python3 get-pip.py<br>$ pip3 --version</blockquote><h4><strong>4- Setup Python Libraries</strong></h4><p>We will use python requests and PyYAML libraries.</p><blockquote>$ pip3 install requests<br>$ pip3 install PyYAML</blockquote><h4><strong>5- Text Editor</strong></h4><p>As I mentioned above, we have a YAML file for configurations, and those need to be updated for your Cloudflare API access. To do that, you need a text editor. You can use any text editor, but I like to use nano. So, you can set it up with the following commands:</p><blockquote>$ sudo apt-get install nano<br>$ sudo nano --version</blockquote><h4><strong>6- Create a folder to download our Cloudflare DNS Recorder from Github</strong></h4><p>You should follow the steps below then you can access all the script files.</p><blockquote>$ mkdir myscript<br>$ cd myscript<br>$ git clone <a href="https://github.com/ofsanlialp/CloudflareDNSrecorder.git">https://github.com/ofsanlialp/CloudflareDNSrecorder.git</a><br>$ cd CloudflareDNSrecorder</blockquote><p>When you go <strong><em>CloudflareDNSrecorder</em></strong> folder under <strong><em>myscript</em></strong> folder, you will find 2 files which are <strong>config.yaml</strong> and <strong>dnsRecorder.py</strong>. “config.yaml” file, as you can guess, stores Cloudflare API configurations and <strong>dnsRecorder.py </strong>checks your public IP and whenever it detects a new IP, it sends a POST request to Cloudflare and let you update your DNS record.</p><h4><strong>7- Edit Configuration File</strong></h4><p>When you download the repository, you should edit config.yaml the file to access your Cloudflare account. To do that please follow the steps:</p><blockquote>$ nano config.yaml</blockquote><h4>Update config.yaml</h4><p>==&gt; Please fill the following data, which is mentioned in Uppercase, with your data!!!</p><p>==&gt; If you want to proxied your DNS, change proxied to True</p><p><strong>If you don’t know your DNS Record ID</strong> for a specific domain leave it like recordID : &quot;&quot; When you run the script, it will show your records and you can get your id from there</p><pre>api: &quot;<strong>API_KEY</strong>&quot;<br>email: &quot;<strong>CLOUDFLARE_EMAIL</strong>&quot;<br>zoneID: &quot;<strong>ZONE_ID</strong>&quot;<br>recordID: &quot;<strong>RECORD_ID</strong>&quot;<br>type: &quot;<strong>RECORD_TYPE</strong>&quot;<br>name: &quot;<strong>RECORD_NAME</strong>&quot;<br>proxied: <strong>False</strong></pre><p>Here is an example:</p><pre>api: &quot;<strong>5ed240111110606aae8e4111110de1c63f188</strong>&quot;<br>email: &quot;<strong>mymail@gmail.com</strong>&quot;<br>zoneID: &quot;<strong>1amgee9b8d23f1ards15g85dcdaf3422c</strong>&quot;<br>recordID: &quot;&quot;<br><br>type: &quot;<strong>A</strong>&quot;<br>name: &quot;<strong>home.mydomain.com</strong>&quot;<br>proxied: <strong>False</strong></pre><p>All data mentioned above can be found on the Cloudflare account. First, you need to create a new website record on Cloudflare, and then you can find your API key, Zone ID on the right side of the website. I guess you already know your e-mail address.</p><p>For the <strong>type</strong> section, you should write <strong>A </strong>which stands for<strong> Address </strong>and this is the most fundamental DNS record type that indicates <strong>the IP address</strong> of a given domain address which is <strong>home.mydomain.com</strong> in this example. For the <strong>name </strong>section you should write your domain name. Leave the <strong>proxied</strong> section as <strong>False. </strong>Then you should save this file and exit from the file.</p><p>Time to execute your <strong>dnsRecorder.py</strong></p><h4><strong>8- RUN Script</strong></h4><p>Run <strong>$ python3 dnsRecorder.py</strong> The result will be like this:</p><pre>{<br>  &quot;errors&quot;: [],<br>  &quot;messages&quot;: [],<br>  &quot;result&quot;: [<br>      {<br>          &quot;content&quot;: &quot;127.0.0.1&quot;,<br>          &quot;created_on&quot;: &quot;2020-07-29T21:26:46.888563Z&quot;,<br>          <strong>&quot;id&quot;: &quot;yu5ba2e817261d1bba038e32at2vce9d9&quot;</strong>,<br>          &quot;locked&quot;: false,<br>          &quot;meta&quot;: {<br>              &quot;auto_added&quot;: false,<br>              &quot;managed_by_apps&quot;: false,<br>              &quot;managed_by_argo_tunnel&quot;: false,<br>              &quot;source&quot;: &quot;primary&quot;<br>          },<br>          &quot;modified_on&quot;: &quot;2020-07-29T21:26:46.888563Z&quot;,<br>          <strong>&quot;name&quot;: &quot;home.mydomain.com&quot;</strong>,<br>          &quot;proxiable&quot;: true,<br>          &quot;proxied&quot;: false,<br>          &quot;ttl&quot;: 1,<br>          &quot;type&quot;: &quot;A&quot;,<br>          &quot;zone_id&quot;: &quot;1amgee9b8d23f1ards15g85dcdaf3422c&quot;,<br>          &quot;zone_name&quot;: &quot;mydomain.com&quot;<br>      }<br>  ],<br>  &quot;result_info&quot;: {<br>      &quot;count&quot;: 1,<br>      &quot;page&quot;: 1,<br>      &quot;per_page&quot;: 20,<br>      &quot;total_count&quot;: 1,<br>      &quot;total_pages&quot;: 1<br>  },<br>  &quot;success&quot;: true<br>}</pre><p>Please find the DNS record ID you would like to update and enter the value into the script.</p><p>As you see in the above example result id is</p><p><strong>&quot;id&quot;: &quot;yu5ba2e817261d1bba038e32at2vce9d9&quot;</strong> for <strong>&quot;name&quot;: &quot;home.mydomain.com&quot;</strong>, You should record that id into a config file like:</p><pre>api: &quot;5ed240111110606aae8e4111110de1c63f188&quot;<br>email: &quot;mymail@gmail.com&quot;<br>zoneID: &quot;1amgee9b8d23f1ards15g85dcdaf3422c&quot;<br>recordID: &quot;<strong>yu5ba2e817261d1bba038e32at2vce9d9</strong>&quot;<br><br>type: &quot;A&quot;<br>name: &quot;home.mydomain.com&quot;<br>proxied: False</pre><p>When you updated your config file, run the script one more time:</p><blockquote>$ python3 dnsRecorder.py</blockquote><p>Now you should see an output like:</p><pre>Updated DNS record of ===&gt; home.mydomain.com to ===&gt; 72.10.39.12</pre><p>At this point, you can successfully access your public IP with your domain. Please do not forget to use Cloudflare Name Servers for your domain. You can find your name servers and <strong>A</strong> record that has your public IP. You can check the DNS menu on the dashboard.</p><p>You should see <strong>Cloudflare Nameservers, </strong>which has two name servers. Just copy-paste them to your domain name provider’s name server records.</p><p>Okay, until here, we are fine, but what if my public IP changes after router restart or ISP changes. We should automate the above python execution. For that reason, I automated this script.</p><h4>Automate Your Script</h4><p>The purpose of this python script is to update your dynamic IP for public access to your home device/server. So you might want to run this script every <strong>5 min</strong> to update your domain public IP on Cloudflare. To do that, you should set up a <strong>cron job</strong>.</p><p>To do that please type the following command:</p><blockquote>$ crontab -e</blockquote><p>Then add the following command. Please change <strong>USERNAME</strong> depending on your script location. Also, you should make sure you are using <strong>the correct python location</strong> <strong>with the version</strong> to run the script.</p><pre>$ */5 * * * * cd /home/<strong>USERNAME</strong>/myscripts/CloudflareDNSrecorder &amp;&amp; /usr/bin/python3 dnsRecorder.py</pre><p>If you are not sure which version is your python, run the following command:</p><blockquote>$ whereis python3</blockquote><p>You will get something like:</p><pre>python3: /usr/bin/python3.8 /usr/bin/python3 /usr/bin/python3.8-config /usr/lib/python3.8 /usr/lib/python3 /etc/python3.8 /etc/python3 /usr/local/lib/python3.8 /usr/include/python3.8 /usr/share/python3 /usr/share/man/man1/python3.1.gz</pre><p>You can use <strong>/usr/bin/python3.8</strong></p><p>Also, you can modify crontab time depending on the below information.</p><pre>* * * * * * cd /home/USERNAME/myscripts/CloudflareDNSrecorder &amp;&amp; /usr/bin/python3 dnsRecorder.py<br>| | | | | |<br>| | | | | +-- Year              (range: 1900-3000)<br>| | | | +---- Day of the Week   (range: 1-7, 1 standing for Monday)<br>| | | +------ Month of the Year (range: 1-12)<br>| | +-------- Day of the Month  (range: 1-31)<br>| +---------- Hour              (range: 0-23)<br>+------------ Minute            (range: 0-59)<br><br>After an asterisk (*) or a range of values, you can use character / to specify that values are repeated over<br>and over with a certain interval between them. For example, you can write &quot;0-23/2&quot; in Hour field to specify<br>that some action should be performed every two hours (it will have the same effect as<br>&quot;0,2,4,6,8,10,12,14,16,18,20,22&quot;); value &quot;*/4&quot; in Minute field means that the action should be performed<br>every 4 minutes, &quot;1-30/3&quot; means the same as &quot;1,4,7,10,13,16,19,22,25,28&quot;.</pre><h4>Automate Your Script to Run After Every Reboot</h4><p>If you want to run your script after each reboot, also you should add the following command into your crontab file:</p><pre>@reboot sleep 2m cd /home/USERNAME/myscripts/CloudflareDNSrecorder &amp;&amp; /usr/bin/python3 dnsRecorder.py</pre><p>Your script should run after your system rebooted and wait 2 minute.</p><h4>To Check Cron Job</h4><p>To check whether your cron job runs or not, you can use the following command to check the system log</p><blockquote><em>$ grep CRON /var/log/syslog</em></blockquote><p><strong>Ouput</strong></p><pre>Jul 30 15:30:01 ubuntuking CRON[28233]: (USERNAME) CMD (cd /home/USERNAME/myscripts/CloudflareDNSrecorder &amp;&amp; /usr/bin/python3 dnsRecorder.py )<br>Jul 30 15:30:03 ubuntuking CRON[28232]: (CRON) info (No MTA installed, discarding output)<br>Jul 30 15:40:01 ubuntuking CRON[28251]: (USERNAME) CMD (cd /home/USERNAME/myscripts/CloudflareDNSrecorder &amp;&amp; /usr/bin/python3 dnsRecorder.py )<br>Jul 30 15:40:01 ubuntuking CRON[28250]: (CRON) info (No MTA installed, discarding output)</pre><h4>My Cron Settings</h4><pre>*/10 * * * * cd /home/USERNAME/myscripts/CloudflareDNSrecorder &amp;&amp; /usr/bin/python3 dnsRecorder.py<br>@reboot sleep 1m cd /home/USERNAME/myscripts/CloudflareDNSrecorder &amp;&amp; /usr/bin/python3 dnsRecorder.p</pre><p>Thank you for patiently reading this article until this point. I used this for my cyber security lab. It helps me a lot and helps you too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ec7677a4642" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Switching IPv4 to IPv6 Implementation]]></title>
            <link>https://medium.com/@ofsanlialp/switching-ipv4-to-ipv6-implementation-76d7db2a20d7?source=rss-1a107912fba------2</link>
            <guid isPermaLink="false">https://medium.com/p/76d7db2a20d7</guid>
            <dc:creator><![CDATA[Omer Faruk Sanlialp]]></dc:creator>
            <pubDate>Sun, 02 Jan 2022 19:43:51 GMT</pubDate>
            <atom:updated>2022-01-02T19:43:51.953Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, the internet is one of the most necessary product for communication, education, and health. To provide this service, internet service providers are using IPv4 addresses. However, IPv4 addresses are running out because of high demand. So they started to provide IPv6 addressing to solve this issue. Governments, enterprises, and application developers started to switch to IPv6 because of its high address range and better security structure. When changing a network from IPv4 to IPv6, it should not affect the current system and compatibility between these two addressing models should be perfect because of available IPv4 networks. Dual stack, tunneling, and translation transition mechanisms are the most preferred IPv4 to IPv6 transition mechanisms. Dual-Stack runs both IPv4 and IPv6 stack in a single node. This mechanism is a great solution if an enterprise requires to run IPv6-based applications or IPv4-based applications at the same time. The system can choose one of the addressing methods and uses that to complete the task. When IPv4 support does not necessary, the system keeps working with IPv6 and it will not affect the network. In this project, CISCO Packet Tracer and Graphic Network Simulator 3 is used to implement a dual-stack transition mechanism on a school district network. Also, article provides essential information about IPv4 to IPv6 transition mechanisms with their comparison.</p><p><strong>I. INTRODUCTION</strong></p><p>Since the invention of internet in 1960s with the creation of ARPANET [1], it has been exponentially growing. It has completely changed the way communication. After the connecting twenty computers in ARPANET, Robert Khan who helped develop the TCP/IP protocols for connecting diverse computer networks, ARPANET started to use TCP/IP on January 1, 1983 [2]. It had an important role in the spread of the internet and in the development of communication. Due to this invention, the more users join the internet. Today we are still using IPv4 for internet communication, which was developed in the 1970s [3]. However, IPv4 has some limitations including limited IP address and security issues. So, the Internet Engineering Task Force decided to solve these issues, and they invented IPv6 in 1990s. Then, standardization of IPv6 successfully achieved at the end of 1998 [4]. After that, scientists assumed that IPv4 would run out by 2011, especially densely populated countries like China and India. Internet service providers, large companies and enterprises would be affected as the first group of internet users. The reason is that they have many nodes, such as a computer, IoT, router or printer, and every node of the network requires an IP address.</p><p>This study is conducted to demonstrate the best transition method from IPv4 to IPv6 for a mid-size enterprise. Our target enterprise is a school district which has one central office and three campuses. There appears to be many papers and documents, or reports about the transition of IPv4 to IPv6 but there seem to be a few documents that applying the transition for the midsize enterprise which has different geographic branches. Therefore, we would like to share our suggestion to implement IPv6 into the midsize enterprise network without affecting current network operation. However, this study does not focus only on the technical points but also analyzes the process of IPv6 and transition problems. Also, how problems can be minimized.</p><p>In Chapter 1, we would like to express the general information about internet protocol, IPv4 and IPv6. After summarizing the most relevant previous findings in this area, we talk about our research problem and why it is important to study.</p><p>In Chapter 2, we would like to talk about related literature and some of the current transition methods. This chapter also includes the evaluation of transition methods which turns into the foundation for choosing the proper and correct IPv4 to IPv6 transition implementation.</p><p>Chapter 3 would contain the methodology and implementation of our study. Then current transition methods and an example about each transition method with their configuration included in this section. Also, we talk about challenges of these methods. After, we presented our simulation model for IPv4 to IPv6 transition. This section also includes, address planning for network and implementation performance.</p><p>Chapter 4 would perform our research results. It mentions issues about simulation and transition method. Finally, the conclusion in Chapter 5 would contain an overview of our study, limitations, as well as the result analysis from the implementation.</p><p><strong>II. RELATED LITERATURE AND THEORETICAL FOCUS</strong></p><p><strong><em>A. Internet Protocol</em></strong></p><p>Before starting the details of computer networking, you should first understand the fundamentals of the network. In computing, a network is a group of computing device that can communicate with each other. When your computer connected to a network, we are calling that online that represent the status of your device. If you disconnect it, its status turns into offline. We are calling that computer a network node which is each connection point that sends, receives, creates or stores the data within the distributed network. To be in a position to share these data, your network system and devices should have special hardware and applications to operate that network such as network interface card, network cables, network switch, and routers. Furthermore, you should have at least one server device and one client device for a small computer network. Server mainly heart of the computer network system because it shares resources such as printers, scanners, data storage, and internet. The server should have a network service software and operating system to manage the network. On the other hand, a client computer does not a server. It only allows the end user to access shared resources on the network with the help of server.</p><p>In addition, if you want to join a computer into the network, it requires a Network Interface Card, NIC, which allows physical connection with a cable between computer and server. Generally, this card is attached inside the computer but some of the new laptop models have external NICs that allow computer to communicate over the USB ports to save space and increase performance. As we mentioned earlier, NIC needs a cable. This cable also helps us to connect that computer into a network switch. Especially, when you have many network nodes, the switch provides many ports to connect all these nodes and manage their communication via routers and servers. Nowadays, computers do not require a physical communication with cable, they can also have wireless adapters that allow nodes to communicate with the network without cable.</p><p>Another important point for the network is each node must have a unique address. We are calling this special address is Internet Protocol (IP). Today mainly we have two versions of IP which are IPv4 (Internet Protocol version 4) and IPv6 (Internet Protocol version 6). We will discuss more details about these IP versions in this chapter later but first, we should explain OSI and TCP/IP networking models.</p><ol><li><strong><em>OSI model:</em></strong><em> </em>Today, the world using one networking model. But vendors were using their own network models until the late 1970s. Challenging part is that these computers were not supporting different vendors. To give an example, IBM published System Network Architecture (SNA) networking model in 1974 [5], and Digital Equipment Corporation created their DECnet solution in 1975 [6]. Then, the International Organization for Standardization (ISO) created OSI (Open Systems Interconnection) reference model to eliminate this problem. This model was the primary architectural model that describes how a data and network information are communicated from a computer through to another computer. However, it could not succeed like TCP/IP networking in the marketplace. OSI model has two main groups. First group that has three layers on top, defines how the applications will communicate with each other and users with in the network. Other four bottom layer defines how data is transferred from host to another host. So, totally it has seven different layers.</li><li><strong><em>TCP/IP: </em></strong>TCP/IP is today’s the most popular network model to create a standardized network. You can find this networking model almost on all computer operating systems. It is not same with OSI network model. Transmission Control Protocol (TCP) checks the packets and determines to maintain a network conversation. It works with Internet Protocol (IP) that defines how data packets are exchanged over network. TCP/IP has four main layers which are network interface layer, internetwork layer, transport layer, and application layer.</li><li><strong><em>Comparison of OSI and TCP/IP networking model:</em></strong><em> </em>To make it clear, we listed in Table 1 to comparison of OSI and TCP/IP networking models [7].</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eun9p713oBAZc-p5phcpXA.png" /></figure><p><strong><em>B. Introduction to IPv4</em></strong></p><p>Today our networks use IP. It helps to deliver data packets between network devices. As we mentioned before, it is part of the TCP/IP networking model. If you have a network, your devices have to have an address to deliver and receive the data. It is kind of your ZIP code address that represents your physical address and without that ZIP code, USPS cannot deliver your letters. Same way IP represents your device network address. The most common IP version is IPv4 which is 32bit. It has a header that contains some information to help router to identify and route it to the correct location.</p><p><strong><em>1) IP Addressing and classification:</em></strong><em> </em>An IP address is a software address and each node (host) address has to be unique on the network for each device because it helps you to identify the host on designed the network. An IP address is consists of 32 bits which are divided into four 8 bits sections. These each octet is converted to decimal value and separated with a dot. 192.168.10.12 network address is an example of an IP address. We are using decimal base numbers for IP addresses because it is easy to remember rather than binary. Furthermore, creators of the Internet created classes of networks based on network capacity. IPv4 categorized with five different classes which are A, B, C, D, and E. Depends on first octet of an IP address helps you to determine these classes [8].</p><p>Class A first octet range is 1 to 126 so its valid networks are between 1.0.0.0 to 126.0.0.0 address. This means, it has 126 networks and for each network, it can connect 16,777,214 hosts. So, Class A is a proper solution for large organizations. On the other hand, Class C may provide a big amount of networks which is 2,097,152 but each network has 245 host capacities which can be a good solution for small organizations. Its IP range is between 192.0.1.0 to 223.255.254.0 address. If your organization’s size is medium, Class B can be a good option for you because it provides 16,384 networks and each network can hold 65,543 hosts. Its IP range starts on 128.1.0.0 and ends at 191.254.0.0 address. Class A to C are used for commercial purpose but Class D is used for multi-casting. In addition, Class E is used for experimental basis. The IP range of Class D network starts at 224.0.0.0 and ends at 239.255.255.255 address. Furthermore, Class E can get between 240.0.0.0 to 255.255.255.255 IP addresses</p><p><strong><em>2) Subnetting:</em></strong><em> </em>The subnetting is another proper way to classify or divide your network to sub-networks. Subnet will help local network admins to manage these networks easily. Outside of the network views all of the networks with a single IP address that prevent network admin to hide internal network structure. This method reduces the complexity. Furthermore, when we use subnets, a single domain does not need to carry all of the network traffic and this affects the performance of the network.</p><p>Another important term is the subnet mask. It defines the available IP addresses within the network and also helps you to limit IP addresses for a specific network. 255.0.0.0 is the default subnet mask for Class A networks. For Class B network we are using 255.255.0.0 and 255.255.255.0 for Class C. However, if you use 255.255.255.128 subnet mask for Class C network, it allows you to use only 128 hosts but 255.255.0.0 subnet mask for Class C network, allows 65634 hosts to communicate within the network.</p><p><strong><em>C. Introduction to IPv6</em></strong></p><p>As we explain above, IPv4 has 4.3 billion available addresses. Even we do not use all of these addresses it is going to run out. With Classes Inter-Domain Routing (CIDR) and Network Address Translation (NAT), we can extend the range and use efficiently the IPv4 but still, it is not enough. When the researchers realized this problem, they decided to find a new method to extend address range and solve other problems of IPv4 such as security. Then, they come up with Inter Protocol version 6 (IPv6) solution. While IPv4 is 32 bit, IPv6 designed as 128bit.</p><p>IPv6 has different header format rather than IPv4. This new form of the header for internet protocol aims to reduce header overhead and increase to efficiency for processing at the router. However, IPv6 and IPv4 protocols are not comparable to each other.</p><p>Furthermore, unlike IPv4 hierarchical address, IPv6 has 128-bits address, This address known as prefixes and it is unique and organized addressing on a global scale. With that way, every system can get a unique IP address and without NAT or translation components they can communicate with each other. The only limitation is Firewall and organization policies can affect implementation.</p><p>IPv6 supports both stateful and stateless auto-configuration. In stateful address configuration, host receives IPv6 address from DHCPv6 with UDP link. With stateless address configuration, you do not need a server or manual configuration. Also, this method helps you to minimize the configuration of routers. Moreover, because of the simplified header, the router takes a routing decision quickly by looking at the mandatory header.</p><p>Another important feature is built-in security. IPsec is required in IPv6 because it provides more protection for application and network layer which are running on the IPv6 network.</p><p><strong>III. METHODOLOGY AND IMPLEMENTATION</strong></p><p><strong><em>A. Evaluation of Current Transition Methods</em></strong></p><p>One of the biggest challenge for network administrators to find the most convenient IPv4 to IPv6 transition method. The network admin cannot decide to change all the network structure within a couple of seconds because he or she should design and plan how to transfer the current system to IPv6. There are some development techniques that allow network admin suitable and smooth management of the system, but they should decide the best one for their environment. Each of these mechanisms requires different rules. So they should be careful when they are selecting the correct one. Some of the IPv4 to IPv6 transitions mechanisms are dual stack, tunneling mechanism, and address translation techniques. There are more than sixteen transition mechanisms and these three of them are the most popular transition mechanisms. In this section, based on the research papers, academic articles, and official online documents, we will review these three transition mechanisms, configuration methods, and challenges.</p><ol><li><strong><em>Dual stack transition method:</em></strong><em> </em>Dual Stack is available in the same network layer. This transition method includes both IPv4 and IPv6 stacks. It operates both of them at the same time. The most critical role is on the header version field. With that, we can encapsulate IPv6 into IPv4 and DNS manages the transition. In Fig. 1 [9], we presented the dual stack method structure.</li></ol><p><strong><em>a) Challenges:</em></strong><em> </em>Dual Stack transition mechanism provides huge flexibility on IPv4 to IPv6 transition but it also has some issues.</p><p> Every dual-stack device should have an IPv4 address.</p><p> For IPv4 and IPv6, the router should contain two different routing table.</p><p> Sometimes IPv4 and IPv6 require different software for routing. For example, while IPv6 runs OSPFv3, IPv4 uses OSPFv2.</p><p> Because of two separate software and routing table, the system may require additional CPU and memory.</p><p> To activate IPv6 from all network nodes may require reconfiguration on the network.</p><p> If you have a DHCP, which is for IPv4, and a DHCPv6 for IPv6, multi-response is another problem. You should re-configure the DHCPv6 server to manage the dual-stack network.</p><figure><img alt="The dual stack model structure" src="https://cdn-images-1.medium.com/max/1024/1*eN5IfUadSt0XkbJgLgLvKA.png" /></figure><p>Fig. 1. The dual stack model structure</p><p><strong><em>2) Tunnelin transition </em>model: </strong>Tunneling transition mechanism uses existing IPv4 routing system to support IPv6 traffic. In this method, IPv6 packets are encapsulated into IPv4 packets then the datagrams can be routed through the IPv4 network. There are a couple of possible ways to use tunneling.</p><p>The first scenario is the Host-to-Host tunneling. An IPv4 infrastructure tunnels IPv6 packets between IPv6 or IPv4 hosts. Another scenario is Host-to-Router. Hosts which have IPv4 or IPv6 addresses can tunnel IPv6 packets an intermediary router that has IPv6 or IPv4 routing capability that is reachable over an IPv4 infrastructure. Last scenario is Router-to-Router tunneling. Routers, which are IPv6 or IPv4, communicate over the IPv4 network to transmit IPv6 packets.</p><p><strong><em>a) Challenges:</em></strong></p><p> The biggest concern is security. Even though network admin does not provide an internet connection with IPv6, the network may be connected to IPv6 internet over the tunnel.</p><p> Also, IPv4 and IPv6 packets can be spoofed during to tunneling.</p><p> Because of overhead during to tunneling process, it may require high CPU performance.</p><p> Some tunnelings may require gateway state. However, 6to4 does not require a state and this makes accessible to the all tunnel destination directly on a single virtual interface.</p><p> Some tunnel mechanisms do not have NAT support. In this case, one side of tunnel may not communicate with other side if the tunnel’s one end points gets new network address [10].</p><p><strong><em>3) Network address translation transition method:</em></strong><em> </em>Network Address Translation (NAT) is an IPv4 to IPv6 network transition mechanism. The user can access IPv6 networks with NAT or IPv6 users/services can access IPv4 networks. Today, internet service providers also provide IPv6 services with IPv4. Therefore, with the help of NAT, end users, who have only an IPv4 network, can use these IPv6 services. This is the biggest advantage feature of NAT. There are two types of transition mechanism which are Network Address Translation IPv6 to IPv4 (NAT64) and Network Address Translation-Protocol Translation (NAT-PT).</p><p>NAT64 translation mechanism translates IPv6 packets to IPv4 packets and vice-versa. This translation mechanism supports almost all translation scenarios. Therefore, it is the most preferable NAT method. This method has two mechanisms which are stateless or stateful. In stateless translation, NAT does not require a reference from previous packets. However, stateless allows you to get the reference from previous packets [11].</p><p>Even though NAT-PT provides IPv4 to IPv6 translation and vice-versa, generally is preferred to use private IPv4 address to communicate with public IPv4 network and vice- versa. This translation method does not prefer because it does not support Cisco Express Forwarding, supports only DNS, FTP, and ICMP. Also, it is not secure because of the lack of end-to-end network security.</p><p><strong><em>a) Challenges:</em></strong></p><p> It is ddifficult to manage for large networks.</p><p> NAT-PT depended to DNS which is part of Application Layer Gateway (ALG) functionality for IPv6 support.</p><p> It has the same drawbacks with IPv4 traffic NAT.</p><p> The complicity of network addressing increases</p><p><strong><em>4) Conclusion:</em></strong><em> </em>We overviewed some of the most known IPv4 to IPv6 transition mechanisms on the above sections. As it provides us easy implementation, low cost and great flexibility on our current network, we choose to use IPv4 to IPv6 transition method with the dual-stack method for our school district. In the next section you can find the details.</p><p><strong><em>B. IPv4 to IPv6 Implementation</em></strong></p><p>In this section, we start to apply collected information to build an IPv4 based a school network simulation and then apply the preferred IPv4 to IPv6 transition method on this simulation. For the simulation process, we use Cisco Packet Tracer (CPT) and Graphic Network Simulator-3 (GNS3). Both systems provide drag and drop network design opportunity. Even though CPT developed by Cisco Systems, it does not have some features. On the other hand, GNS3 allows us to combine virtual and real devices which make it more helpful to create a more realistic network design. CPT does not require any IOS setup or network component library.</p><p>However, GNS3 require to set up IOS library for the selected routers and may require the virtual machine for computer simulation. For the transition mechanism from IPv4 to IPv6, we preferred to use the Dual-Stack method.</p><p><strong><em>1) School network design:</em></strong><em> </em>Our model has five main areas which are district office, three other campuses, and one internet network. We chose the district office as the main network model because the other three campuses have the same network structures. At district office (Fig. 2), we divide the network into the three main groups.</p><p>The first group contains the most important servers for the school which are database, web and mail servers. These servers contain personal information about staff and students. Because of this high-level confidentiality, only authorized staff should access these servers. So, the network admin is responsible to apply all up to date safety technology, patches, and security credentials to protect this VLAN.</p><p>In the second group, the network has service servers which are TFTP,DHCP and DNS servers. These servers provide necessary services for client machines.The last group is the client zone. In this zone, we have desktop computers, laptops, mobile phones, and printers that are connected to the district office network.</p><figure><img alt="District office network structure" src="https://cdn-images-1.medium.com/max/1024/1*7w9fl-gqrRoBwYpWc-1Ohw.png" /></figure><p>Fig. 2. District office network structure</p><p><strong><em>2) Address planning:</em></strong><em> </em>As we mentioned before, we have one district office, three campuses and one ISP router in our simulation. When we are planning the network, we only provide network address for district office devices, ISP router, and each campus router. District office plan is our base plan so you can apply the same process for other networks.</p><p>Mainly there are two kinds of address type. First one is static network address which manually configured for the device. This address does not change automatically and generally preferred to use for servers, printers, and routers. If access to a network node important, you may want to use a static address to find that device easily on the network. On the other hand, the dynamic network address, which is the second network address type, does not set manually. This addressing type generally preferred when you connect new client devices to network and addressing does not matter. In our network, staff personal devices such as desktop computers and laptops use dynamic network addresses.</p><p><strong><em>3) Implementation performance:</em></strong></p><p><strong><em>a) Dynamic Host Configuration Protocol (DHCP): </em></strong>As we mentioned earlier, DHCP is used to provide automatic IP addresses for client devices such as desktops, laptops, and mobile devices for staff. It provides unique IP addresses for each device. There is two different DHCP in our network model. First one is DHCP4, which is for IPv4, and another one is DHCPv6 for IPV6 distribution. We provide one DHCP server for IPv4 devices which are district client group devices, from service server group. For the IPv6, we use district router as DHCPv6 to provide IPv6 addresses for client devices.</p><p><strong><em>b) Open Shortest Path First (OSPF):</em></strong><em> </em>A school network has different VLAN networks. So the router should provide communication between clients and other VLANs which provide service, security and management. To do that, we prefer to use the OSPF routing protocol. OSPF routing is designed to be able to operate large scale networks. According to our network model, we configured the OSPFv2 routing protocol for IPv4 and OSPFv3 routing protocol for IPv6.</p><p><strong><em>c) Border Gateway Protocol (BGP): </em></strong>Today, most of ISPs use BGP routing protocols to provide communication between other ISPs and customer routers. To create communication between other school campuses with the district office, we established internet which has BGP routing protocol. CPT can provide BGP routing for IPv4 but does not able to provide for IPv6. Because of that, we use GNS3 simulation program to present BGP routing between campus routers.</p><p><strong>IV. RESEARCH RESULTS</strong></p><p>In this study, author firstly started to research about why the current IPv4 getting extinct. To find a solution, some of the current transition techniques researched and found that, the most proper method for large enterprises is dual-stack transition mechanism. Tunneling transition mechanism was not safe for the school network. Hackers may reach the school database and access the students’ and employees’ sensitive information. Also, the translation model may cause collapse and that affect the availability of the current network. Because of these reasons, the dual-stack transition method selected as a test scenario.</p><p>Then, to test this method, simulation environment set up based on an existing school district network design. Author find out that some issues may happen while transferring IPv4 network to IPv6 network. These issues explained below.</p><p>First issue is that IPv6 address range is bigger than IPv4 address range. When network admins designing an IPv6 transition, they should plan it before applying. The organization cannot stop the network operation while transferring the current system to IPv6 because the connection should be consistent for IPv4 and without planning this big scale network address can cause interruptions on the current system.</p><p>Another important issue is the applications. Internet service providers or current applications such as student database should support IPv6 and IPv4. So service providers should find a solution for their customers’ needs. For example, the organization should use the proper router that supports IPv4 and IPv6 at the same time. Furthermore, ISP should provide an IPv6 address.</p><p>The last issue is about simulation environment. The transition mechanism runs on CPT however it does not have IPv6 support for BGP routing protocols. While configuring Internet router, BGP routing tested on GNS3. But for local side network, which is the main network area to test dual-stack method, worked very well. So, network engineers should make sure their design is properly worked on simulation and then they should start to apply on the actual system.</p><p><strong>V. CONCLUSION</strong></p><p>The paper discusses the methodology of IPv6 on limited IPv4 on the Internet world where users have increased quickly and show how to apply a popular transition method from IPv4 to IPv6 on a school network. This school has three campuses from different geographical locations and one district office. It also provides a comparison of other transition mechanisms. Because of the wide range of device support and low cost, the dual-stack approach is the more functional and popular solution for this simulation.</p><p>Findings from this simulation, almost same as previous researches. IPv6 provides us a broad range of network address. Especially configuring OSPFv3 for IPv6 is very simple. However, creating DHCP for IPv6 is difficult. To create DHCPv6 pool for IPv6, the router used. This may require extra CPU and that affects the performance of the router. One of the previous research uses CPT for simulation however this paper does not mention which router works with IPv6. We found that Router 2811 provides IPv6 support. In addition, CPT does not support BGP routing for IPv6. This did not mention before. To solve this issue, the GNS3 application used.</p><p>This study shows that before transferring a current system to IPv6, it should be planned and simulated in a simulation environment. Otherwise, network admins may face problems such as lack of device support and network availability for the current system. This network designed for a mid-size company that has around 1000 computers in each campus. For this size of companies, transiting IPv4 to IPv6 may not require because of the available network address range. But it provides more security for the company.</p><p>To further researches, this simulation can be tested on the physical environment. Finding new transition mechanisms for a mid-size or small organization would be great. Also, for better evaluation to find the proper transition mechanism, the dual-stack model should be tested on different network designs. Moreover, in this design, mobile devices did not include. However, some organizations may provide a wireless network for their staff. Also, IPv6 based networks’ performance should be tested on wireless devices.</p><p><strong>REFERENCES</strong></p><p>[1] Andrews, E (2013, December 18). Who invented the internet? Retrieved from <a href="https://www.history.com/news/who-invented-the-internet">https://www.history.com/news/who-invented-the-internet</a></p><p>[2] Bob Kahn. (2019, February 17). Retrieved from <a href="https://en.wikipedia.org/wiki/Bob_Kahn">https://en.wikipedia.org/wiki/Bob_Kahn</a></p><p>[3] Hagen, S. (n.d.). IPv6 Essentials, 3rd Edition. Retrieved from <a href="https://www.oreilly.com/library/view/ipv6-essentials-3rd/9781449335229/ch01.html">https://www.oreilly.com/library/view/ipv6-essentials-3rd/9781449335229/ch01.html</a></p><p>[4] Shaw, K (2018, September 27). What is IPv6, and why aren’t we there yet? Retrieved from <a href="https://www.networkworld.com/article/3254575/what-is-ipv6-and-why-aren-t-we-there-yet.html">https://www.networkworld.com/article/3254575/what-is-ipv6-and-why-aren-t-we-there-yet.html</a></p><p>[5] IBM System Network Architecture (2019, April 23). Retrieved from <a href="https://en.wikipedia.org/wiki/IBM_Systems_Network_Architecture">https://en.wikipedia.org/wiki/IBM_Systems_Network_Architecture</a></p><p>[6] DECnet. (2019, April 09). Retrieved from <a href="https://en.wikipedia.org/wiki/DECnet">https://en.wikipedia.org/wiki/DECnet</a></p><p>[7] Odom, W. (2006). <em>CCNET/CCNA ICND1 100–105 oficial cert guide. </em>Indianapolis, IN: Cisco Press. 17–34</p><p>[8] Lammle, T. (2016). CCNA routing and switching complete study guide, (2nd ed.),Hoboken, NJ: Sybex, a Wiley brand.</p><p>[9] IPv6 Administration Guide: Chapter4 Making the Transition From IPv4 to IPv6 (Reference). Retrieved from <a href="https://docs.oracle.com/cd/E19683-01/817-0573/transition-10/index.html">https://docs.oracle.com/cd/E19683-01/817-0573/transition-10/index.html</a></p><p>[10] Steffann, S. (2013). A Comparison of IPv6 over IPv4 Tunnel Mechanisms. Retrieved from <a href="https://tools.ietf.org/id/draft-steffann-tunnels-03.html">https://tools.ietf.org/id/draft-steffann-tunnels-03.html</a></p><p>[11] Baker, F. (2011). Framework for IPv4/IPv6 Translation <a href="https://tools.ietf.org/html/rfc6144">https://tools.ietf.org/html/rfc6144</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76d7db2a20d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>