Sam Stelfox

Thoughts from a software engineer, systems hacker and Linux gubernāre.

Hipache

Installing and setting up hipache. To actually install this I had to open up port tcp/9418 outbound on the server.

yum install git npm -y
npm install hipache -g

Create an initial configuration file:

cat << EOF > /etc/hipache.json
{
  "server": {
    "accessLog": "/var/log/hipache_access.log",
    "port": 80,
    "workers": 5,
    "maxSockets": 100,
    "deadBackendTTL": 30,
    "address": ["0.0.0.0"],
    "address6": ["::"]
  },
  "redisHost": "192.168.122.101",
  "redisPort": 6379,
  "redisDatabase": 0,
  "redisPassword": "password"
}
EOF

Allow redis access to the local redis servers:

-A OUTPUT -m tcp -p tcp --dport 6379 -d 192.168.122.0/24 -j ACCEPT