Dangerous Things
Custom gadgetry for the discerning hacker

The Store is now open! Check out the gadgetry »
Like what you're reading?
Share It.

Server Management

Getting HTTPS to work for WordPress when behind a reverse proxy

Getting HTTPS to work for WordPress when behind a reverse proxy

Friday, January 4th, 2013

I recently had an issue with https functionality in WordPress when working behind a reverse proxy like Pound or nginx. I’m running Pound, so the solution for me was to add specific proto headers to the pound.cfg file; ## HTTPS listening ports ListenHTTPS HeadRemove “HTTP_X_FORWARDED_PROTO” HeadRemove “X_FORWARDED_PROTO” AddHeader “HTTP_X_FORWARDED_PROTO: https” AddHeader “X_FORWARDED_PROTO: https” ## HTTP […]

How to fix a bum package or force a re-install on CentOS

How to fix a bum package or force a re-install on CentOS

Sunday, December 2nd, 2012

I recently had a package show up in yum as being installed, but it was not or had been manually removed, so the yum removal process was broken and the ghost package was causing a yum update to fail. The solution was to use rpm to simply and safely remove the entry from the database, […]

Extended error logging for QLogic QL4052C in ESX

Thursday, September 13th, 2012

Every piece of documentation online says that do turn on extended logging for the QLA4xxx iSCSI HBA adapters, you issue this command; esxcfg-module -s extended_error_logging=1 qla4xxx However, after many back-and-forths with QLogic support, it turns out the new driver uses a new name for the extended error logging option; esxcfg-module -s ql4xextended_error_logging=1 qla4xxx Furthermore, to […]

Export KEY and PEM files from PFX

Export KEY and PEM files from PFX

Monday, August 20th, 2012

Nothing new here, just another personal note on how to do something so I don’t forget. Generate a new private key and Certificate Signing Request openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key To export the private key without a passphrase or password openssl pkcs12 -in filename.pfx -nocerts -nodes -out key.pem To Generate […]

Compiling Pound reverse proxy on CentOS 5.x

Sunday, July 22nd, 2012

This post is another “just for me” reminder on how to do something, but it might be useful for some people so I’m making it public. To install a current version of Pound on CentOS 5.x, you need to make a couple tweaks; yum install gcc – If you don’t already have the compiler installed, […]

How to compile and deploy an AnyCPU targeted COM DLL built with VB.NET 2010

How to compile and deploy an AnyCPU targeted COM DLL built with VB.NET 2010

Saturday, April 21st, 2012

In moving servers and workstations to the 64 bit architecture, occasionally you run into ridiculous limitations with components you’ve been used to working with for years… namely, they don’t work. Even Microsoft offers 32-bit only components that fail to load when you try to leverage them through IIS on a 64 bit OS. I just […]

Use MRTG to graph OutBack Power system data from the MATE3

Use MRTG to graph OutBack Power system data from the MATE3

Wednesday, November 2nd, 2011

I’ve been using an OutBack Power Systems FW500 inverter system in my funky datacenter for a couple years now. So far I’ve been impressed, but one of the issues I’ve run into has to do with simply pulling power system data from the MATE via RS232 serial connection. I’ve connected the MATE to a USB […]

Dual ISPs with a netscreen SSG-20

Dual ISPs with a netscreen SSG-20

Monday, July 11th, 2011

I’ve been using Netscreen boxes for years now, but I feel like I’ve never had a good comfortable understanding of them until recently. The problem is, most people (me included) are introduced to “routers” by way of setting up some kind of NAT gateway at home. The gateway interfaces are set up in such a […]

Enom's tech support isn't really support, it's infuriating

Enom’s tech support isn’t really support, it’s infuriating

Friday, January 7th, 2011

My latest (and probably final) interaction with Enom tech support; Dear Jack, I want you to know that I wholeheartedly empathize with the plight of tech support personnel. I used to pull support detail on phones and by email. I know users don’t typically have a grasp on jack shit, and when they do file […]

Granting non-admin account perms to start/stop Windows services

Friday, October 29th, 2010

This is something I learned a long time ago but forgot and actually had to google to find again. Sometimes you want a certain local or domain account to have the right to start or stop a specific service, but not give the account admin privileges or even access to other system services. To do […]

Get Adobe Flash player