Sha256: c08d1fcfd3067669495656c78af4290f8ea0a12c88ed9b2da0d2a19c6d9eac75
Contents?: true
Size: 375 Bytes
Versions: 3
Compression:
Stored size: 375 Bytes
Contents
# install if not already present if gearship.install "ufw"; then apt-get -y install ufw fi # configure ufw if ufw status | grep -q 'Status: active'; then echo "ufw already configured, skipping." else # make sure ssh connection is not dropped ufw allow ssh # enable firewall ufw --force enable ufw allow ssh ufw allow http ufw allow https fi
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gearship-0.2.0 | lib/templates/actions/configure_firewall.sh |
gearship-0.1.4 | lib/templates/actions/configure_firewall.sh |
gearship-0.1.3 | lib/templates/actions/configure_firewall.sh |