#!/bin/sh # # # This script installs IPFilter. IPFilter can be used as a either a network # or host based firewall. The package was taken from the following site: # http://www.maraudingpirates.org/ipfilter/ # The IPFilter configuration is found in /etc/opt/ipf/ipf.conf. # Harry Hoffman # echo "Installing IPFilter" echo "" if check_os_revision 5.7 ; then IPFILTER_DIR="5.7" IPFILTER_VERSION="Sol7" fi if check_os_revision 5.8; then IPFILTER_DIR="5.8" IPFILTER_VERSION="Sol8" fi if check_os_revision 5.9; then IPFILTER_DIR="5.9" IPFILTER_VERSION="Sol9" fi IPFILTER_NAME="ipf-3.4.29" IPFILTER_PKG_SRC="${IPFILTER_NAME}-${IPFILTER_VERSION}-sparc-64bit.pkg" IPFILTER_PKG_DIR="${JASS_ROOT_DIR}/${JASS_PACKAGE_DIR}/${IPFILTER_DIR}" PKGRM_FILE_JASS="/opt/SUNWjass/Packages/noask_pkgrm" IPFILTER_CONF_FILE="${JASS_HOME_DIR}/Files/etc/opt/ipf/ipf.conf" # Install the IPFILTER package onto the client echo "Installing ${IPFILTER_NAME} from ${IPFILTER_PKG_DIR}/${IPFILTER_PKG_SRC}" if [ -f ${IPFILTER_PKG_DIR}/${IPFILTER_PKG_SRC} ]; then add_pkg -d ${IPFILTER_PKG_DIR}/${IPFILTER_PKG_SRC} ipfx add_pkg -d ${IPFILTER_PKG_DIR}/${IPFILTER_PKG_SRC} ipf copy_a_file ${IPFILTER_CONF_FILE} ${JASS_ROOT_DIR}/etc/opt/ipf/ipf.conf else log_notice "Could not find ${IPFILTER_NAME}" echo "" echo "Could not find ${IPFILTER_NAME}" fi