#!/bin/bash # CHECK-INSTALL function error { echo 'Check for the iptables failed.' exit 1 } which iptables || error