<?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 Phoenix Ignited on Medium]]></title>
        <description><![CDATA[Stories by Phoenix Ignited on Medium]]></description>
        <link>https://medium.com/@PhoenixIgnitedTech?source=rss-afeb99182afc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WW1ORsqcmra7H2ZqaUQFyg.png</url>
            <title>Stories by Phoenix Ignited on Medium</title>
            <link>https://medium.com/@PhoenixIgnitedTech?source=rss-afeb99182afc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:16:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@PhoenixIgnitedTech/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[Anonymous IDs — The Potential]]></title>
            <link>https://systemweakness.com/anonymous-ids-the-potential-5d639e04adcf?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d639e04adcf</guid>
            <category><![CDATA[verification]]></category>
            <category><![CDATA[anonymous-id]]></category>
            <category><![CDATA[anonymity]]></category>
            <category><![CDATA[digital-id]]></category>
            <category><![CDATA[anonymous]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Tue, 28 Jan 2025 01:42:08 GMT</pubDate>
            <atom:updated>2025-01-31T15:57:03.797Z</atom:updated>
            <content:encoded><![CDATA[<h3>Anonymous IDs — The Potential</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k32lbVYIXgQryUS_YpLAAg.jpeg" /></figure><ul><li>January 27, 2025</li></ul><p>In the digital age, governments and the citizens of those governments have been faced with an ever harsher pressing reality, the reality of online anonymity. It has its pluses and minuses to put it lightly, and often governments and individuals are approaching and attempting to deal with this reality in an all or nothing manner. However unlike the internet that spawned this issue, the reality of anonymity does not deal in 0’s and 1’s, all and nothing. In this article I want to suggest the potential of Anonymous ID’s, ID’s granted to individuals and unaffiliated (and therefore untraceable) with either the individual’s ID, SSN, biometric data, or other identifying info.</p><h3>An Overview -The Benefits and Drawbacks of Online Anonymity</h3><p>First let’s do a quick overview of what online anonymity is and its benefits and drawbacks. In case you were wondering what exactly we are referring to by “online anonymity”, we are referring to the ability of an entity to interact with other computers across the internet “anonymously” that is, without that entity’s interactions being traceable back to that entity. Online anonymity has often been argued as a human right in the digital age, and that without it, entities (whether governments, mega corps, or random hackers) could track all of an entity’s (for instance your) online activity back to that entity or individual (for instance you) and violate that entity’s right to privacy. This post does not attempt to cover whether or not or to what extent “online anonymity” may be a human right.</p><p>The reality of online anonymity has presented humanity and it’s governments with several benefits and drawbacks. Benefits have included online privacy, individuals (like you and I) have not needed to worry about the potential of “Big Brother” tracking our every online move (or have we? I suppose that could potentially be argued), another benefit has been that online anonymity by defacto protects the rights secured us as Americans in the first Amendment, without online anonymity it becomes increasingly easy for entities (whether govs, mega corps, hackers, or foreign adversaries) to proactively silence political opponents and “disapproved” viewpoints, beliefs, and facts.</p><p>Drawbacks though have been many and non-negligible, however we will focus on a couple prevalent issues, the issues that Digital IDs in the first place aim to repair, the first of these issues is the ever increasing prevalence of minors engaging in harmful, violent, and explicitly sexual, media and content online (especially on social media platforms, etc.) A second is the growing prevalence of “bot actors” online, these bots may amplify certain viewpoints, swamping opposing viewpoints, and silence healthy public discussion around important subjects, events, etc. There is a third supposed “drawback” to online anonymity which I listed as a benefit, this is the way in which online anonymity facilitates the rights guaranteed to us as Americans in our First Amendment. Anonymous IDs do not aim to counter this “drawback” but rather protect it. Together these particular drawbacks are what have prompted legislation across the globe that cracks down on online anonymity.</p><h3>Anonymous IDs -The Potential</h3><p>Current thoughts and ideas on how to address online anonymity are treacherous to the humanity they aim to serve though. As til now two separate streams of thought have taken precedence over any others. On the one hand we have the entities that would enforce Digital ID’s that are tied to an individual’s identifying info such as their driver’s license, SSN, biometric data, or another form of their identifying data. While in the other hand we have those that say, “you can’t touch online anonymity without bringing down democracy”. These are the exact ideas I would challenge. We can implement anonymity friendly technologies that preserve humanity’s right to privacy and that at the same time address the ever pressing issues of our kids being ruined by social media giants and of ever increasing numbers of fake “bots” online.</p><p>Anonymous IDs would be government issued IDs issued to citizens of a country that could be used across platforms online to identify an online “entity” according to legal requirements while maintaining the “entity’s” anonymity. These Anonymous IDs would not be tied to any personally identifying information of an individual. They would contain basic info such as “Age: Under 18” or “Age: Over 18, Under 21” or “Age: Over 21”. They would be password and 2FA protected and may or may not be associated with an email address. (Of course an email address is to some extent personally identifying info, however there are anonymous email providers such as ProtonMail).</p><p>These IDs would be issued either directly via government agencies or via approved organisations. When an applicant applies for an “Anonymous ID” they would have to show proof of their identity, age, and any other required information. This identifying info while required to obtain the ID would not be affiliated with the ID. The issuer of the “Anonymous ID” would sign off on the ID (basically authorizing it). The anonymity of the ID would be ensured as the issuer / government agency would keep NO record, absolutely NO record of who applied for the ID nor who it was issued to.</p><p>This type of “anonymized” authorization is already present throughout America. Every time a customer purchases tobacco or alcohol in an American grocery store, this principle of anonymous authorization is at work, the cashier may check the customer’s ID if they suspect the individual is under 21, if the individual is under 21 the cashier / grocer denies the tobacco / alcohol. The burden of verifying the age of the customer falls on the cashier, this principle would apply to the issuance of anonymous IDs as well, when an individual applies for an anonymous ID the issuer would verify the identity of the applicant etc. and then issue the Anonymous ID. Just as many if not most grocery stores across the US do not keep a record of every customer that purchases alcohol, the issuer of the Anonymous ID would also not keep a record of applicants, thus ensuring the anonymity of the ID.</p><h3>Final Thoughts</h3><p>I do not expect this article to be a “cure-all” for the issues addressed in this article, I just wanted to present the concept of “Anonymous IDs”, it may or may not be a new one (I am not aware of other articles on the concept). I realize this is a contentious issue and one fraught with different viewpoints. I think though that most people agree on two essential aspects of this argument, we all want online privacy and we do not want our kids accessing harmful content online etc. This topic should be presented to the public in a very open manner, we need discussion around it, we need to be reasonable, in the end this decision shouldn’t be made alone by politicians, but by a cohesive working of the people and governments together. I more than welcome comments, share this with your friends, criticize it, praise it, whatever, but let’s get this conversation moving.</p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d639e04adcf" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/anonymous-ids-the-potential-5d639e04adcf">Anonymous IDs — The Potential</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Math Ops in Python]]></title>
            <link>https://medium.com/@PhoenixIgnitedTech/basic-math-ops-in-python-d4c56db6fed6?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4c56db6fed6</guid>
            <category><![CDATA[python-math]]></category>
            <category><![CDATA[python-math-functions]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[basic-python-math-ops]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Thu, 02 Jan 2025 22:46:41 GMT</pubDate>
            <atom:updated>2025-01-02T23:06:50.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYm9ih7nlfsPgViZZ9lXrw.jpeg" /></figure><ul><li>January 2, 2025</li></ul><p>This is a brief overview of basic math operations using python covering addition, subtraction, multiplication, division, integer division, exponents, and modulus / remainder division.</p><h3>Basic Math Ops in Python</h3><p>We’ll start with addition and subtraction in python. Adding and subtracting in python is the same as it was in math class when you were in school. For instance to add 5 + 5 or subtract 5–5 in python you enter:</p><pre>5 + 5<br>#for addition<br>---------------<br>#python would return 10<br><br>5 - 5<br>#for subtraction<br>---------------<br>#python would return 0</pre><p>Similarly for multiplication and division in python, however notice that the “x” (multiplication sign) in python is an asterisk “*”.</p><pre>5 * 5<br>#to multiply in python<br>---------------<br>#python would return 25<br><br>5 / 5<br>#division in python<br>---------------<br>#python would return 1</pre><p>Exponents are likewise, just replace the carrot symbol “^” with double asterisks “**”.</p><pre>5 ** 5<br>#exponential powers in python<br>---------------<br>#python would return 3125</pre><p>Floor division (dividing and rounding down to the nearest whole number) is accomplished via:</p><pre>5 // 2<br>#floor division in python<br>---------------<br>#python would return 2</pre><p>And “remainder division” is accomplished via:</p><pre>5 % 2<br>#remainder division in python<br>---------------<br>#python would return 1</pre><p>Note that I have separated the characters with spaces throughout this tutorial for instance 5 + 5 rather than 5+5, it’s just personal style, python doesn’t care whether or not you separate the characters with spaces.</p><h3>Order of Ops in Python</h3><p>Order of operations (the order in which mathematical operations occur) are similar to the order of ops you learned in middle school. Exponents are evaluated first, followed by multiplication and the division operators, and finally followed by addition and subtraction, always read left to right.</p><p>That’s a wrap! You now know how to perform basic math operations in python. So why not just install python and delete that calc app? 😉 If you enjoyed this post, like it and subscribe!</p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. (Although I sure hope it is all correct!) Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4c56db6fed6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[T’was the Night Before {Christmas} Deployment]]></title>
            <link>https://medium.com/@PhoenixIgnitedTech/twas-the-night-before-christmas-deployment-01d6bc6b7998?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/01d6bc6b7998</guid>
            <category><![CDATA[xmas]]></category>
            <category><![CDATA[christmas]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[dev]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 05:04:44 GMT</pubDate>
            <atom:updated>2024-12-31T05:04:44.246Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGQsbiLxqSnNc1fvZo8qTA.jpeg" /></figure><ul><li>December 31, 2024</li></ul><p>Here’s hoping you all had a wonderful Christmas, and in the spirit of the season, a couple weeks back I prompted ChatGPT to generate a tech runoff of Clement C Moore’s “Twas the Night Before Christmas”. I hope you all enjoy! (And the poem is CC0 as it’s AI generated!)</p><p>Twas the night before Christmas, and all through the cloud,<br>Not a server was stirring, no pings were allowed.<br>The firewalls were stacked by the routers with care,<br>In hopes that St. Nicholas soon would be there.</p><p>The coders were nestled, snug in their chairs,<br>While visions of VR gear danced through the air.<br>With laptops on standby and snacks in their laps,<br>They had just debugged one last round of gaps.</p><p>When out on the server there arose such a clatter,<br>I sprang from my desk to check what was the matter.<br>Away to the dashboard, I flew like a flash,<br>Logged in with my password (a security splash).</p><p>The glow of the screen on my tired, weary eyes<br>Gave the lustre of updates, to my great surprise.<br>When what to my wondering code should appear,<br>But a miniature sleigh, and eight virtual reindeer.</p><p>With a savvy old driver, so lively and quick,<br>I knew in a moment it must be St. Nick.<br>More rapid than fiber, his packets they came,<br>And he whistled and shouted and called them by name:</p><p>“Now GitHub! Now Docker! Now Jenkins and Curl!<br>On Python! On Java! On Ruby and Perl!<br>To the top of the stack! To the edge of the site!<br>Dash away! Push away! Upload in the night!”</p><p>As fast queries run through a high-speed request,<br>His code never faltered; his system was blessed.<br>So up to the mainframe his courses they flew,<br>With a sleigh full of gadgets — and St. Nicholas, too.</p><p>And then, in a twinkling, I heard on the LAN,<br>The humming of servers, a well-crafted plan.<br>As I turned to the logs and was tracing the route,<br>Down the fiber St. Nicholas came with a shout.</p><p>He was dressed all in red, from his head to his foot,<br>And his clothes were all covered with debug soot.<br>A bundle of tech he had flung on his back,<br>And he looked like a startup just unloading his stack.</p><p>His eyes — they twinkled! His script — so merry!<br>His patches were clean, not one line was hairy.<br>His droll little mouth was drawn up like a bow,<br>And his beard coded Christmas in ones and in O’s.</p><p>He spoke not a word, but went straight to his work,<br>Refactored the system; then turned with a smirk.<br>And laying a finger aside of his nose,<br>He pinged to the sleigh, and up it arose.</p><p>He sprang to his sled, to his team gave a whistle,<br>And away they all flew like a high-speed missile.<br>But I heard him exclaim, as he sped out of sight:<br>“Happy coding to all, and to all a good night!”</p><p>That’s a wrap! Merry Christmas to all!</p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01d6bc6b7998" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Keycloak Docker Install -Traefik -Postgres -Production Ready]]></title>
            <link>https://medium.com/@PhoenixIgnitedTech/complete-keycloak-docker-install-traefik-postgres-production-ready-bae560821571?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/bae560821571</guid>
            <category><![CDATA[keycloak]]></category>
            <category><![CDATA[keycloak-traefik]]></category>
            <category><![CDATA[keycloak-docker]]></category>
            <category><![CDATA[keycloak-install]]></category>
            <category><![CDATA[keycloak-production]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Tue, 12 Nov 2024 02:28:16 GMT</pubDate>
            <atom:updated>2024-11-12T02:28:16.638Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdsoc2qEp0Xq0WY5cyCCuw.png" /></figure><ul><li>November 11, 2024</li></ul><p>Finally! How to install LATEST Keycloak (26.0.5) on Docker using Traefik as a reverse proxy and postgres as a database.</p><p>This tutorial covers installing Keycloak on Docker, using Traefik as a reverse proxy and postgresql as a database. It is designed to work with the LATEST version of Keycloak which as of writing is Keycloak 26.0.5</p><p>This tutorial only requires that you have docker and docker compose v2 installed, see my tutorials here: <a href="https://phoenixignited.tech/install-docker-on-ubuntu/"><em>https://phoenixignited.tech/install-docker-on-ubuntu/</em></a> and here: <a href="https://phoenixignited.tech/install-docker-compose-v2-on-ubuntu/"><em>https://phoenixignited.tech/install-docker-compose-v2-on-ubuntu/</em></a></p><p>Also be sure ports 443 and 80 are open on your server level firewall.</p><p>LINKS: <a href="https://www.keycloak.org/"><em>Keycloak.org</em></a>, <a href="https://www.keycloak.org/documentation"><em>Keycloak Docs</em></a>, <a href="https://www.keycloak.org/server/all-config?options-filter=all"><em>Keycloak All Config</em></a>, <a href="https://traefik.io/"><em>Traefik.io</em></a>, <a href="https://doc.traefik.io/traefik/"><em>Traefik Docs</em></a>, <a href="https://www.docker.com/"><em>Docker.com</em></a>,</p><p><a href="https://medium.com/@fieryphoenixtech/keycloak-terms-privacy-policy-configuration-67ff57b58ee2">Keycloak Terms &amp; Privacy Policy Configuration</a></p><h3>Directory Setup</h3><p>First off we need to setup our directory structure and create numerous config files. In your user’s home directory run:</p><pre>mkdir -p Docker/KeycloakTraefik/postgresconf &amp;&amp; cd Docker/KeycloakTraefik/postgresconf &amp;&amp; touch pg_hba.conf &amp;&amp; touch postgresql.conf &amp;&amp; cd .. &amp;&amp; touch compose.yaml &amp;&amp; touch .env &amp;&amp; mkdir letsencrypt &amp;&amp; sudo chmod 700 letsencrypt</pre><p><a href="https://systemweakness.com/malicious-captchas-to-malicious-copy-code-buttons-b11305cf0fe6">Malicious Captcha’s to Malicious Copy Code Buttons</a></p><h3>Postgres Conf</h3><p>After configuring the directory setup we will navigate into the postgresconf directory we created.</p><pre>cd postgresconf</pre><p>The following postgres config files are VERY LONG, however don’t worry, just copy and paste them! :)</p><p>Then we will edit the pg_hba.conf file. Just open it with nano or your favorite editor and enter: (To open the file in nano run: nano pg_hba.conf)</p><pre># PostgreSQL Client Authentication Configuration File<br># ===================================================<br>#<br># Refer to the &quot;Client Authentication&quot; section in the PostgreSQL<br># documentation for a complete description of this file.  A short<br># synopsis follows.<br>#<br># This file controls: which hosts are allowed to connect, how clients<br># are authenticated, which PostgreSQL user names they can use, which<br># databases they can access.  Records take one of these forms:<br>#<br># local         DATABASE  USER  METHOD  [OPTIONS]<br># host          DATABASE  USER  ADDRESS  METHOD  [OPTIONS]<br># hostssl       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]<br># hostnossl     DATABASE  USER  ADDRESS  METHOD  [OPTIONS]<br># hostgssenc    DATABASE  USER  ADDRESS  METHOD  [OPTIONS]<br># hostnogssenc  DATABASE  USER  ADDRESS  METHOD  [OPTIONS]<br>#<br># (The uppercase items must be replaced by actual values.)<br>#<br># The first field is the connection type: &quot;local&quot; is a Unix-domain<br># socket, &quot;host&quot; is either a plain or SSL-encrypted TCP/IP socket,<br># &quot;hostssl&quot; is an SSL-encrypted TCP/IP socket, and &quot;hostnossl&quot; is a<br># non-SSL TCP/IP socket.  Similarly, &quot;hostgssenc&quot; uses a<br># GSSAPI-encrypted TCP/IP socket, while &quot;hostnogssenc&quot; uses a<br># non-GSSAPI socket.<br>#<br># DATABASE can be &quot;all&quot;, &quot;sameuser&quot;, &quot;samerole&quot;, &quot;replication&quot;, a<br># database name, or a comma-separated list thereof. The &quot;all&quot;<br># keyword does not match &quot;replication&quot;. Access to replication<br># must be enabled in a separate record (see example below).<br>#<br># USER can be &quot;all&quot;, a user name, a group name prefixed with &quot;+&quot;, or a<br># comma-separated list thereof.  In both the DATABASE and USER fields<br># you can also write a file name prefixed with &quot;@&quot; to include names<br># from a separate file.<br>#<br># ADDRESS specifies the set of hosts the record matches.  It can be a<br># host name, or it is made up of an IP address and a CIDR mask that is<br># an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that<br># specifies the number of significant bits in the mask.  A host name<br># that starts with a dot (.) matches a suffix of the actual host name.<br># Alternatively, you can write an IP address and netmask in separate<br># columns to specify the set of hosts.  Instead of a CIDR-address, you<br># can write &quot;samehost&quot; to match any of the server&#39;s own IP addresses,<br># or &quot;samenet&quot; to match any address in any subnet that the server is<br># directly connected to.<br>#<br># METHOD can be &quot;trust&quot;, &quot;reject&quot;, &quot;md5&quot;, &quot;password&quot;, &quot;scram-sha-256&quot;,<br># &quot;gss&quot;, &quot;sspi&quot;, &quot;ident&quot;, &quot;peer&quot;, &quot;pam&quot;, &quot;ldap&quot;, &quot;radius&quot; or &quot;cert&quot;.<br># Note that &quot;password&quot; sends passwords in clear text; &quot;md5&quot; or<br># &quot;scram-sha-256&quot; are preferred since they send encrypted passwords.<br>#<br># OPTIONS are a set of options for the authentication in the format<br># NAME=VALUE.  The available options depend on the different<br># authentication methods -- refer to the &quot;Client Authentication&quot;<br># section in the documentation for a list of which options are<br># available for which authentication methods.<br>#<br># Database and user names containing spaces, commas, quotes and other<br># special characters must be quoted.  Quoting one of the keywords<br># &quot;all&quot;, &quot;sameuser&quot;, &quot;samerole&quot; or &quot;replication&quot; makes the name lose<br># its special character, and just match a database or username with<br># that name.<br>#<br># This file is read on server startup and when the server receives a<br># SIGHUP signal.  If you edit the file on a running system, you have to<br># SIGHUP the server for the changes to take effect, run &quot;pg_ctl reload&quot;,<br># or execute &quot;SELECT pg_reload_conf()&quot;.<br>#<br># Put your actual configuration here<br># ----------------------------------<br>#<br># If you want to allow non-local connections, you need to add more<br># &quot;host&quot; records.  In that case you will also need to make PostgreSQL<br># listen on a non-local interface via the listen_addresses<br># configuration parameter, or via the -i or -h command line switches.<br># CAUTION: Configuring the system for local &quot;trust&quot; authentication<br># allows any local user to connect as any PostgreSQL user, including<br># the database superuser.  If you do not trust all your local users,<br># use another authentication method.<br><br># TYPE  DATABASE        USER            ADDRESS                 METHOD<br># &quot;local&quot; is for Unix domain socket connections only<br>local   all             all                                     trust<br># IPv4 local connections:<br>host    all             all             127.0.0.1/32            trust<br># IPv6 local connections:<br>host    all             all             ::1/128                 trust<br># Allow replication connections from localhost, by a user with the<br># replication privilege.<br>local   replication     all                                     trust<br>host    replication     all             127.0.0.1/32            trust<br>host    replication     all             ::1/128                 trust<br>host all all 0.0.0.0/0 md5</pre><p>To save it in nano just hit Ctl + O and Enter and Ctl + X to exit.</p><p>Then we will edit the postgres.conf file. Just open it in nano and enter:</p><pre># -----------------------------<br># PostgreSQL configuration file<br># -----------------------------<br>#<br># This file consists of lines of the form:<br>#<br>#   name = value<br>#<br># (The &quot;=&quot; is optional.)  Whitespace may be used.  Comments are introduced with<br># &quot;#&quot; anywhere on a line.  The complete list of parameter names and allowed<br># values can be found in the PostgreSQL documentation.<br>#<br># The commented-out settings shown in this file represent the default values.<br># Re-commenting a setting is NOT sufficient to revert it to the default value;<br># you need to reload the server.<br>#<br># This file is read on server startup and when the server receives a SIGHUP<br># signal.  If you edit the file on a running system, you have to SIGHUP the<br># server for the changes to take effect, run &quot;pg_ctl reload&quot;, or execute<br># &quot;SELECT pg_reload_conf()&quot;.  Some parameters, which are marked below,<br># require a server shutdown and restart to take effect.<br>#<br># Any parameter can also be given as a command-line option to the server, e.g.,<br># &quot;postgres -c log_connections=on&quot;.  Some parameters can be changed at run time<br># with the &quot;SET&quot; SQL command.<br>#<br># Memory units:  B  = bytes            Time units:  us  = microseconds<br>#                kB = kilobytes                     ms  = milliseconds<br>#                MB = megabytes                     s   = seconds<br>#                GB = gigabytes                     min = minutes<br>#                TB = terabytes                     h   = hours<br>#                                                   d   = days<br>#------------------------------------------------------------------------------<br># FILE LOCATIONS<br>#------------------------------------------------------------------------------<br># The default values of these variables are driven from the -D command-line<br># option or PGDATA environment variable, represented here as ConfigDir.<br>#data_directory = &#39;ConfigDir&#39;  # use data in another directory<br>     # (change requires restart)<br>hba_file = &#39;/etc/postgresql/pg_hba.conf&#39;<br>     # (change requires restart)<br>#ident_file = &#39;ConfigDir/pg_ident.conf&#39; # ident configuration file<br>     # (change requires restart)<br># If external_pid_file is not explicitly set, no extra PID file is written.<br>#external_pid_file = &#39;&#39;   # write an extra PID file<br>     # (change requires restart)<br><br>#------------------------------------------------------------------------------<br># CONNECTIONS AND AUTHENTICATION<br>#------------------------------------------------------------------------------<br># - Connection Settings -<br>listen_addresses = &#39;*&#39;<br>     # comma-separated list of addresses;<br>     # defaults to &#39;localhost&#39;; use &#39;*&#39; for all<br>     # (change requires restart)<br>#port = 5432    # (change requires restart)<br>max_connections = 100   # (change requires restart)<br>#superuser_reserved_connections = 3 # (change requires restart)<br>#unix_socket_directories = &#39;/var/run/postgresql&#39; # comma-separated list of directories<br>     # (change requires restart)<br>#unix_socket_group = &#39;&#39;   # (change requires restart)<br>#unix_socket_permissions = 0777  # begin with 0 to use octal notation<br>     # (change requires restart)<br>#bonjour = off    # advertise server via Bonjour<br>     # (change requires restart)<br>#bonjour_name = &#39;&#39;   # defaults to the computer name<br>     # (change requires restart)<br># - TCP settings -<br># see &quot;man tcp&quot; for details<br>#tcp_keepalives_idle = 0  # TCP_KEEPIDLE, in seconds;<br>     # 0 selects the system default<br>#tcp_keepalives_interval = 0  # TCP_KEEPINTVL, in seconds;<br>     # 0 selects the system default<br>#tcp_keepalives_count = 0  # TCP_KEEPCNT;<br>     # 0 selects the system default<br>#tcp_user_timeout = 0   # TCP_USER_TIMEOUT, in milliseconds;<br>     # 0 selects the system default<br># - Authentication -<br>#authentication_timeout = 1min  # 1s-600s<br>#password_encryption = md5  # md5 or scram-sha-256<br>#db_user_namespace = off<br># GSSAPI using Kerberos<br>#krb_server_keyfile = &#39;FILE:${sysconfdir}/krb5.keytab&#39;<br>#krb_caseins_users = off<br># - SSL -<br>#ssl = off<br>#ssl_ca_file = &#39;&#39;<br>#ssl_cert_file = &#39;server.crt&#39;<br>#ssl_crl_file = &#39;&#39;<br>#ssl_key_file = &#39;server.key&#39;<br>#ssl_ciphers = &#39;HIGH:MEDIUM:+3DES:!aNULL&#39; # allowed SSL ciphers<br>#ssl_prefer_server_ciphers = on<br>#ssl_ecdh_curve = &#39;prime256v1&#39;<br>#ssl_min_protocol_version = &#39;TLSv1.2&#39;<br>#ssl_max_protocol_version = &#39;&#39;<br>#ssl_dh_params_file = &#39;&#39;<br>#ssl_passphrase_command = &#39;&#39;<br>#ssl_passphrase_command_supports_reload = off<br><br>#------------------------------------------------------------------------------<br># RESOURCE USAGE (except WAL)<br>#------------------------------------------------------------------------------<br># - Memory -<br>shared_buffers = 128MB   # min 128kB<br>     # (change requires restart)<br>#huge_pages = try   # on, off, or try<br>     # (change requires restart)<br>#temp_buffers = 8MB   # min 800kB<br>#max_prepared_transactions = 0  # zero disables the feature<br>     # (change requires restart)<br># Caution: it is not advisable to set max_prepared_transactions nonzero unless<br># you actively intend to use prepared transactions.<br>#work_mem = 4MB    # min 64kB<br>#hash_mem_multiplier = 1.0  # 1-1000.0 multiplier on hash table work_mem<br>#maintenance_work_mem = 64MB  # min 1MB<br>#autovacuum_work_mem = -1  # min 1MB, or -1 to use maintenance_work_mem<br>#logical_decoding_work_mem = 64MB # min 64kB<br>#max_stack_depth = 2MB   # min 100kB<br>#shared_memory_type = mmap  # the default is the first option<br>     # supported by the operating system:<br>     #   mmap<br>     #   sysv<br>     #   windows<br>     # (change requires restart)<br>dynamic_shared_memory_type = posix # the default is the first option<br>     # supported by the operating system:<br>     #   posix<br>     #   sysv<br>     #   windows<br>     #   mmap<br>     # (change requires restart)<br># - Disk -<br>#temp_file_limit = -1   # limits per-process temp file space<br>     # in kilobytes, or -1 for no limit<br># - Kernel Resources -<br>#max_files_per_process = 1000  # min 64<br>     # (change requires restart)<br># - Cost-Based Vacuum Delay -<br>#vacuum_cost_delay = 0   # 0-100 milliseconds (0 disables)<br>#vacuum_cost_page_hit = 1  # 0-10000 credits<br>#vacuum_cost_page_miss = 10  # 0-10000 credits<br>#vacuum_cost_page_dirty = 20  # 0-10000 credits<br>#vacuum_cost_limit = 200  # 1-10000 credits<br># - Background Writer -<br>#bgwriter_delay = 200ms   # 10-10000ms between rounds<br>#bgwriter_lru_maxpages = 100  # max buffers written/round, 0 disables<br>#bgwriter_lru_multiplier = 2.0  # 0-10.0 multiplier on buffers scanned/round<br>#bgwriter_flush_after = 512kB  # measured in pages, 0 disables<br># - Asynchronous Behavior -<br>#effective_io_concurrency = 1  # 1-1000; 0 disables prefetching<br>#maintenance_io_concurrency = 10 # 1-1000; 0 disables prefetching<br>#max_worker_processes = 8  # (change requires restart)<br>#max_parallel_maintenance_workers = 2 # limited by max_parallel_workers<br>#max_parallel_workers_per_gather = 2 # limited by max_parallel_workers<br>#parallel_leader_participation = on<br>#max_parallel_workers = 8  # number of max_worker_processes that<br>     # can be used in parallel operations<br>#old_snapshot_threshold = -1  # 1min-60d; -1 disables; 0 is immediate<br>     # (change requires restart)<br>#backend_flush_after = 0  # measured in pages, 0 disables<br><br>#------------------------------------------------------------------------------<br># WRITE-AHEAD LOG<br>#------------------------------------------------------------------------------<br># - Settings -<br>#wal_level = replica   # minimal, replica, or logical<br>     # (change requires restart)<br>#fsync = on    # flush data to disk for crash safety<br>     # (turning this off can cause<br>     # unrecoverable data corruption)<br>#synchronous_commit = on  # synchronization level;<br>     # off, local, remote_write, remote_apply, or on<br>#wal_sync_method = fsync  # the default is the first option<br>     # supported by the operating system:<br>     #   open_datasync<br>     #   fdatasync (default on Linux and FreeBSD)<br>     #   fsync<br>     #   fsync_writethrough<br>     #   open_sync<br>#full_page_writes = on   # recover from partial page writes<br>#wal_compression = off   # enable compression of full-page writes<br>#wal_log_hints = off   # also do full page writes of non-critical updates<br>     # (change requires restart)<br>#wal_init_zero = on   # zero-fill new WAL files<br>#wal_recycle = on   # recycle WAL files<br>#wal_buffers = -1   # min 32kB, -1 sets based on shared_buffers<br>     # (change requires restart)<br>#wal_writer_delay = 200ms  # 1-10000 milliseconds<br>#wal_writer_flush_after = 1MB  # measured in pages, 0 disables<br>#wal_skip_threshold = 2MB<br>#commit_delay = 0   # range 0-100000, in microseconds<br>#commit_siblings = 5   # range 1-1000<br># - Checkpoints -<br>#checkpoint_timeout = 5min  # range 30s-1d<br>max_wal_size = 1GB<br>min_wal_size = 80MB<br>#checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0<br>#checkpoint_flush_after = 256kB  # measured in pages, 0 disables<br>#checkpoint_warning = 30s  # 0 disables<br># - Archiving -<br>#archive_mode = off  # enables archiving; off, on, or always<br>    # (change requires restart)<br>#archive_command = &#39;&#39;  # command to use to archive a logfile segment<br>    # placeholders: %p = path of file to archive<br>    #               %f = file name only<br>    # e.g. &#39;test ! -f /mnt/server/archivedir/%f &amp;&amp; cp %p /mnt/server/archivedir/%f&#39;<br>#archive_timeout = 0  # force a logfile segment switch after this<br>    # number of seconds; 0 disables<br># - Archive Recovery -<br># These are only used in recovery mode.<br>#restore_command = &#39;&#39;  # command to use to restore an archived logfile segment<br>    # placeholders: %p = path of file to restore<br>    #               %f = file name only<br>    # e.g. &#39;cp /mnt/server/archivedir/%f %p&#39;<br>    # (change requires restart)<br>#archive_cleanup_command = &#39;&#39; # command to execute at every restartpoint<br>#recovery_end_command = &#39;&#39; # command to execute at completion of recovery<br># - Recovery Target -<br># Set these only when performing a targeted recovery.<br>#recovery_target = &#39;&#39;  # &#39;immediate&#39; to end recovery as soon as a<br>                                # consistent state is reached<br>    # (change requires restart)<br>#recovery_target_name = &#39;&#39; # the named restore point to which recovery will proceed<br>    # (change requires restart)<br>#recovery_target_time = &#39;&#39; # the time stamp up to which recovery will proceed<br>    # (change requires restart)<br>#recovery_target_xid = &#39;&#39; # the transaction ID up to which recovery will proceed<br>    # (change requires restart)<br>#recovery_target_lsn = &#39;&#39; # the WAL LSN up to which recovery will proceed<br>    # (change requires restart)<br>#recovery_target_inclusive = on # Specifies whether to stop:<br>    # just after the specified recovery target (on)<br>    # just before the recovery target (off)<br>    # (change requires restart)<br>#recovery_target_timeline = &#39;latest&#39; # &#39;current&#39;, &#39;latest&#39;, or timeline ID<br>    # (change requires restart)<br>#recovery_target_action = &#39;pause&#39; # &#39;pause&#39;, &#39;promote&#39;, &#39;shutdown&#39;<br>    # (change requires restart)<br><br>#------------------------------------------------------------------------------<br># REPLICATION<br>#------------------------------------------------------------------------------<br># - Sending Servers -<br># Set these on the master and on any standby that will send replication data.<br>#max_wal_senders = 10  # max number of walsender processes<br>    # (change requires restart)<br>#wal_keep_size = 0  # in megabytes; 0 disables<br>#max_slot_wal_keep_size = -1 # in megabytes; -1 disables<br>#wal_sender_timeout = 60s # in milliseconds; 0 disables<br>#max_replication_slots = 10 # max number of replication slots<br>    # (change requires restart)<br>#track_commit_timestamp = off # collect timestamp of transaction commit<br>    # (change requires restart)<br># - Master Server -<br># These settings are ignored on a standby server.<br>#synchronous_standby_names = &#39;&#39; # standby servers that provide sync rep<br>    # method to choose sync standbys, number of sync standbys,<br>    # and comma-separated list of application_name<br>    # from standby(s); &#39;*&#39; = all<br>#vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed<br># - Standby Servers -<br># These settings are ignored on a master server.<br>#primary_conninfo = &#39;&#39;   # connection string to sending server<br>#primary_slot_name = &#39;&#39;   # replication slot on sending server<br>#promote_trigger_file = &#39;&#39;  # file name whose presence ends recovery<br>#hot_standby = on   # &quot;off&quot; disallows queries during recovery<br>     # (change requires restart)<br>#max_standby_archive_delay = 30s # max delay before canceling queries<br>     # when reading WAL from archive;<br>     # -1 allows indefinite delay<br>#max_standby_streaming_delay = 30s # max delay before canceling queries<br>     # when reading streaming WAL;<br>     # -1 allows indefinite delay<br>#wal_receiver_create_temp_slot = off # create temp slot if primary_slot_name<br>     # is not set<br>#wal_receiver_status_interval = 10s # send replies at least this often<br>     # 0 disables<br>#hot_standby_feedback = off  # send info from standby to prevent<br>     # query conflicts<br>#wal_receiver_timeout = 60s  # time that receiver waits for<br>     # communication from master<br>     # in milliseconds; 0 disables<br>#wal_retrieve_retry_interval = 5s # time to wait before retrying to<br>     # retrieve WAL after a failed attempt<br>#recovery_min_apply_delay = 0  # minimum delay for applying changes during recovery<br># - Subscribers -<br># These settings are ignored on a publisher.<br>#max_logical_replication_workers = 4 # taken from max_worker_processes<br>     # (change requires restart)<br>#max_sync_workers_per_subscription = 2 # taken from max_logical_replication_workers<br><br>#------------------------------------------------------------------------------<br># QUERY TUNING<br>#------------------------------------------------------------------------------<br># - Planner Method Configuration -<br>#enable_bitmapscan = on<br>#enable_hashagg = on<br>#enable_hashjoin = on<br>#enable_indexscan = on<br>#enable_indexonlyscan = on<br>#enable_material = on<br>#enable_mergejoin = on<br>#enable_nestloop = on<br>#enable_parallel_append = on<br>#enable_seqscan = on<br>#enable_sort = on<br>#enable_incremental_sort = on<br>#enable_tidscan = on<br>#enable_partitionwise_join = off<br>#enable_partitionwise_aggregate = off<br>#enable_parallel_hash = on<br>#enable_partition_pruning = on<br># - Planner Cost Constants -<br>#seq_page_cost = 1.0   # measured on an arbitrary scale<br>#random_page_cost = 4.0   # same scale as above<br>#cpu_tuple_cost = 0.01   # same scale as above<br>#cpu_index_tuple_cost = 0.005  # same scale as above<br>#cpu_operator_cost = 0.0025  # same scale as above<br>#parallel_tuple_cost = 0.1  # same scale as above<br>#parallel_setup_cost = 1000.0 # same scale as above<br>#jit_above_cost = 100000  # perform JIT compilation if available<br>     # and query more expensive than this;<br>     # -1 disables<br>#jit_inline_above_cost = 500000  # inline small functions if query is<br>     # more expensive than this; -1 disables<br>#jit_optimize_above_cost = 500000 # use expensive JIT optimizations if<br>     # query is more expensive than this;<br>     # -1 disables<br>#min_parallel_table_scan_size = 8MB<br>#min_parallel_index_scan_size = 512kB<br>#effective_cache_size = 4GB<br># - Genetic Query Optimizer -<br>#geqo = on<br>#geqo_threshold = 12<br>#geqo_effort = 5   # range 1-10<br>#geqo_pool_size = 0   # selects default based on effort<br>#geqo_generations = 0   # selects default based on effort<br>#geqo_selection_bias = 2.0  # range 1.5-2.0<br>#geqo_seed = 0.0   # range 0.0-1.0<br># - Other Planner Options -<br>#default_statistics_target = 100 # range 1-10000<br>#constraint_exclusion = partition # on, off, or partition<br>#cursor_tuple_fraction = 0.1  # range 0.0-1.0<br>#from_collapse_limit = 8<br>#join_collapse_limit = 8  # 1 disables collapsing of explicit<br>     # JOIN clauses<br>#force_parallel_mode = off<br>#jit = on    # allow JIT compilation<br>#plan_cache_mode = auto   # auto, force_generic_plan or<br>     # force_custom_plan<br><br>#------------------------------------------------------------------------------<br># REPORTING AND LOGGING<br>#------------------------------------------------------------------------------<br># - Where to Log -<br>#log_destination = &#39;stderr&#39;  # Valid values are combinations of<br>     # stderr, csvlog, syslog, and eventlog,<br>     # depending on platform.  csvlog<br>     # requires logging_collector to be on.<br># This is used when logging to stderr:<br>#logging_collector = off  # Enable capturing of stderr and csvlog<br>     # into log files. Required to be on for<br>     # csvlogs.<br>     # (change requires restart)<br># These are only used if logging_collector is on:<br>#log_directory = &#39;log&#39;   # directory where log files are written,<br>     # can be absolute or relative to PGDATA<br>#log_filename = &#39;postgresql-%Y-%m-%d_%H%M%S.log&#39; # log file name pattern,<br>     # can include strftime() escapes<br>#log_file_mode = 0600   # creation mode for log files,<br>     # begin with 0 to use octal notation<br>#log_truncate_on_rotation = off  # If on, an existing log file with the<br>     # same name as the new log file will be<br>     # truncated rather than appended to.<br>     # But such truncation only occurs on<br>     # time-driven rotation, not on restarts<br>     # or size-driven rotation.  Default is<br>     # off, meaning append to existing files<br>     # in all cases.<br>#log_rotation_age = 1d   # Automatic rotation of logfiles will<br>     # happen after that time.  0 disables.<br>#log_rotation_size = 10MB  # Automatic rotation of logfiles will<br>     # happen after that much log output.<br>     # 0 disables.<br># These are relevant when logging to syslog:<br>#syslog_facility = &#39;LOCAL0&#39;<br>#syslog_ident = &#39;postgres&#39;<br>#syslog_sequence_numbers = on<br>#syslog_split_messages = on<br># This is only relevant when logging to eventlog (win32):<br># (change requires restart)<br>#event_source = &#39;PostgreSQL&#39;<br># - When to Log -<br>#log_min_messages = warning  # values in order of decreasing detail:<br>     #   debug5<br>     #   debug4<br>     #   debug3<br>     #   debug2<br>     #   debug1<br>     #   info<br>     #   notice<br>     #   warning<br>     #   error<br>     #   log<br>     #   fatal<br>     #   panic<br>#log_min_error_statement = error # values in order of decreasing detail:<br>     #   debug5<br>     #   debug4<br>     #   debug3<br>     #   debug2<br>     #   debug1<br>     #   info<br>     #   notice<br>     #   warning<br>     #   error<br>     #   log<br>     #   fatal<br>     #   panic (effectively off)<br>#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements<br>     # and their durations, &gt; 0 logs only<br>     # statements running at least this number<br>     # of milliseconds<br>#log_min_duration_sample = -1  # -1 is disabled, 0 logs a sample of statements<br>     # and their durations, &gt; 0 logs only a sample of<br>     # statements running at least this number<br>     # of milliseconds;<br>     # sample fraction is determined by log_statement_sample_rate<br>#log_statement_sample_rate = 1.0 # fraction of logged statements exceeding<br>     # log_min_duration_sample to be logged;<br>     # 1.0 logs all such statements, 0.0 never logs<br><br>#log_transaction_sample_rate = 0.0 # fraction of transactions whose statements<br>     # are logged regardless of their duration; 1.0 logs all<br>     # statements from all transactions, 0.0 never logs<br># - What to Log -<br>#debug_print_parse = off<br>#debug_print_rewritten = off<br>#debug_print_plan = off<br>#debug_pretty_print = on<br>#log_checkpoints = off<br>#log_connections = off<br>#log_disconnections = off<br>#log_duration = off<br>#log_error_verbosity = default  # terse, default, or verbose messages<br>#log_hostname = off<br>#log_line_prefix = &#39;%m [%p] &#39;  # special values:<br>     #   %a = application name<br>     #   %u = user name<br>     #   %d = database name<br>     #   %r = remote host and port<br>     #   %h = remote host<br>     #   %b = backend type<br>     #   %p = process ID<br>     #   %t = timestamp without milliseconds<br>     #   %m = timestamp with milliseconds<br>     #   %n = timestamp with milliseconds (as a Unix epoch)<br>     #   %i = command tag<br>     #   %e = SQL state<br>     #   %c = session ID<br>     #   %l = session line number<br>     #   %s = session start timestamp<br>     #   %v = virtual transaction ID<br>     #   %x = transaction ID (0 if none)<br>     #   %q = stop here in non-session<br>     #        processes<br>     #   %% = &#39;%&#39;<br>     # e.g. &#39;&lt;%u%%%d&gt; &#39;<br>#log_lock_waits = off   # log lock waits &gt;= deadlock_timeout<br>#log_parameter_max_length = -1  # when logging statements, limit logged<br>     # bind-parameter values to N bytes;<br>     # -1 means print in full, 0 disables<br>#log_parameter_max_length_on_error = 0 # when logging an error, limit logged<br>     # bind-parameter values to N bytes;<br>     # -1 means print in full, 0 disables<br>#log_statement = &#39;none&#39;   # none, ddl, mod, all<br>#log_replication_commands = off<br>#log_temp_files = -1   # log temporary files equal or larger<br>     # than the specified size in kilobytes;<br>     # -1 disables, 0 logs all temp files<br>log_timezone = &#39;Etc/UTC&#39;<br>#------------------------------------------------------------------------------<br># PROCESS TITLE<br>#------------------------------------------------------------------------------<br>#cluster_name = &#39;&#39;   # added to process titles if nonempty<br>     # (change requires restart)<br>#update_process_title = on<br><br>#------------------------------------------------------------------------------<br># STATISTICS<br>#------------------------------------------------------------------------------<br># - Query and Index Statistics Collector -<br>#track_activities = on<br>#track_counts = on<br>#track_io_timing = off<br>#track_functions = none   # none, pl, all<br>#track_activity_query_size = 1024 # (change requires restart)<br>#stats_temp_directory = &#39;pg_stat_tmp&#39;<br><br># - Monitoring -<br>#log_parser_stats = off<br>#log_planner_stats = off<br>#log_executor_stats = off<br>#log_statement_stats = off<br><br>#------------------------------------------------------------------------------<br># AUTOVACUUM<br>#------------------------------------------------------------------------------<br>#autovacuum = on   # Enable autovacuum subprocess?  &#39;on&#39;<br>     # requires track_counts to also be on.<br>#log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and<br>     # their durations, &gt; 0 logs only<br>     # actions running at least this number<br>     # of milliseconds.<br>#autovacuum_max_workers = 3  # max number of autovacuum subprocesses<br>     # (change requires restart)<br>#autovacuum_naptime = 1min  # time between autovacuum runs<br>#autovacuum_vacuum_threshold = 50 # min number of row updates before<br>     # vacuum<br>#autovacuum_vacuum_insert_threshold = 1000 # min number of row inserts<br>     # before vacuum; -1 disables insert<br>     # vacuums<br>#autovacuum_analyze_threshold = 50 # min number of row updates before<br>     # analyze<br>#autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum<br>#autovacuum_vacuum_insert_scale_factor = 0.2 # fraction of inserts over table<br>     # size before insert vacuum<br>#autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze<br>#autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum<br>     # (change requires restart)<br>#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age<br>     # before forced vacuum<br>     # (change requires restart)<br>#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for<br>     # autovacuum, in milliseconds;<br>     # -1 means use vacuum_cost_delay<br>#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for<br>     # autovacuum, -1 means use<br>     # vacuum_cost_limit<br><br>#------------------------------------------------------------------------------<br># CLIENT CONNECTION DEFAULTS<br>#------------------------------------------------------------------------------<br># - Statement Behavior -<br>#client_min_messages = notice  # values in order of decreasing detail:<br>     #   debug5<br>     #   debug4<br>     #   debug3<br>     #   debug2<br>     #   debug1<br>     #   log<br>     #   notice<br>     #   warning<br>     #   error<br>#search_path = &#39;&quot;$user&quot;, public&#39; # schema names<br>#row_security = on<br>#default_tablespace = &#39;&#39;  # a tablespace name, &#39;&#39; uses the default<br>#temp_tablespaces = &#39;&#39;   # a list of tablespace names, &#39;&#39; uses<br>     # only default tablespace<br>#default_table_access_method = &#39;heap&#39;<br>#check_function_bodies = on<br>#default_transaction_isolation = &#39;read committed&#39;<br>#default_transaction_read_only = off<br>#default_transaction_deferrable = off<br>#session_replication_role = &#39;origin&#39;<br>#statement_timeout = 0   # in milliseconds, 0 is disabled<br>#lock_timeout = 0   # in milliseconds, 0 is disabled<br>#idle_in_transaction_session_timeout = 0 # in milliseconds, 0 is disabled<br>#vacuum_freeze_min_age = 50000000<br>#vacuum_freeze_table_age = 150000000<br>#vacuum_multixact_freeze_min_age = 5000000<br>#vacuum_multixact_freeze_table_age = 150000000<br>#vacuum_cleanup_index_scale_factor = 0.1 # fraction of total number of tuples<br>      # before index cleanup, 0 always performs<br>      # index cleanup<br>#bytea_output = &#39;hex&#39;   # hex, escape<br>#xmlbinary = &#39;base64&#39;<br>#xmloption = &#39;content&#39;<br>#gin_fuzzy_search_limit = 0<br>#gin_pending_list_limit = 4MB<br># - Locale and Formatting -<br>datestyle = &#39;iso, mdy&#39;<br>#intervalstyle = &#39;postgres&#39;<br>timezone = &#39;Etc/UTC&#39;<br>#timezone_abbreviations = &#39;Default&#39;     # Select the set of available time zone<br>     # abbreviations.  Currently, there are<br>     #   Default<br>     #   Australia (historical usage)<br>     #   India<br>     # You can create your own file in<br>     # share/timezonesets/.<br>#extra_float_digits = 1   # min -15, max 3; any value &gt;0 actually<br>     # selects precise output mode<br>#client_encoding = sql_ascii  # actually, defaults to database<br>     # encoding<br># These settings are initialized by initdb, but they can be changed.<br>lc_messages = &#39;en_US.utf8&#39;   # locale for system error message<br>     # strings<br>lc_monetary = &#39;en_US.utf8&#39;   # locale for monetary formatting<br>lc_numeric = &#39;en_US.utf8&#39;   # locale for number formatting<br>lc_time = &#39;en_US.utf8&#39;    # locale for time formatting<br># default configuration for text search<br>default_text_search_config = &#39;pg_catalog.english&#39;<br># - Shared Library Preloading -<br>#shared_preload_libraries = &#39;&#39; # (change requires restart)<br>#local_preload_libraries = &#39;&#39;<br>#session_preload_libraries = &#39;&#39;<br>#jit_provider = &#39;llvmjit&#39;  # JIT library to use<br># - Other Defaults -<br>#dynamic_library_path = &#39;$libdir&#39;<br>#extension_destdir = &#39;&#39;   # prepend path when loading extensions<br>     # and shared objects (added by Debian)<br><br>#------------------------------------------------------------------------------<br># LOCK MANAGEMENT<br>#------------------------------------------------------------------------------<br>#deadlock_timeout = 1s<br>#max_locks_per_transaction = 64  # min 10<br>     # (change requires restart)<br>#max_pred_locks_per_transaction = 64 # min 10<br>     # (change requires restart)<br>#max_pred_locks_per_relation = -2 # negative values mean<br>     # (max_pred_locks_per_transaction<br>     #  / -max_pred_locks_per_relation) - 1<br>#max_pred_locks_per_page = 2            # min 0<br><br>#------------------------------------------------------------------------------<br># VERSION AND PLATFORM COMPATIBILITY<br>#------------------------------------------------------------------------------<br># - Previous PostgreSQL Versions -<br>#array_nulls = on<br>#backslash_quote = safe_encoding # on, off, or safe_encoding<br>#escape_string_warning = on<br>#lo_compat_privileges = off<br>#operator_precedence_warning = off<br>#quote_all_identifiers = off<br>#standard_conforming_strings = on<br>#synchronize_seqscans = on<br># - Other Platforms and Clients -<br>#transform_null_equals = off<br><br>#------------------------------------------------------------------------------<br># ERROR HANDLING<br>#------------------------------------------------------------------------------<br>#exit_on_error = off   # terminate session on any error?<br>#restart_after_crash = on  # reinitialize after backend crash?<br>#data_sync_retry = off   # retry or panic on failure to fsync<br>     # data?<br>     # (change requires restart)<br><br>#------------------------------------------------------------------------------<br># CONFIG FILE INCLUDES<br>#------------------------------------------------------------------------------<br># These options allow settings to be loaded from files other than the<br># default postgresql.conf.  Note that these are directives, not variable<br># assignments, so they can usefully be given more than once.<br>#include_dir = &#39;...&#39;   # include files ending in &#39;.conf&#39; from<br>     # a directory, e.g., &#39;conf.d&#39;<br>#include_if_exists = &#39;...&#39;  # include file only if it exists<br>#include = &#39;...&#39;   # include file<br><br>#------------------------------------------------------------------------------<br># CUSTOMIZED OPTIONS<br>#------------------------------------------------------------------------------<br># Add settings for extensions here</pre><p><a href="https://systemweakness.com/installing-wazuh-on-ubuntu-87e89b7ce5a5">Installing Wazuh on Ubuntu</a></p><h3>Database Security Notes:</h3><p>Be sure your server firewall is set to DENY ALL external traffic to the ports your database is listening on, as this database configuration ALLOWS password based connections from all IPs. This is because I was having issues with connecting to the database container from within the keycloak container. I will release an update as soon as I figure one out. Please note that docker does not respect ufw firewall rules see: <a href="https://askubuntu.com/questions/652556/uncomplicated-firewall-ufw-is-not-blocking-anything-when-using-docker"><em>https://askubuntu.com/questions/652556/uncomplicated-firewall-ufw-is-not-blocking-anything-when-using-docker. </em></a>Be sure to set your firewall rules on the server level.</p><p>P.S. Also be sure your database password is STRONG.</p><p><a href="https://medium.com/@fieryphoenixtech/using-keycloak-as-an-iam-provider-for-wordpress-e10bb5962b5f">Using Keycloak as an IAM Provider for WordPress</a></p><h3>Container Config</h3><p>Next we will navigate back to our main KeycloakTraefik directory and edit our compose.yaml file.</p><pre>cd .. &amp;&amp; nano compose.yaml</pre><p>Just enter:</p><pre>services:<br>  traefik:<br>    image: traefik:v3.1<br>    command:<br>      - &quot;--api.insecure=false&quot;  # Enables Traefik&#39;s dashboard (for testing)<br>      - &quot;--providers.docker=true&quot;<br>      - &quot;--providers.docker.exposedbydefault=false&quot;  # Disable auto-discovery<br>      - &quot;--entrypoints.web.address=:80&quot;         # HTTP entry point<br>      - &quot;--entrypoints.websecure.address=:443&quot;  # HTTPS entry point<br>      - &quot;--entryPoints.web.http.redirections.entryPoint.to=websecure&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.httpchallenge=true&quot;  # Enable Let&#39;s Encrypt for SSL<br>      - &quot;--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web&quot;<br>      - &quot;--certificatesresolvers.myresolver.acme.email=me@example.tech&quot;  # Email for Let&#39;s Encrypt<br>      - &quot;--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json&quot;<br>      - &quot;--log.filePath=/var/log/traefik/traefik.log&quot;  # Log file within mounted volume<br>      - &quot;--log.level=WARN&quot;                             # Set log level to WARN<br>    labels:<br>      - &quot;traefik.http.middlewares.middleware12.headers.sslforcehost=true&quot;<br>      - &quot;traefik.http.middlewares.middleware12.headers.sslhost=auth.example.tech&quot;<br>    ports:<br>      - &quot;80:80&quot;   # HTTP<br>      - &quot;443:443&quot; # HTTPS<br>    volumes:<br>      - &quot;/var/run/docker.sock:/var/run/docker.sock:ro&quot;  # For Docker provider<br>      - &quot;./letsencrypt:/letsencrypt&quot;  # Persist Let&#39;s Encrypt certificates<br>      - traefik-logs:/var/log/traefik<br>    networks:<br>      - web<br>    restart: always<br>  keycloak:<br>    image: quay.io/keycloak/keycloak:latest  # Pre-built Keycloak Docker image latest version<br>    environment:<br>      - KC_DB=postgres  #Uses Postgres for DB<br>      - KC_DB_URL=jdbc:postgresql://db:5432/keycloak<br>      - KC_DB_USERNAME=${KC_DB_USERNAME}<br>      - KC_FEATURES=hostname:v2    # Add other features as necessary see docs<br>      - KC_DB_PASSWORD=${KC_DB_PASSWORD}<br>      - KC_HOSTNAME=auth.example.tech<br>      - KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN}<br>      - KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD}<br>      - KC_HTTP_PORT=8080<br>      - KC_HTTP_ENABLED=true<br>      - KC_HEALTH_ENABLED=false   # Enable health as needed see docs<br>      - KC_PROXY_HEADERS=xforwarded #CAUTION see docs on forwarding<br>      - KC_LOG=console  # See docs on logs<br>      - KC_LOG_LEVEL=WARN  # For debugging set to DEBUG see docs on logs<br>      - KC_HOSTNAME_STRICT=true<br>    labels:<br>      - &quot;traefik.enable=true&quot;<br>      - &quot;traefik.http.routers.my-container.rule=Host(`auth.example.tech`)&quot;  # Route for your domain<br>      - &quot;traefik.http.routers.my-container.entrypoints=websecure&quot;<br>      - &quot;traefik.http.routers.my-container.tls.certresolver=myresolver&quot;  # Use Let&#39;s Encrypt for SSL<br>      - &quot;traefik.http.services.my-container.loadbalancer.server.port=8080&quot;  # Route to port 8080<br>    networks:<br>      - web<br>    volumes:<br>      #- ./certs:/opt/keycloak/conf/ #use if you are not having traefik handle ssl<br>      - ./themes:/opt/keycloak/themes   #mounts an external directory for customizing themes<br>    ports:<br>      - &quot;8443:8443&quot;<br>      #- &quot;8080:8080&quot; #for use when using keycloak to handle ssl<br>    depends_on:<br>      - db<br>    command: &#39;start&#39;  # Other options include start-dev and start --optimized see docs<br>    restart: always<br>  db:<br>    image: postgres<br>    environment:<br>      - POSTGRES_DB=keycloak<br>      - POSTGRES_USER=${KC_DB_USERNAME}<br>      - POSTGRES_PASSWORD=${KC_DB_PASSWORD}<br>    volumes:<br>      - ./postgresconf/pg_hba.conf:/etc/postgresql/pg_hba.conf<br>      - ./postgresconf/postgresql.conf:/etc/postgresql/postgresql.conf<br>      - db-data:/var/lib/postgresql/data<br>    networks:<br>     - web<br>    restart: always<br>volumes:<br>  db-data:<br>  traefik-logs:<br>networks:<br>  web:<br>    driver: bridge</pre><p>Be sure to adjust the email to your real email, and the domain name of the site is referenced numerous times throughout the file (3x) so be sure to replace it (it is set to auth.example.tech) with your real domain.</p><p><a href="https://medium.com/@fieryphoenixtech/installing-virtualbox-on-debian-based-systems-da1c7235a5a9">Installing VirtualBox on Debian Based Systems</a></p><h3>.Env Config</h3><p>Then open the .env file and enter:</p><p><strong>NOTE:</strong> The .env file we created contains the admin credentials to our Keycloak Master Realm and the credentials to our database. Be sure all passwords are STRONG!</p><pre>KC_DB_USERNAME=keycloak<br>KC_DB_PASSWORD=mysecretpassword<br><br>KEYCLOAK_ADMIN=username<br>KEYCLOAK_ADMIN_PASSWORD=password</pre><p><a href="https://medium.com/@fieryphoenixtech/install-keycloak-with-postgres-traefik-in-dev-mode-f2f64630fcc7">Install Keycloak with Postgres &amp; Traefik in Dev Mode</a></p><h3>Starting Docker</h3><p>Now that we have created all of the prerequisite files etc. we can start our Keycloak Docker instance. Be sure your domain (or subdomain) you are using for your keycloak instance is pointing to your server and that ports 80 and 443 are open on the server.</p><p>To start our keycloak instance (the below command starts all of the containers -traefik, keycloak, and postgres), in the Docker/KeycloakTraefik directory run:</p><pre>docker compose up -d</pre><p>Give it about 40 seconds (depending on your server specs) and access your domain that we set in the docker compose.yaml file.</p><p>You should see the KeyCloak Master screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdsoc2qEp0Xq0WY5cyCCuw.png" /></figure><p>Please note that if you access the url before the ssl certificate has propagated properly you will get an annoying “Something Went Wrong” area. Open a private browser window and and try accessing the url from there, if it works in a private window, then clear your browser’s cache and access the url again, it should work this time! Also depending on the setup, if you continue to receive the “Something Went Wrong” error try playing around with the KC_PROXY_HEADERS variable in the compose.yaml file. You can find all config variables here: <a href="https://www.keycloak.org/server/all-config?options-filter=all"><em>Keycloak All Config</em></a></p><h3>Final Notes</h3><p>If you run into issues with this installation, or if I left something out, or if you see an area that could be improved please let me know! I am going to release more thorough documentation on the compose file in the near future as well a tutorial on troubleshooting docker containers. Phoenix Ignited offers premium Keycloak installation services, so feel more than free to send us a ping if you want us to install and configure your Keycloak instance! Just contact us either on our site -&gt; <a href="https://phoenixignited.tech/contact"><em>https://phoenixignited.tech/contact-us</em></a> or on linkedin -&gt; <a href="https://www.linkedin.com/company/phoenix-ignited/"><em>https://www.linkedin.com/company/phoenix-ignited/</em></a></p><p>That’s a wrap!</p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bae560821571" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Securing Ubuntu w/ Ansible]]></title>
            <link>https://systemweakness.com/automating-securing-ubuntu-w-ansible-09c243c696d8?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/09c243c696d8</guid>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[securing-ubuntu]]></category>
            <category><![CDATA[first-10-minutes]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 01:56:37 GMT</pubDate>
            <atom:updated>2024-11-14T14:23:14.865Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gP3oRcov_sKCGCo16LX6sQ.png" /></figure><ul><li>November 9, 2024</li></ul><p>In this lightning fast tutorial we’ll go through automating the first 10 minutes on an Ubuntu server (aka securing an Ubuntu server). The playbook includes installing various essential packages, creating users, copying users’ ssh pub keys to the remote servers, installing and configuring ufw and fail2ban, and hardening the ssh configuration. It requires that you have a remote sudo user on a remote machine with SSH Keys configured. You can see my tutorial here on configuring SSH Keys: <a href="https://phoenixignited.tech/setup-ssh-keys/"><em>https://phoenixignited.tech/setup-ssh-keys/</em></a></p><p>This tutorial aims to be beginner friendly without being an Intro to Ansible.</p><p>LINKS:</p><p>Official Ansible Site: <a href="https://www.ansible.com/"><em>https://www.ansible.com/</em></a></p><p>Ansible Docs: <a href="https://docs.ansible.com/"><em>https://docs.ansible.com/</em></a></p><p><a href="https://systemweakness.com/setup-ssh-keys-a8ca650309b3">Setup SSH Keys</a></p><h3>Installing Ansible</h3><p>Installing Ansible on Ubuntu is as easy as:</p><pre>sudo apt update<br>sudo apt install software-properties-common<br>sudo add-apt-repository --yes --update ppa:ansible/ansible<br>sudo apt install ansible</pre><p><a href="https://systemweakness.com/automate-ssh-hardening-with-ansible-47589f91be1f">Automate SSH Hardening with Ansible</a></p><h3>Creating Our Ansible Playbook</h3><p>Next we will setup our environment and create the necessary files:</p><pre>mkdir Ansible-AIO-Ubuntu-Secure &amp;&amp; cd Ansible-AIO-Ubuntu-Secure &amp;&amp; touch inventory.ini &amp;&amp; touch ansibleplay.yaml &amp;&amp; touch Hardened-SSHD-CONFIG &amp;&amp; touch JailConf</pre><p>Next we will add our host(s) in the inventory.ini file, these are the remote machines that Ansible will control, open the inventory.ini file with vim, nano, etc. and add:</p><pre>[myhosts]<br>Server_Name ansible_host=&lt;server_ip&gt; ansible_port=&lt;port&gt; ansible_user=&lt;username&gt; ansible_connection=ssh ansible_ssh_private_key_file=/path/to/private/ssh/key</pre><p>Replace all of the variables with your desired values, and repeat for as many hosts as needed.</p><p>Next open the ansibleplay.yaml file and enter:</p><pre>---<br>- name: All in One Ubuntu Server Setup Ansible Playbook<br>  hosts: myhosts<br>  become: yes<br>vars:<br>    packages:<br>      - vim<br>      - git<br>      - htop<br>      - curl<br>      - wget<br>      - unzip<br>      - build-essential<br>      - net-tools<br>      - tree<br>      - fail2ban<br>      - ufw<br>    jail_local_src: &quot;./JailConf&quot;  # Path to your jail.local file<br>    custom_port: 12345  # Replace this with your custom port number<br>    users:<br>      - username: alice<br>        is_admin: yes<br>        pub_key_path: &quot;/path/to/keys/alice.pub&quot;<br>      - username: bob<br>        is_admin: no<br>        pub_key_path: &quot;/path/to/keys/bob.pub&quot;<br>      - username: charlie<br>        is_admin: no<br>        pub_key_path: &quot;/path/to/keys/charlie.pub&quot;<br>  tasks:<br>    ## ENSURE SYSTEM IS DEBIAN BASED ##<br>    - name: Ensure the system is Debian/Ubuntu based<br>      debug:<br>        msg: &quot;This playbook is only supported on Debian/Ubuntu systems.&quot;<br>      when: ansible_facts[&#39;os_family&#39;] != &quot;Debian&quot;<br>      failed_when: ansible_facts[&#39;os_family&#39;] != &quot;Debian&quot;<br>    ## CREATE USER ACCOUNTS ##<br>    - name: Create user accounts<br>      user:<br>        name: &quot;{{ item.username }}&quot;<br>        state: present<br>        groups: &quot;{{ &#39;sudo&#39; if item.is_admin else &#39;&#39; }}&quot;<br>        shell: /bin/bash<br>      loop: &quot;{{ users }}&quot;<br>    - name: Create .ssh directory for each user<br>      file:<br>        path: &quot;/home/{{ item.username }}/.ssh&quot;<br>        state: directory<br>        owner: &quot;{{ item.username }}&quot;<br>        group: &quot;{{ item.username }}&quot;<br>        mode: &#39;0700&#39;<br>      loop: &quot;{{ users }}&quot;<br>    - name: Copy SSH public key from file for each user<br>      ansible.builtin.copy:<br>        src: &quot;{{ item.pub_key_path }}&quot;<br>        dest: &quot;/home/{{ item.username }}/.ssh/authorized_keys&quot;<br>        owner: &quot;{{ item.username }}&quot;<br>        group: &quot;{{ item.username }}&quot;<br>        mode: &#39;0600&#39;<br>      loop: &quot;{{ users }}&quot;<br>    - name: Ensure sudo group has passwordless sudo (for admins)<br>      lineinfile:<br>        path: /etc/sudoers<br>        regexp: &#39;^%sudo&#39;<br>        line: &#39;%sudo ALL=(ALL) NOPASSWD: ALL&#39;<br>        state: present<br>      when: item.is_admin | bool<br>      loop: &quot;{{ users }}&quot;<br>      loop_control:<br>        label: &quot;{{ item.username }}&quot;<br>    ## INSTALL COMMON PACKAGES ##<br>    - name: Update apt cache and upgrade system packages<br>      apt:<br>        update_cache: yes<br>        upgrade: dist<br>    - name: Install commonly used software packages<br>      apt:<br>        name: &quot;{{ packages }}&quot;<br>        state: present<br>        update_cache: yes<br>    ## CONFIGURE FAIL2BAN ##<br>    - name: Copy custom jail.local configuration file<br>      ansible.builtin.copy:<br>        src: &quot;{{ jail_local_src }}&quot;<br>        dest: /etc/fail2ban/jail.local<br>        owner: root<br>        group: root<br>        mode: &#39;0644&#39;<br>    - name: Ensure Fail2Ban is running and enabled on boot<br>      service:<br>        name: fail2ban<br>        state: started<br>        enabled: yes<br>    ## CONFIGURE UFW ##<br>    - name: Ensure UFW is enabled<br>      ufw:<br>        state: enabled<br>    - name: Allow custom port through UFW<br>      ufw:<br>        rule: allow<br>        port: &quot;{{ custom_port }}&quot;<br>        proto: tcp<br>    - name: Set UFW default policy to deny incoming<br>      ufw:<br>        state: enabled<br>        default: deny<br>        direction: incoming<br>    - name: Set UFW default policy to allow outgoing<br>      ufw:<br>        state: enabled<br>        default: allow<br>        direction: outgoing<br>    ## HARDEN SSHD_CONFIG ##<br>    - name: Copy the hardened SSHD_CONFIG file to the remote server<br>      ansible.builtin.copy:<br>        src: ./Hardened-SSHD-CONFIG  # Path to your local sshd_config<br>        dest: /etc/ssh/sshd_config    # Destination path on the remote system<br>        owner: root<br>        group: root<br>        mode: &#39;0600&#39;                  # Secure permissions<br>      notify:<br>        - Restart sshd<br>     ## REBOOT SERVER ##<br>    - name: Reboot the server<br>      reboot:<br>        reboot_timeout: 600  # Wait up to 600 seconds (10 minutes) for the server to reboot<br>    ## TEST SERVER ACCESS ##<br>    - name: Test connection after reboot<br>      wait_for_connection:<br>        timeout: 300  # Wait up to 300 seconds (5 minutes) for the server to become reachable again<br>  handlers:<br>    - name: Restart sshd<br>      service:<br>        name: &quot;{{ (ansible_facts.services[&#39;sshd&#39;] is defined) | ternary(&#39;sshd&#39;, &#39;ssh&#39;) }}&quot;<br>        state: restarted</pre><p>This is our playbook, it includes various tasks including ensuring the system is Debian / Ubuntu based, creating user accounts, creating ssh directories for each user, copying ssh pub keys over to the remote server for the users, updating packages, installing and updating packages, installing fail2ban and ufw, copying over a hardened jail config file for fail2ban, configuring ufw, copying a hardened sshd file over to the remote server, and rebooting the server.</p><p>Be sure to modify any applicable variables such as usernames, pub key paths, packages to be installed, custom ports, etc.</p><p>Next we will configure our JailConf file that we will copy over to the remote server. It is pretty basic, add any applicable jails etc. Just open the JailConf file that we touched earlier and enter:</p><pre>[DEFAULT]<br># Ban IP for 10 minutes after 5 failed login attempts<br>bantime  = 600<br>findtime = 600<br>maxretry = 5<br># Enable SSH jail<br>[sshd]<br>enabled  = true<br># Jail for a custom port (e.g., port 12345 for a custom service)<br>[customport]<br>enabled  = true<br>port     = 12345<br>filter   = customport<br>logpath  = /var/log/custom_service.log<br>maxretry = 3</pre><p>Now open the Hardened_SSHD_CONFIG file we created and enter:</p><pre>Port &lt;custom_port&gt;<br>PermitRootLogin no<br>MaxAuthTries 3<br>MaxSessions 10<br>PubkeyAuthentication yes<br>PasswordAuthentication no<br>PermitEmptyPasswords no<br>KbdInteractiveAuthentication no<br>UsePAM yes<br>AllowAgentForwarding no<br>AllowTcpForwarding no<br>X11Forwarding no<br>PrintMotd no<br>ClientAliveInterval 600<br>ClientAliveCountMax 3<br>LoginGraceTime 30s<br>UseDNS no<br>MaxStartups 10:30:60<br>AllowUsers &lt;your_username&gt;<br># Optional hardening settings<br>#ChallengeResponseAuthentication no<br>#KerberosAuthentication no<br>#GSSAPIAuthentication no<br>#HostKeyAlgorithms ecdsa-sha2-nistp256,ssh-ed25519,rsa-sha2-512,rsa-sha2-256<br>#Ciphers aes256-gcm@openssh.com,aes256-ctr<br>#MACs hmac-sha2-512,hmac-sha2-256<br>#Banner /etc/issue.net</pre><p>Again be sure to update any settings and moify any variables as needed.</p><p>Once we have created and configured the above files we can run the ansible playbook with:</p><pre>ansible-playbook -i inventory.ini ansibleplay.yaml -K</pre><p>Ansible will ask you for the BECOME password, this is the sudo password for the user on the remote machine that Ansible is using.</p><p><strong>NOTE: </strong>If you change the ssh port in the hardened sshd config file from the current ssh port you are using to connect to the remote server(s), when the server reboots you will loose connection to it. You can reconnect to it either by editing the inventory.ini file and updating the ssh port and re-running the ansible playbook or by simply running ssh -p(new port) username@host_ip.</p><p>That’s a wrap! If you enjoyed it feel free to clap 50x and follow!</p><p><a href="https://medium.com/@fieryphoenixtech/securing-ubuntu-first-10-minutes-on-an-ubuntu-server-1cf71df2674e">Securing Ubuntu: First 10 Minutes on an Ubuntu Server</a></p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09c243c696d8" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/automating-securing-ubuntu-w-ansible-09c243c696d8">Automating Securing Ubuntu w/ Ansible</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up SSH Keys Using Cloud Config]]></title>
            <link>https://systemweakness.com/setting-up-ssh-keys-using-cloud-config-e2284caa0375?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2284caa0375</guid>
            <category><![CDATA[cloud-config]]></category>
            <category><![CDATA[cloud-security]]></category>
            <category><![CDATA[ssh-keys]]></category>
            <category><![CDATA[cloud-init]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Fri, 08 Nov 2024 03:41:01 GMT</pubDate>
            <atom:updated>2024-11-14T14:23:23.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kIArsB-A-P8RzMOrnp15RQ.png" /></figure><ul><li>November 8, 2024</li></ul><p>In this tutorial we’ll cover setting up SSH keys with cloud config. You can find general cloud config usage examples here: <a href="https://cloudinit.readthedocs.io/en/latest/reference/examples.html"><em>https://cloudinit.readthedocs.io/en/latest/reference/examples.html</em></a> Cloud config uses yaml syntax. This tutorial assumes you have generated an ssh private — public key pair. If not you can find how to generate an ssh key pair in the beginning of this tutorial here: <a href="https://systemweakness.com/setup-ssh-keys-a8ca650309b3"><em>https://systemweakness.com/setup-ssh-keys-a8ca650309b3</em></a></p><p><a href="https://systemweakness.com/automate-ssh-hardening-with-ansible-47589f91be1f">Automate SSH Hardening with Ansible</a></p><h3>Setting up SSH Keys Using Cloud Config</h3><p>This command packs the punch:</p><pre>#cloud-config<br>users:<br>  - name: myusername<br>    ssh-authorized-keys:<br>      - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDxC1...your-public-key... user@hostname<br>    sudo: [&#39;ALL=(ALL) NOPASSWD:ALL&#39;]<br>    shell: /bin/bash</pre><ul><li>name: This is the user’s username</li><li>ssh-authorized-keys: This is the ssh public key</li><li>sudo: This specifies which sudo privileges the user has, here hwe have specified ALL. We have also disabled the password when running sudo. Basically the user can run as sudo on all hosts, impersonate all other users and run all commands with sudo.</li><li>shell: This assigns the default shell to the user being created.</li></ul><p>That’s a wrap! If you found this tutorial helpful feel free to clap 50x! Thanks!</p><p><a href="https://systemweakness.com/how-to-setup-2fa-on-an-ssh-server-55e9e8680261">How to Setup 2FA on an SSH Server</a></p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2284caa0375" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/setting-up-ssh-keys-using-cloud-config-e2284caa0375">Setting up SSH Keys Using Cloud Config</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Changing the Root Password in Linux]]></title>
            <link>https://medium.com/@PhoenixIgnitedTech/changing-the-root-password-in-linux-01d35825967d?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/01d35825967d</guid>
            <category><![CDATA[changing-root-password]]></category>
            <category><![CDATA[passwd]]></category>
            <category><![CDATA[linux-root]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[root-password]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Thu, 07 Nov 2024 22:01:40 GMT</pubDate>
            <atom:updated>2024-11-07T22:01:40.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0-Es0Nj_hsB5H5qZFVAZtQ.png" /></figure><ul><li>November 7, 2024</li></ul><p>In case anyone was wondering this is how you change the root password in linux. (If you didn’t know, don’t worry, I wrote this tutorial because someone (guess who) didn’t know 🙂 )</p><p>If you are root:</p><pre>passwd</pre><p>This will prompt you for the new password and then prompt you to confirm it.</p><p>If you aren’t root but have sudo privileges:</p><pre>sudo passwd root</pre><p>This also will prompt you for the new password and then prompt you to confirm it.</p><p>That’s a wrap!</p><p><a href="https://medium.com/@fieryphoenixtech/securing-ubuntu-first-10-minutes-on-an-ubuntu-server-1cf71df2674e">Securing Ubuntu: First 10 Minutes on an Ubuntu Server</a></p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01d35825967d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Images with AI Using Let’s Enhance]]></title>
            <link>https://medium.com/@PhoenixIgnitedTech/enhancing-images-with-ai-using-lets-enhance-64162d266443?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/64162d266443</guid>
            <category><![CDATA[enhance]]></category>
            <category><![CDATA[lets-enhance]]></category>
            <category><![CDATA[image-enhancement]]></category>
            <category><![CDATA[tone-enhancement]]></category>
            <category><![CDATA[color-enhancement]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Thu, 07 Nov 2024 20:03:24 GMT</pubDate>
            <atom:updated>2024-11-07T20:03:24.475Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>November 7, 2024</li></ul><p>In this post I briefly explore using Lets Enhance AI to enhance image quality. I tested Lets Enhance on a few pictures and found the results to be pretty impressive.</p><p>Links: <a href="https://letsenhance.io/"><em>Official Let’s Enhance website</em></a></p><p>If you like this post feel free to clap and follow! :)</p><p><a href="https://medium.com/@fieryphoenixtech/creating-a-simple-custom-ai-assistant-with-openai-chatgpt-3c5ffeb6c74e">Creating a Simple Custom AI Assistant with OpenAI / ChatGPT</a></p><h3>Using Let’s Enhance to Enhance Images</h3><p>Lets Enhance enables users to upload and enhance images in various ways including detail / size, lighting, tone, and color intensity. Let’s Enhance also features an AI image generator and numerous other features.</p><p>Let’s Enhance features an intuitive and user friendly interface. You easily upload your own images as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Al0NzEADF7tBl2fn.png" /></figure><p>You can easily enable various image enhancement settings under the Advanced Options tab, including enhancing tone and color, as well as enhancing image lighting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/0*PCcCRZLjsWx20kxF.png" /></figure><p>I ran image enhancement tests on a few images, below I have included the before / after results as well as details on the enhancement settings used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/0*513HhzyHvtkTvnuK.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/0*HZXr63DMHkgIY-DS.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/0*F6_iGdPCu_uu_2bK.png" /></figure><p>That’s a wrap! I hope you enjoyed it! Follow us for more tech and AI tutorials and if you liked it, feel free to clap X50!</p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64162d266443" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Unity & Godot WebGL Games on ANY Web Host]]></title>
            <link>https://medium.com/@PhoenixIgnitedTech/deploy-unity-godot-webgl-games-on-any-web-host-9e405025e26e?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e405025e26e</guid>
            <category><![CDATA[godot]]></category>
            <category><![CDATA[webgl]]></category>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[htaccess]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Wed, 06 Nov 2024 21:55:12 GMT</pubDate>
            <atom:updated>2024-11-06T21:55:12.187Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>November 6, 2024</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zg4SMHaB2BcOi2PYjIHA1A.png" /></figure><p>In this tutorial we will go through deploying Unity &amp; Godot WebGL games on ANY web host that gives you access to the file system, allows you to upload and edit files in the file system, and allows you to access and edit the .htaccess file (if using apache). This tutorial isn’t designed for non-apache servers. This tutorial should work for most common webhosts such as Hostinger, BlueHost, HostGator, DreamHost, IONOS, etc.</p><p>If you found this tutorial interesting or helpful feel free to clap and follow!</p><h3>Exporting Your Game for WebGL</h3><p>Before uploading your Unity or Godot game to the web, you will first need to export it to webgl. I have linked some great tutorials on how to export your Unity and Godot games to webgl below:</p><p>Godot Export to WebGL Video: <a href="https://www.youtube.com/watch?v=eI0jDvpFh6A"><em>https://www.youtube.com/watch?v=eI0jDvpFh6A</em></a></p><p>Godot Official Docs: <a href="https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_web.html"><em>https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_web.html</em></a></p><p>Unity Export to WebGL: <a href="https://www.youtube.com/watch?v=L82geOfpQCQ"><em>https://www.youtube.com/watch?v=L82geOfpQCQ</em></a></p><p>The above Godot Export to WebGL video also covers uploading your Godot webgl game to Itch.io . Uploading webgl games to most web hosts follows an extremely similar pattern.</p><p><a href="https://systemweakness.com/malicious-captchas-to-malicious-copy-code-buttons-b11305cf0fe6">Malicious Captcha’s to Malicious Copy Code Buttons</a></p><h3>Uploading the Game Files to a Webhost</h3><p>Once you have exported your Unity or Godot game to webgl, login to your web host and navigate to the file manager. Once you are inside your host’s file manager, you will need to upload your exported webgl game. This may take a while, depending on upload speed, file size, etc.</p><p><strong>Note: </strong>This tutorial does not cover domain configuration, just be sure to either upload the files to your website root or sub directory. With webhosts like Hostinger, Bluehost, etc. they usually handle domain configuration for you, you can either purchase a domain or create a subdomain of an existing domain of yours, then just navigate to the site folder for the domain in the file manager and upload your files there.</p><p><a href="https://systemweakness.com/automate-ssh-hardening-with-ansible-47589f91be1f">Automate SSH Hardening with Ansible</a></p><h3>.htaccess Config</h3><p>Once you have the files uploaded we will need to configure the .htaccess file. We will configure the basic security settings and enable caching, the main difference between the htaccess file for unity / godot webgl games and say a WordPress site is that for the webgl games we need to enable the wasm MIME type. Below is a sample .htaccess for your unity / godot webgl game. You can find the same file on github here: <a href="https://github.com/Phoenix-Ignited-Tech/htaccess/blob/main/htaccess%20for%20unity%20-%20godot%20webgl%20games"><em>https://github.com/Phoenix-Ignited-Tech/htaccess/blob/main/htaccess%20for%20unity%20-%20godot%20webgl%20games</em></a></p><pre># Disable directory listing<br>Options -Indexes<br># Disable server signature (hides server version info)<br>ServerSignature Off<br># Allow only GET and POST methods (deny others like PUT, DELETE, etc.)<br>&lt;LimitExcept GET POST&gt;<br>    Order Deny,Allow<br>    Deny from all<br>&lt;/LimitExcept&gt;<br># Protect .htaccess file itself<br>&lt;Files .htaccess&gt;<br>    Order Allow,Deny<br>    Deny from all<br>&lt;/Files&gt;<br># Block access to sensitive files (e.g., config, database, source code, etc.)<br>&lt;FilesMatch &quot;\.(env|json|log|ini|sh|py|sql|bak|psd|htpasswd|htaccess)$&quot;&gt;<br>    Order Allow,Deny<br>    Deny from all<br>&lt;/FilesMatch&gt;<br># Enable caching for static assets (improves load times)<br>&lt;IfModule mod_expires.c&gt;<br>    ExpiresActive On<br>    ExpiresByType image/jpg &quot;access plus 1 year&quot;<br>    ExpiresByType image/jpeg &quot;access plus 1 year&quot;<br>    ExpiresByType image/gif &quot;access plus 1 year&quot;<br>    ExpiresByType image/png &quot;access plus 1 year&quot;<br>    ExpiresByType text/css &quot;access plus 1 month&quot;<br>    ExpiresByType text/javascript &quot;access plus 1 month&quot;<br>    ExpiresByType application/javascript &quot;access plus 1 month&quot;<br>    ExpiresByType application/x-javascript &quot;access plus 1 month&quot;<br>    ExpiresByType application/x-shockwave-flash &quot;access plus 1 month&quot;<br>    ExpiresByType image/x-icon &quot;access plus 1 year&quot;<br>    ExpiresByType image/svg+xml &quot;access plus 1 year&quot;<br>    ExpiresDefault &quot;access plus 1 month&quot;<br>&lt;/IfModule&gt;<br># Enable support for WebAssembly (WASM)<br>&lt;IfModule mod_mime.c&gt;<br>    AddType application/wasm .wasm<br>&lt;/IfModule&gt;<br># Prevent MIME-type sniffing<br>&lt;IfModule mod_headers.c&gt;<br>    Header set X-Content-Type-Options &quot;nosniff&quot;<br>&lt;/IfModule&gt;<br># Cross-site scripting (XSS) protection<br>&lt;IfModule mod_headers.c&gt;<br>    Header set X-XSS-Protection &quot;1; mode=block&quot;<br>&lt;/IfModule&gt;<br># Prevent clickjacking<br>&lt;IfModule mod_headers.c&gt;<br>    Header always append X-Frame-Options &quot;DENY&quot;<br>&lt;/IfModule&gt;<br># Enforce HTTPS (Redirect to HTTPS)<br>&lt;IfModule mod_rewrite.c&gt;<br>    RewriteEngine On<br>    RewriteCond %{HTTPS} !=on<br>    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<br>&lt;/IfModule&gt;<br># Enable Gzip compression for faster page loads<br>&lt;IfModule mod_deflate.c&gt;<br>    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript image/svg+xml<br>&lt;/IfModule&gt;<br># Restrict access to specific IPs (Optional, adjust as necessary)<br>#&lt;RequireAll&gt;<br>#    Require ip 123.123.123.123<br>#    Require ip 234.234.234.234<br>#&lt;/RequireAll&gt;</pre><p><a href="https://medium.com/@fieryphoenixtech/securing-ubuntu-first-10-minutes-on-an-ubuntu-server-1cf71df2674e">Securing Ubuntu: First 10 Minutes on an Ubuntu Server</a></p><h3>Accessing Your Game</h3><p>Once you have uploaded your webgl game files to your webhost and configured your .htaccess file, you can access your webgl game online! If you need a little help on how to access your webgl game I’ve included a little info just on that below:</p><p>For unity games the file structure looks something like:</p><pre>Game/<br>│<br>├── index.html<br>│<br>├── Build/<br>│   ├── file1<br>│   ├── file2<br>│   ├── file3<br>│   └── ...<br>│<br>└── Data/<br>    ├── file1<br>    ├── file2<br>    └── ...</pre><p>And for godot games it looks something like:</p><pre>Game<br>│<br>├── Index.apple-touch-icon.png<br>├── Index.audio.worklet.js<br>├── Index.html<br>├── Index.icon.png<br>├── Index.js<br>├── Index.pck<br>├── Index.png<br>├── Index.wasm<br>└── Index.worker.js</pre><p>The important files here are the Index.html in godot and the index.html file in unity. These are the main web page files. So when accessing your unity webgl game the address url might look like: mysite.com/path/to/myGame/index.html. For godot it might look like: mysite.com/path/to/myGame/Index.html.</p><p>You can change the file names of these files, just remember the address urls will change also, so if you update index.html in unity to myGame.html it would look like: mysite.com/path/to/myGame/myGame.html.</p><p>For example let’s say I uploaded my webgl unity game to mysubdomain.mysite.com/games/ I also called my game directory MySuperCoolGame and I renamed my index.html file to MySuperGame.html. The full address URL to access my game would be: mysubdomain.mysite.com/games/MySuperCoolGame/MySuperGame.html.</p><p>That’s a wrap, I hope you enjoyed it (if you did feel free to clap 50X) :) , and as always let me know your thoughts! Happy Gaming!</p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/"><em>Phoenix Ignited Tech</em></a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/"><em>Linkedin</em></a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/"><em>CC BY 4.0 License</em></a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer"><em>Legal Disclaimer here</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e405025e26e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malicious Captcha’s to Malicious Copy Code Buttons]]></title>
            <link>https://systemweakness.com/malicious-captchas-to-malicious-copy-code-buttons-b11305cf0fe6?source=rss-afeb99182afc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b11305cf0fe6</guid>
            <category><![CDATA[captcha]]></category>
            <category><![CDATA[malicious-captcha]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[system-takeover]]></category>
            <category><![CDATA[malicious]]></category>
            <dc:creator><![CDATA[Phoenix Ignited]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 22:13:05 GMT</pubDate>
            <atom:updated>2024-11-02T06:16:06.473Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*le9tMA9BnefKkIfgq1U57g.png" /></figure><ul><li>October 29, 2024</li><li>If you enjoy this post, feel more than free to clap 50X! Thanks!</li></ul><h3>Malicious Captchas</h3><p>I recently read in a Forbes article (see: <a href="https://www.forbes.com/sites/daveywinder/2024/10/28/new-google-cyber-attack-warning-as-russian-apt28-hackers-strike/?ss=cybersecurity">https://www.forbes.com/sites/daveywinder/2024/10/28/new-google-cyber-attack-warning-as-russian-apt28-hackers-strike/?ss=cybersecurity</a>) that Russian APT 28 aka FancyBear was recently discovered to be deploying a very unique phishing scheme against local Ukrainian government workers. The technique involved copying malware to the user’s clipboard when interacting with a malicious captcha. Specifically when a user clicks the checkbox to prove they are not human, the malware was then copied to their clipboard. The user then had to open a terminal and paste the payload into the terminal and execute it. Overall the method on the outside appears rather clumsy, and would likely fail most of the time. On second thoughts though, this scheme could have far more dangerous and effective implementations.</p><p><a href="https://medium.com/@fieryphoenixtech/securing-ubuntu-first-10-minutes-on-an-ubuntu-server-1cf71df2674e">https://medium.com/@fieryphoenixtech/securing-ubuntu-first-10-minutes-on-an-ubuntu-server-1cf71df2674e</a></p><h3>Malicious Copy Code Buttons</h3><p>Take for instance tech blogs that include terminal commands that users are used to copying and pasting directly into their terminals, and I would guess often hitting enter without taking a second glance. Utilizing the same technique as the captcha phishing scheme, when a user clicks the “Copy Code” button, often found in the upper-right hand corner of code-blocks in tech blogs, the malicious payload would be copied to the user’s clipboard and not the legit and harmless code the user thought they were copying. When the user pastes the command into the terminal and hits enter, the hacker takes control, and from here it is the same story of system compromise etc.</p><p><a href="https://systemweakness.com/automate-ssh-hardening-with-ansible-47589f91be1f">https://systemweakness.com/automate-ssh-hardening-with-ansible-47589f91be1f</a></p><h3>In the End</h3><p>In the end, developers just need to be responsible and watch the code they paste into their terminals and be sure to understand exactly what it does, if you are unsure, you can run it through GPT (although that has its own risks).</p><p>That’s a wrap! I hope you enjoyed it! As always let me know your thoughts!</p><p>Walter Miely is a tech entrepreneur and CEO of <a href="https://phoenixignited.tech/">Phoenix Ignited Tech</a> You can find him on <a href="https://www.linkedin.com/in/walter-m-80577627a/">Linkedin</a>. This material is licensed under the <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0 License</a> LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entire <a href="https://phoenixignited.tech/disclaimer">Legal Disclaimer here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b11305cf0fe6" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/malicious-captchas-to-malicious-copy-code-buttons-b11305cf0fe6">Malicious Captcha’s to Malicious Copy Code Buttons</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>