Added UFW_ALLOW_GW_NET. Changes firewall rules from using GW to the GW network when set to true.
Extended LOCAL_NETWORK to support comma seperated list of /CIDR.
Minor firewall cleanups. Removed specified TCP in range allow. No point, we don't specify tcp/udp anywhere else.
Formatting changes (BASH 3+ style).
Cleaned removed external [ ] calls. Use builtin [[ ]].
Use ${VAR,,} to lowercase isntead of TR.
UFW_EXTRA_PORTS Allows for exposing of ports when binding to the image for the vpn functionality. Accepts comma seperated list.
Changed from /bin/sh to /bin/bash. If you got bash, why use busybox? Plus busybox doesn't allow for advanced string manipulations.
Added python2.7 and pysqlite2. torrentToMedia from the nzbToMedia package needs python2.7.
Attempt to prevent zombie processes when run under systemd
When systemd restarts the transmission-openvpn container, it seems to
leave zombie processes as below.
$ ps uaxww | grep Z
root 1872 0.0 0.0 0 0 ? Z 08:58 0:00 [transmission-da] <defunct>
The zombies do appear to be cleaned up by restarting docker itself, or
by stopping the transmission-openvpn service.
This is an attempt to prevent zombies being spawned via Yelp's
dumb-init, which correctly handles the signals that PID1 gets.
See: https://github.com/Yelp/dumb-init