<?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 Cheseremtitus on Medium]]></title>
        <description><![CDATA[Stories by Cheseremtitus on Medium]]></description>
        <link>https://medium.com/@cheseremtitus24?source=rss-4970f381d57c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ACM3nprCn61HAx4hHCldnQ.jpeg</url>
            <title>Stories by Cheseremtitus on Medium</title>
            <link>https://medium.com/@cheseremtitus24?source=rss-4970f381d57c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:58:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cheseremtitus24/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[Earn Free Crypto with ASSAI Mining Bot — Start Mining Today!]]></title>
            <link>https://medium.com/@cheseremtitus24/earn-free-crypto-with-assai-mining-bot-start-mining-today-4f9e7109bd8f?source=rss-4970f381d57c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f9e7109bd8f</guid>
            <category><![CDATA[crypto-mining]]></category>
            <category><![CDATA[passive-income]]></category>
            <category><![CDATA[cryptocurrency-investment]]></category>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[free-crypto-coins]]></category>
            <dc:creator><![CDATA[Cheseremtitus]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 09:48:32 GMT</pubDate>
            <atom:updated>2025-01-29T09:48:32.801Z</atom:updated>
            <content:encoded><![CDATA[<h3>Earn Free Crypto with ASSAI Mining Bot — Start Mining Today!</h3><p>Imagine earning free cryptocurrency with just a few clicks. No expensive mining rigs, no complex setups — just a simple and effective way to mine crypto using your smartphone or computer. Sounds too good to be true? Well, it’s possible with <a href="https://t.me/ASSAI8Bot?start=ref_689726"><strong>ASSAI Mining Bot</strong> on Telegram!</a></p><p>If you’re looking for a <strong>legit and easy way to earn free crypto</strong>, then this is your chance. Join the <strong>ASSAI mining community</strong> and start accumulating rewards today minum withdrawal of $2usdt is withdrawable once you accumulate 1000 Assai coins.</p><figure><img alt="Enroll to Assai bot: https://t.me/ASSAI8Bot?start=ref_689726" src="https://cdn-images-1.medium.com/max/381/1*cf5kkIxE_t7hJMISjx1baQ.png" /><figcaption>telegram assai bot</figcaption></figure><h3>What is ASSAI Crypto?</h3><p>ASSAI is an innovative cryptocurrency designed to provide <strong>accessible and efficient mining opportunities</strong> for users around the world. Unlike traditional crypto mining, which requires costly hardware and high electricity consumption, <strong>ASSAI offers cloud-based mining</strong> through a user-friendly Telegram bot.</p><h3>Why Choose ASSAI?</h3><p>✔ <strong>No Investment R equired</strong> — Earn crypto for free! 🚀<br>✔ <strong>Easy to Use</strong> — Just a few clicks “click on start mining and come back every 4 hours to claim your mined coins — 16 coins — on the basic plan you’re mining!<br>✔ <strong>Referral Bonuses</strong> — Invite friends and earn more!<br>✔ <strong>Fast Payouts</strong> — Withdraw your earnings quickly!</p><h3>How to Start Mining with ASSAI Bot</h3><p>Getting started with ASSAI mining is simple and <strong>takes less than a minute</strong>. Just follow these steps:</p><p>1️⃣ <strong>Click the link to start:</strong> <a href="https://t.me/ASSAI8Bot?start=ref_689726">Join ASSAI Mining Bot</a><br>2️⃣ <strong>Press ‘Start’</strong> to activate the bot.<br>3️⃣ <strong>Follow the bot’s instructions</strong> to begin mining.<br>4️⃣ <strong>Complete tasks</strong> and invite friends to increase your earnings!</p><p>💡 <em>Pro Tip:</em> The more people you invite, the higher your mining speed! Build your team and maximize your earnings.</p><h3>How Does ASSAI Mining Work?</h3><p>ASSAI’s mining process is <strong>cloud-based</strong>, meaning you don’t need expensive hardware. Instead, the Telegram bot handles everything for you. You simply engage with the bot daily, complete simple tasks, and <strong>watch your crypto balance grow</strong>!</p><h3>Referral Program — Earn Even More!</h3><p>Want to boost your earnings? ASSAI’s <strong>referral system</strong> rewards you for every new user you bring in. Here’s how it works:</p><ul><li><strong>Invite a friend</strong> → Earn a percentage of their mining rewards 🔥</li><li><strong>Build a team</strong> → More referrals = higher mining power 🚀</li><li><strong>Passive income</strong> → Keep earning as your team mines 💰</li></ul><p>💡 <em>Start referring now and watch your earnings multiply!</em></p><h3>Is ASSAI Mining Legit?</h3><p>Yes! ASSAI is a <strong>transparent and community-driven</strong> crypto project. Many users have already started mining and successfully withdrawn their earnings. As with any crypto project, it’s always good to stay informed and follow official updates.</p><h3>Final Thoughts — Start Mining Now!</h3><p>ASSAI is making <strong>crypto mining accessible to everyone</strong>. Whether you’re a seasoned crypto enthusiast or a beginner, this Telegram bot offers an easy way to start mining today.</p><p><strong>Don’t miss out on this free earning opportunity!</strong> Click below and start mining now:<br>➡ <a href="https://t.me/ASSAI8Bot?start=ref_689726"><strong>Join ASSAI Mining Bot</strong></a></p><p>The sooner you start, the more you earn! How to Start Mining with ASSAI Bot</p><p>Getting started with ASSAI mining is simple and <strong>takes less than a minute</strong>. Just follow these steps:</p><p>1️⃣ <strong>Click the link to start:</strong> <a href="https://t.me/ASSAI8Bot?start=ref_689726">Join ASSAI Mining Bot</a><br>2️⃣ <strong>Press ‘Start Mining’</strong> to activate the bot.<br>3️⃣ <strong>Follow the bot’s instructions</strong> to begin mining.<br>4️⃣ <strong>Complete Lucky Draw (spin one-time) and the Daily Task Center tasks</strong> and invite friends to increase your earnings!</p><p>💡 <em>Pro Tip:</em> The more people you invite, the higher your mining speed! Build your team and maximize your earnings.</p><h3>How Does ASSAI Mining Work?</h3><p>ASSAI’s mining process is <strong>cloud-based</strong>, meaning you don’t need expensive hardware. Instead, the Telegram bot handles everything for you. You simply engage with the bot daily, complete simple tasks, and <strong>watch your crypto balance grow</strong>!</p><h3>Referral Program — Earn Even More!</h3><p>Want to boost your earnings? ASSAI’s <strong>referral system</strong> rewards you for every new user you bring in. Here’s how it works:</p><ul><li><strong>Invite a friend</strong> → Earn a percentage of their mining rewards</li><li><strong>Build a team</strong> → More referrals = higher mining power</li><li><strong>Passive income</strong> → Keep earning as your team mines</li></ul><p>💡 <em>Start referring now and watch your earnings multiply!</em></p><h3>Is ASSAI Mining Legit?</h3><p>Yes! ASSAI is a <strong>transparent and community-driven</strong> crypto project. Many users have already started mining and successfully withdrawn their earnings. As with any crypto project, it’s always good to stay informe d and follow official updates.</p><h3>Final Thoughts — Start Mining Now!</h3><p>ASSAI is making <strong>crypto mining accessible to everyone</strong>. Whether you’re a seasoned crypto enthusiast or a beginner, this Telegram bot offers an easy way to start mining today.</p><p>🔥 <strong>D on’t miss out on this free earning opportunity!</strong> Click below and start min ing now:<br>➡ <a href="https://t.me/ASSAI8Bot?start=ref_689726"><strong>Join ASSAI Mining Bot</strong></a></p><p>💰 The sooner you start, the more you earn! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f9e7109bd8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kitambulisho Trace & Reissue]]></title>
            <link>https://medium.com/@cheseremtitus24/kitambulisho-trace-reissue-517e778b95b5?source=rss-4970f381d57c------2</link>
            <guid isPermaLink="false">https://medium.com/p/517e778b95b5</guid>
            <category><![CDATA[orm]]></category>
            <category><![CDATA[flask-sqlalchemy]]></category>
            <category><![CDATA[sqlalchemy]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Cheseremtitus]]></dc:creator>
            <pubDate>Tue, 13 Jun 2023 18:07:27 GMT</pubDate>
            <atom:updated>2023-06-13T18:07:27.134Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kK1cvdU9d4WmluSWq93WQw.png" /></figure><p>The <a href="https://github.com/PhylisMercy/Kitambulisho">Kitambulisho Trace &amp; Reissue</a> is a lookup directory that helps individuals to locate and find lost documents. The word “Kitambulisho” is a swahili word that refers to personal identifiable information and the said documents can be passports, national identity cards and even health insurance cards.</p><h3><strong>About the Team</strong></h3><p><a href="https://github.com/PhylisMercy">Phyllis Mercy Njoroge</a> and <a href="https://github.com/cheseremtitus24">myself</a> worked on the project between May 19, 2023 and June 23, 2023. We wanted to solve two main challenges when designing our project: making sure it works well on both websites and mobile devices, and finding a dependable and advanced tool to enhance its functionality. Phyllis and I worked as per module basis and was more of a feature based development and commit.</p><h3><strong>Background &amp; our Drive to see it Through</strong></h3><p>Institution processed replacement of Vitambulisho cards takes a while and requires filing of several forms, awaited approvals and then due process in filling in form requests for a new/replacement kitambulisho.</p><p>Most of the time sensitive tasks such as access to medical services, Bank withdrawals, visitation to public offices may be halted due to absence of a Kitambulisho. Moreover, in the event that you “get booked” without having your “Kitambulisho” in hand, you may end up facing a multitude of charges and it doesn’t get any easier from there.</p><p>Our team unanimously decided to develop an app that would enable individuals to be reunited with their lost documents. For me personally, this project holds a deep significance rooted in my own experiences. The app will instill countryman-ship and contributes to a shared responsibility towards the well-being and progress of the community.</p><h3>Web Application Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/0*K3q1uvjM5FOiI7I3" /><figcaption>Web Application Architecture</figcaption></figure><h3><strong>Technologies Used</strong></h3><p>For the frontend we chose to use HTML5, CSS3 and JavaScript without any additional frameworks. We opted for the latter because we utilized <a href="http://.com/file/ZKXHo00CLyIDCb29zgrV54/Light-Theme-Web-Design-(Community)?type=design&amp;node-id=1-1210&amp;t=J4qnUh1p988GaRpa-0">figma</a> for our design and <a href="http://locofy.ai/convert/figma-to-html-css">locofy</a> that enabled for rapid conversion of UI kit designs to application code. Importantly, the team had a mastery of the <a href="https://en.wikipedia.org/wiki/Programming_language">languages</a>.</p><p>For the <a href="https://en.wikipedia.org/wiki/Frontend_and_backend">Backend</a> we used flask for the <a href="https://github.com/PhylisMercy/Kitambulisho/blob/main/api.txt">api endpoints</a>, python’s <a href="https://www.youtube.com/watch?v=woKYyhLCcnU">sqlalchemy orm</a> for cross database integration</p><h3>System Features Completed</h3><p>API Endpoints with capability to:</p><ol><li>Post Lost ID Cards</li></ol><blockquote>curl -X POST <a href="http://0.0.0.0:5001/api/v1/amenities/">http://0.0.0.0:5001/api/v1/amenities/</a> -H “Content-Type: application/json” -d ‘{“name”: “Libianca”, “ID_Number”: “9842552”}</blockquote><p>2. Reverse search for kitambulisho to the report station where it is kept awaiting to be collected and signed off on.</p><blockquote>curl <a href="http://127.0.0.1:5001/api/v1/places">http://127.0.0.1:5001/api/v1/&lt;amenity_id/places</a></blockquote><p>3. Reverse search for kitambulisho to the collection register that records the owner who collected his/their document.</p><blockquote>curl <a href="http://127.0.0.1:5001/api/v1/places">http://127.0.0.1:5001/api/v1/</a>&lt;amenity_id&gt;signoffs</blockquote><h3>Technical Challenges Faced</h3><p>One of the main challenges we faced during the development of Kitambulisho was optimizing the image recognition and text extraction algorithm for performance and accuracy. We spent several weeks experimenting with different approaches and fine-tuning the parameters.</p><p>Another challenge was ensuring the security of the system, particularly in terms of data privacy and user authentication.</p><h3>This project has sparked our interest in various technical areas.</h3><ul><li>working on the frontend sparked a fascination for user interface design and usability. The challenge of creating an intuitive and visually appealing interface has motivated to explore more about user experience (UX) and frontend frameworks.</li><li>Working on large datasets and implementing efficient database queries has inspired to delve deeper into database management and optimization techniques.</li></ul><h3>Project</h3><p><a href="https://github.com/PhylisMercy/Kitambulisho">github project repository: Kitambulisho Trace &amp; Reissue Web App</a></p><p><a href="http://web-02.eldoret.tech/">Deployed Project Page:http://web-02.eldoret.tech</a></p><p><a href="http://web-02.eldoret.tech/LandingPage.html">Landing Page: http://web-02.eldoret.tech/LandingPage.html</a></p><p><a href="https://linkedin.com/in/cheseremtitus24">My_linkedin profile: https://linkedin.com/in/cheseremtitus24</a></p><p>“I am fortunate to be part of the ever-evolving world of computer science. Through dedicated learning and collaboration, I strive to contribute to the collective knowledge and progress of this field. I value the opportunity to work alongside brilliant minds, leveraging technology to solve complex problems and make a positive impact. Every day is a chance to learn, grow, and contribute to the greater advancements that lie ahead.”</p><blockquote><em>Lets Continue Doing Hard Things…</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=517e778b95b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide To Choosing the Right Solar Panel Wattage for Your Home]]></title>
            <link>https://medium.com/@cheseremtitus24/a-guide-to-choosing-the-right-solar-panel-wattage-for-your-home-8c706d15194b?source=rss-4970f381d57c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c706d15194b</guid>
            <category><![CDATA[solar-energy]]></category>
            <category><![CDATA[power-consumption]]></category>
            <category><![CDATA[power-utility]]></category>
            <dc:creator><![CDATA[Cheseremtitus]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 13:51:24 GMT</pubDate>
            <atom:updated>2023-04-17T13:51:24.892Z</atom:updated>
            <content:encoded><![CDATA[<p>When I first installed my solar panel system, I was unaware of how much wattage my household was consuming. Despite purchasing what I believed to be a sufficient system, I soon realized that I was consistently using more energy than I was generating. In this post I wish to explain you how you can plan ahead.</p><p>Facts: As at this writing, the current industry monocrystalline solar panels for home use produce between <a href="https://www.yesenergysolutions.co.uk/advice/how-much-energy-solar-panels-produce-home#:~:text=Most%20residential%20solar%20panels%20on,1%20kW%20and%204%20kW.">250 and 400 watts</a> and have an efficiency of 20%.</p><p>efficiency:</p><blockquote>The efficiency of a solar panel refers to how well it can convert sunlight into usable electricity. Essentially, it measures the percentage of sunlight that is turned into electricity by the panel. For example, if a solar panel has an efficiency rating of 20%, it means that 20% of the sunlight that hits the panel will be converted into usable electricity, while the remaining 80% will be lost as heat.</blockquote><p>Solar panel Output Per Day (320 watts)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*F8t6SwxYw0q8S_B9hxcM5g.png" /></figure><p>Verifying House Hold Wattage Consumption On the <a href="https://kplc.co.ke/content/item/518">KPLC Token</a> Meter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0oE0uZPN46CFxY_twwYmw.jpeg" /><figcaption>House hold consumption of 4.0 kWh per day</figcaption></figure><p>On the top left the reading is done in kWh same as in the former Example computation. Therefore, you need to monitor the meter reading and compute an average of wattage consumed on a daily basis.</p><p>Resource:</p><blockquote>Query String: suggest battery, inverter and panels of 300watts I will need to get in order to store 4kWh</blockquote><blockquote>To store 4 kWh of electricity and use it overnight, you would need a solar panel system with a capacity larger than 4 kWh to ensure that you generate enough electricity during the day to both power your home and charge your batteries. Here is an example of a solar panel system that could meet your needs:</blockquote><blockquote>Solar Panels: If you want to generate 4 kWh of electricity per day, you would need approximately 13.3 300-watt solar panels (assuming 5 hours of peak sunlight per day). You could install a 14-panel system to generate slightly more electricity to ensure that you have enough to charge your batteries and power your home.</blockquote><blockquote>Inverter: For a 4 kW solar panel system, you would need an inverter with a capacity of at least 4 kW to convert the DC electricity generated by your solar panels into AC electricity that can be used to power your home. A recommended inverter for this system is the Fronius Primo 4.0 kW inverter.</blockquote><blockquote>Battery Storage: To store 4 kWh of electricity and use it overnight, you would need a battery with a capacity of at least 4 kWh. A recommended battery for this system is one which has a capacity of 9.8 kWh and a usable capacity of 8.8 kWh (assuming a depth of discharge of 90%).</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c706d15194b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Setup a Load Balanced Web Architecture]]></title>
            <link>https://medium.com/@cheseremtitus24/how-to-setup-a-web-stack-load-balanced-architecture-e14e0cda5955?source=rss-4970f381d57c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e14e0cda5955</guid>
            <category><![CDATA[bash-scripting]]></category>
            <category><![CDATA[linux-administration]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <dc:creator><![CDATA[Cheseremtitus]]></dc:creator>
            <pubDate>Wed, 12 Apr 2023 16:44:11 GMT</pubDate>
            <atom:updated>2023-04-12T20:55:44.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H0iWD2hWUDh8hhcSSFRbuw.png" /><figcaption>High Availability (HA) Web Server Architecture</figcaption></figure><p>What Happens When You type <a href="https://paywifigo.me/">https://w</a>ww.google.com/ ?</p><p>Featured Content.</p><ul><li>DNS request</li><li>TCP/IP</li><li>Firewall</li><li>HTTPS/SSL</li><li>Load-balancer</li><li>Web server</li><li>Application server</li><li>Database</li></ul><p>Featured Tools and Utilities</p><ul><li>curl — flags [-L] -&gt; follow http redirects [-X] -&gt; specify http Verb [GET,POST,OPTIONS] [-S] [-I] -&gt; Display Header Information</li></ul><p>Verify SSL_Certificate Status [Valid,Expired,Issuer]</p><pre>curl -cert-status -v https://www.google.com 2&gt;&amp;1 | awk &#39;BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }&#39;</pre><ul><li>dig — DNS lookup Utility</li></ul><pre>dig paywifigo.me</pre><h3>Part I: Domain Name Resolution</h3><p>Definition:</p><p>Concepts: <strong>A-Record &amp; CNAME</strong></p><p><strong>A-Record</strong> — This is a DNS record that enables for mapping of an IP Address to a unique name that is optionally preceded by a subdomain (www.) and must end with a top level domain (.com,.tech,.net,.me).</p><blockquote><a href="http://www.paywifigo.me/">www.paywifigo.me</a> — is a subdomain</blockquote><blockquote>paywifigo.me — is the root domain — symbolized as @</blockquote><blockquote>paywifigo — is the domain name</blockquote><blockquote>.me — is the top level domain (TLD)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDidPHfZM5SCYckkB1kVkw.png" /><figcaption>ARecords with subdomains</figcaption></figure><p>N/B These Records are only accessible from Your Domain Provider. (<a href="https://namecheap.com/">https://namecheap.com</a>,<a href="https://get.tech/">https://get.tech/</a>). The @ symbol in the first entry expands to the root-domain [paywifigo.me]. While Using Namecheap the above settings are located under [Domain List-&gt;Advanced DNS]</p><p><strong>CName</strong> — These work like a linked list in which the head of the list points to the next item. As <a href="https://www.cloudflare.com/learning/dns/dns-records/dns-cname-record/">cloudflare puts it</a> the tail can be thought of as the treasure [ our treasure in this sense is the A-Record that contains the resource IPAddress].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KHeNVchvTR5DHJJncyWNA.png" /><figcaption>CName Record pointing to the root-domain</figcaption></figure><p><a href="http://www.paywifigo.me/">www.paywifigo.me</a> -&gt; paywifigo.me -&gt; 54.197.38.243</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RU1QH4NiJg4KkZeMwDlkrQ.png" /><figcaption>A-Record that Points to an IPAddress — our<a href="http://cloudflare.com/learning/dns/dns-records/dns-cname-record/"> ‘treasure’</a></figcaption></figure><p>NOTE: Running a dns Trace on the <strong>CNAME</strong> With Emphasis on the time it takes to resolve the query to retrieve an IP-Address.</p><pre># CNAME Query - Takes Longer to Return Results<br>dig +trace www.paywifigo.me <br># A-Record - Takes a very short period to Return Results<br>dig +trace paywifigo.me </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*qoZMLrcB_5YENKUD3BCYtw.png" /><figcaption><strong>CNAME</strong> — Uses two DNS resolution Queries</figcaption></figure><p>Querying an <strong>A Record</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*P0buObEGURfR7IkwsvYc_Q.png" /><figcaption><strong>A-Record</strong> uses only one DNS Query and Takes a shorter time.</figcaption></figure><p>Querying the <strong>CName</strong> took 1652ms</p><p>Querying the <strong>ARecord</strong> took only 28ms.</p><blockquote>TAKEAWAYS: <strong>A-records</strong> Resolve Faster than <strong>CNAME</strong> records.</blockquote><p><strong>RECAP:</strong> “what happens when you type “www.google.com/” in your browser?</p><p>Well, if the subdomain above is a CName record, — Expect it to take longer than the case when it were an A record. Also, you will know it’s a CName if it utilizes more than one DNS query. Lets Verify this below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*u-N8gdZ2Irn1LxZDDUi3zg.png" /><figcaption><a href="http://www.google.com/">www.google.com</a> is indeed an A-Record ^_^ takes a short while to get “<a href="https://www.cloudflare.com/learning/dns/dns-records/dns-cname-record/">our treasure</a>”</figcaption></figure><h3>Part II: TCP/IP &amp; Load-balancer</h3><p>Definition:</p><p>Concepts: Transmission Control Protocol (TCP) &amp; Internet Protocol (IP)</p><p><strong>TCP</strong> — is a set of rules that are agreed upon in formatting and transmitting of data.</p><blockquote>Given the case that it is agreed that you are to send blue pens in a grey box and red pens in a blue box. You must stick to the above [grey box — contains blue pens] &amp; [blue box — contains red pens] in no case can you put blue pens in the blue box or vice versa.</blockquote><p><strong>IP</strong> — The internet addressing protocol that is likened to a hotel reservation and system. Hotels reserve rooms to guests based on room numbers. This enables the staff to know where luggage or food items are to be delivered.</p><blockquote>The TCP and IP protocols work alongside each other and are inseperable that is why they are always represented as <em>TCP/IP</em></blockquote><blockquote>TAKEAWAYS: <strong>A-records</strong> Resolve to IP addresses</blockquote><p><strong>RECAP:</strong> “what happens when you type “www.google.com/” in your browser?</p><p>The DNS Server Resolves the ARecord ‘www.google.com’ to the load balancer’s ip address 172.217.170.164.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*9lbu9vtX3u8iurxEW2I_Pw.png" /></figure><p><strong>Verification of an Existing LoadBalancer</strong>- This is assumed when there occurs a 30x redirect in the http request.</p><p>Visualizing Load Balancer Redirects using curl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sDValDS6JRqi2GBChKb8yw.png" /><figcaption>Traffic from port 80 is redirected to make use of secure http over port 443</figcaption></figure><p>The google <strong>loadbalancer</strong> @ 172.217.170.164 utilizes a self-signed certificate on port 443 and browsing to this will prompt a privacy warning on the web browser. This is unlikely to be used therefore we assume all traffic is routed via port 80.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*Dw4hd0vMSU5K3QpS0KK_5A.png" /><figcaption>Self Signed Certificate Used on the LoadBalancer</figcaption></figure><p>All Traffic is routed through port 80 as per assumption. Therefore, the <strong>loadbalancer </strong>forwards the traffic to the backend redundant worker Servers.</p><p>Accessing via port 80 our traffic is redirected (301 Moved Permanently) to a worker web server that implements its own TLS certificate that encrypts http traffic and communicates over https on port 443.</p><p>VERIFY SSL CERTIFICATE Using CURL</p><pre>curl -cert-status -v https://www.google.com 2&gt;&amp;1 | awk &#39;BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWk5Zz0Z_5syqVhCOnNWfQ.png" /><figcaption>SSL certificate Verification</figcaption></figure><blockquote>TAKEAWAYS: <strong>A load balancer is a hardware or software device that serves to distribute the work load of serving web pages among web servers so as to reduce overloading/overwhelming one server.</strong></blockquote><p>Bonus: <a href="https://www.haproxy.org/">haproxy load balancer </a>configuration file.</p><p>filename: <a href="https://github.com/cheseremtitus24/alx-system_engineering-devops/blob/main/0x10-https_ssl/100-redirect_http_to_https">/etc/haproxy/haproxy.cfg</a></p><pre>backend web-backend<br>   balance roundrobin<br>   # check - means to allow for health checks<br>   server web1 &lt;webserver1_IPADDR/Domain_Name&gt;:80 check<br>   server web2 &lt;webserver2_IPADDR/Domain_Name&gt;:80 check<br><br>frontend http<br>  bind *:80<br>  bind *:443 ssl crt /etc/haproxy/ssl_certs.pem<br>  # the below directive redirects http -&gt; https<br>  http-request redirect scheme https unless { ssl_fc }<br><br>  mode http<br><br>  acl url_blog path_beg /<br> <br>  default_backend web-backend</pre><h3>Part III: WEB SERVER, APPLICATION SERVER &amp; DATABASE</h3><p>Definition:</p><p>Concepts: Database, <a href="https://www.educative.io/answers/web-server-vs-application-server">Web Server &amp; Application Server</a></p><p>A <strong>webserver</strong> is a specialized software program that is limited to handling the transmission of data over http. Web servers therefore, serve static content using the http protocol. Examples of web servers are <a href="https://www.nginx.com/">nginx</a>, <a href="https://httpd.apache.org/">apache2</a> &amp; <a href="https://www.iis.net/">IIS</a>.</p><p>An <strong>application server</strong> — Quoting<a href="https://www.educative.io/answers/web-server-vs-application-server"> here</a> “An application server is a software framework that transforms data to provide the specialized functionality offered by a business, service, or application”. This means it is the business logic that performs enterprise tasks. In our case of google.com, it is the application that performs web content crawling, indexing, storing and search retrieval.</p><p>A Database — <a href="https://www.grepper.com/answers/244896/what+is+a+database">A database is an organised collection of related data from which you can easily retrieve and use data.</a></p><p>BREAKDOWN:</p><p>When you enter “https://www.google.com” your browser (client) establishes a TCP connection to the google servers. The connection then utilizes the http protocol to exchange web content. The web server and the browser use http in order to negotiate data interchange.</p><p>The client post requests are handled dynamically by the application server, which is the core search engine. The communication of request and results is only conveyed as static html content.</p><h3>Part IV: FIREWALL</h3><p><a href="https://www.grepper.com/answers/414154/firewall">A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. A firewall typically establishes a barrier between a trusted network and an untrusted network, such as the Internet</a></p><p>Firewalls can be set up using iptables on *nix systems. The basic rules set to safeguard http traffic on port 443, ssh on port 22 and database service on port 3306(mysql/mariadb).</p><p>Hardening the web servers can utilize the following iptables rules.</p><ol><li>set of basic iptables’ rules</li></ol><p>script name: iptables_rules.sh</p><pre>#!/usr/bin/env bash<br># this script applies basic iptable rules <br><br># enable all traffic ssh traffic<br>sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT<br># enable all http traffic from web server<br>sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT<br># enable all secure http traffic from web server<br>sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT<br># enable all database traffic on port 3306<br>sudo iptables -A INPUT -p tcp --dport 3306<br># Allow inbound traffic which is part of an established or related connection.<br>sudo iptables -A INPUT -m conntrack –-ctstate RELATED,ESTABLISHED -j ACCEPT<br># drop all other traffic that does not meet the above criteria<br>sudo iptables -A INPUT -j DROP<br></pre><p>2. To enable iptables rules across reboots you can do the following.</p><ul><li>Make the script ‘iptables_rules.sh’ executable.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*HjGPmsK6ZaECg1pdJSalww.png" /></figure><ul><li>Apply the rules within the current session by executing the script.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6t9GWYjtrSWmwVF6b_E5Ig.png" /></figure><ul><li>Verify the rules as being applied</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tgyf2D7eBvcmf38ckMmgDg.png" /></figure><ul><li>Save the rules to a file using iptables inbuilt utility ‘<a href="https://www.geeksforgeeks.org/iptables-save-command-in-linux-with-examples/"><strong>iptables-save</strong></a>’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fsClgSxDrT0Nz0f25SQ-fw.png" /></figure><ul><li>Verify exported iptables rules to the file ‘saved_rules.txt’</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFmbS8ttyjaM1PJbpYlyAw.png" /></figure><p>In order to restore the rules at runtime you will use the <a href="https://www.geeksforgeeks.org/iptables-restore-command-in-linux-with-examples/"><strong>iptables-restore</strong></a> utility. But first lets flush the above applied rules in order to verify if the restore functionality will work.</p><ul><li>flushing iptables rules (on test machine — could be docker or a virtual machine)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hl5u1rMwGL9pA2FwlXn2DA.png" /></figure><ul><li>Restoring the Iptables Rules.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHsb8DTpw8w6AiqIXi9_rQ.png" /></figure><ul><li>Generating our Startup Script. The saved_rules.txt can be saved in the root of the filesystem.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*voo8k_M_CL6tM_BuAfaaOg.png" /></figure><ul><li>startup script name: restore_iptables_rules.sh</li></ul><pre>#!/bin/sh<br>/sbin/iptables-restore &lt; /saved_rules.txt<br>exit 0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*bTWUFRKGQSaTRz0r9MYwqA.png" /></figure><ul><li>Running a Script at Startup (restore_iptables_rules.sh)</li></ul><p>On Debian Systems the scripts located in the following path</p><blockquote>/etc/rc.local — file</blockquote><p>are executed when a system is booting up. Copy the contents of ‘restore_iptables_rules.sh’ into the /etc/rc.local file.</p><ul><li>Utilizing the /etc/rc.local file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*mmsjVAG8OkxJ2dNnyZ5w_g.png" /><figcaption>/etc/rc.local does not exist therefore you must create it</figcaption></figure><p>Restart Your Test OS to verify that the iptables rules have been reapplied after boot …</p><p><strong>DISCLAIMER:</strong></p><blockquote>Applying the above iptables rules on your personal computer will cause DNS look ups to fail, you won’t be able to browse web pages and you won’t be able to receive ping responses [even pings to localhost]. But running the script on a server, you will still be able to ssh into the machine and have access to static web content being served to remote clients over http/https.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e14e0cda5955" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>