How to use Cloudflare with Pfsense

Recently, I tried to use Cloudflare with Pfsense. I used the IP addresses and Those IP addresses are meant to use DNS to block malware and adult content sites. I ran into an issue getting the content blocking to work and wanted to share.

First, in Pfsense, I went to System > General Setup > DNS Server Settings.

Cloudflare with Pfsense
Pfsense > System > General Setup

Set the DNS servers and add as many as desired. I thought my problem was I needed to check disable DNS forwarder right below the DNS servers within that page of settings.

Cloudflare with Pfsense
Disable DNS Forwarder

However, I was still able to get to the wrong sites so I was not forcing the use of Cloudflares DNS servers.

Second, within Pfsense, I went to Services > DNS Forwarder.

Cloudflare and Pfsense > Services > DNS Forwarder

From there I unchecked the box to enable the DNS forwarder. This fixed my issue. It forced my devices to use the Cloudflare DNS servers and the malware / adult content filtering worked.

It’s a simple solution for using Cloudflare with Pfsense and I figured I would share in case others ran into this in their home labs.

At the time of this writing, Cloudflare DNS servers are free for anyone to use and my Pfsense version is 2.4.5 (community edition).

For more reading from Powersjo, check out my previous post on sconfig here.

If you want more information on those IPs from Cloudflare, you can find info here

Sconfig for Windows

Sconfig is a great program on Windows Server 2016 and newer for administration of a server. It is not the only way to administer items like the network, updates, and domain but it is the easiest in command line. I recommend using sconfig when setting up a new Windows server and especially a Windows Core server.

After typing “sconfig” in a windows command line or PowerShell console this is your main screen.

The first option is used to change the domain or workgroup.

The second option allows you to change the computer name.

The third option is for adding local administrators.

The fourth option is for configuring remote management.

Option five lets you change windows update settings.

The sixth option lets you start to download and install Windows updates.

The seventh option is for setting remote desktop.

The eighth option is for changing network settings.

The ninth option brings up the window for date and time. The tenth option is for telemetry settings, do you want to send data to Microsoft?

The eleventh setting is for Windows activation.

The last four options are self explanatory for maintaining the server. I found this useful for managing Windows servers. The next time you spin up a new Windows server use “sconfig” and save some time.

Here is Microsoft’s article on ‘sconfig’:

Check out my last blog relating to PowerShell here.

Review of Basic Economics Part 2

Basic Economics written by Thomas Sowell

From Basic Economics, the “allocation of scarce resources that have alternate uses”. In part two of this review, I will touch on 3 points out of the last thirteen chapters of the book: resource scarcity, property rights, and trickle down economics. There are a finite amount of resources, such as oil, but we do not know how much oil there is to find.

Resource Scarcity

The cost of finding oil reserves is enormous. An example from the book, which is outdated and does not account for inflation to present day, says that a “major oil exploration venture in the Gulf of Mexico spent … ‘ a total of $200 million’ just to see if there was enough oil to justify continuing further”. If taxes and fees were increased to find the oil, it is less likely that the money would be spent to find that oil. Conversely, if the taxes and fees were lowered, it would be more profitable to search for that oil. In either case, the same amount of oil is in the ground. It is just of difference of money spent and knowledge of the resource.

Property Rights

This is the difference between something being “owned by the people”, and self-ownership. If a farmer owns his property and is paid on the produce that is sold, it’s in the farmers interest to sell a lot of quality produce. That farmer would not ship rotten food next to good food because it would contaminate the whole shipment. However in the Soviet Union since no one owed property or the food produce process, rotten food was often shipped with good food. Everyone was paid the same whether the food was rotten or good. 100% job security with minimal job accountability. When you own your property and products you won’t be working anymore if you ship rotten food.

Trickle Down Economics

Thomas Sowell expressly denounces trickle down economics as a valid economic theory. In order to start a business and investment is made first. Then people are paid to do work. The first people that receive money are the workers. Then after surviving a high rate of failure with new businesses, profits to the business may come back. Generally speaking it takes years to reach a profit on a business. The real benefit from reducing taxes on businesses is that it opens the door to make investments sooner in the future. Workers expect to get paid for every day worked, but profits for companies come years after they are started. Trickle down economics is actually exactly the opposite of the rich get paid then money goes to the workers. In reality, worker gets paid then profits might flow in years later.

I do recommend this book and I hope you will check out part 1 of the review. There is a ton of content and my points about resource scarcity, property rights, and trickle down economics do not even scratch the surface. I hope you will check it out.

You can find the book from his website here:

Review of Basic Economics part 1

Basic Economics written by Thomas Sowell

From Basic Economics, the “allocation of scarce resources that have alternate uses”. This text is longer and packed with more information than I’m used to reading in a book. Therefore, in part one of this review I will talk about some of what I learned from the first eleven chapters of the book. The rest will be in part two of the review. Starting with the definition of economics, “the study of the use of scarce resources which have alternate uses” we can focus on resources.

Live Modestly

There are no infinite resources. The first point I took away for my personal application of the book is to live modestly, or within your means. A great quote from chapter one, “even millionaires can have a hard time making ends meet if the try to live like billionaires.” No matter how much money I make or wealth I have, if I live like I own more I will eventually loose it all. Additionally, I learned about the true meaning of a price.

The price is right

When two people set a price on an object then trade, both are now better off after the transaction. The first person paid a price for the object and the second person go what they wanted in exchange for the item sold. These items take resources to create and exchange for the money that is used. The price that is agreed upon is what benefits both parties. If the price is too low then the seller would not be able to continue to sell because it would not cover the cost of resources. Conversely, if the price is too high the buyer would not be able to purchase the item. This is the key, if the price is set just right the buyer will only obtain what they need and the seller will be able to reproduce the item by consuming more resources and re-invest the leftovers into producing more of something. This increases the oversize size of the pie (economy). Lastly, what about items that are essential to live, such as housing?

Affordable housing

The last point I’ll highlight is the subject of affordable housing, rent control. Thomas Sowell talks about rent control throughout the book. “The idea that rent control protects poor tenants from rich landlords may be politically effective, but often it bears little resemblance to the reality.” If you price control housing, you reverse the incentive for companies to build quality homes and apartments. The price is the same, so there is no reason to build more than the bare minimum. So why not have the government mandate the quality and production of housing?

If the government mandates the price, quality and building of housing, then you have Russia. With government controlled housing, there often is a shortage of resources. This leads to a shortage of housing or a decline in the quality of housing. It is also worth noting that in most affordable housing scenarios, there is a cap above rent control. Luxury housing is where the super rich can get homes built for lots of money. The rich will always be building additional homes somewhere. Those rich could be business owners or politicians. Rent control only hurts the middle class and poor.

There is more to talk about from Basic Economics. I do recommend this book and I hope you will check out part 2 of the review. There is a ton of content and my points: live modestly, the price is right, and affordable housing do not even scratch the surface. I hope you will check it out.

You can find the book from his website here:

TicTacToe Media

Below are some of the TicTacToe media I created for Android app on phones. There is the main menu, single player options and how the game play looks.

After that, we have these screenshots show some different winners and more of the game board. The winner notification is an injected XML file with certain logic based on who wins. Similarly, the cat can also win but is not pictured here.

Additionally, these pictures are a close up of the X and O icons as well as the app picture that would be on your phone. Powersjo made these icons.

Lastly, this bit of media are the GIFs that are used when a round is over and someone wins. The GIFs had frames modified to make sure they are around the same time in their loops. These gifs appear in 6 spots randomly once the round is over.

I hope you liked the insight on the TicTacToe media for the app. You can download the game from the Google Play store here or from the Amazon app store here.

For making the small images and icons I used Pixlr E here.

Check out my other apps FartYou and DownloadCPU.

You can view the privacy policy for the app here.