Make subnet configurable

Taken from PR2 by @s0enke, rebased with small mods.
Merge pull request #11 from croomes/fix_redis_host

Make subnet configurable