Setup a private VPN on OpenWRT 15.05.01 using StrongSwan

This is a guide that I’ve put together using various different articles and tutorials I’ve found and put them all together in one package.

The end result is your very own private VPN server running off of your OpenWRT 15.05.01 router using RSA certificates for authentication. With a few small tweaks you can use username/password log authentication but I preferred to go the certificates route. These steps should work fine with most modern clients – I have personally tested this with Windows 10 (Version 1607 OS Build 14393.10) and on iOS 9.3.4 both with and without certificates and it works great.

Let’s begin!
Continue reading “Setup a private VPN on OpenWRT 15.05.01 using StrongSwan”

Backup and replace PFX certificates in PowerShell

I recently wrote a PowerShell script that will back and replace a certificate as well assign permissions to the private keys.

Basically, what this script does is:
– First checks if the certificate you want to import exists or not
– Perform a back-up of the certificate
– Import the private certificate
– Assign the Everyone group read access on the private key
– Import the public certificate
Continue reading “Backup and replace PFX certificates in PowerShell”

Now serving SSL

I’ve decided to add SSL support to this site on an effort to make the Internet and your browsing experience just a little safer. You should notice that all HTTPS requests are now being served as HTTPS.

Pretty cool!

Automated WordPress backup via Linux Shell

I am using No Support Linux Hosting as my webhost, mostly because it’s cheap ($12/year!) and meets my needs for hosting.

One thing about my host is, well, no support! So if anything goes wrong or I have some technical questions I’m on my own. With that in mind, I wanted to implement a solution that would allow me to copy the WordPress backups generated by Softaculous in case something happens with my host.

The goal: total automation of the backup and email notification once the job was completed, and I think I’ve come up with very nice process to accomplish just that.
Continue reading “Automated WordPress backup via Linux Shell”

Delete files older than X days

Here’s a quick portion of a PowerShell script I used that will delete files older than X dates from the current date.

Simply change $days to the number of days. In this example, all files older than 7 day will be deleted.

Note that this will only delete the files in the given $path. If you wanted to delete all the sub files/folders in $path, add the -Recurse switch: