#!/bin/bash # Customized by CCNA HUB - Imad Daou MODPROBE=/sbin/modprobe if [[ $EUID -ne 0 ]] then echo "This script must be run as root. Exiting." exit 1 fi echo -en " Loading IPSET Modules " echo " - Verifying if all IPSET Modules are Loadable " depmod -a echo "----------------------------------------------------------------------" echo -en "ip_set, " modprobe ip_set echo $? echo -en "ip_set_bitmap_ipmac, " modprobe ip_set_bitmap_ipmac echo $? echo -en "ip_set_hash_ip, " modprobe ip_set_hash_ip echo $? echo -en "ip_set_hash_ipportip, " modprobe ip_set_hash_ipportip echo $? echo -en "ip_set_hash_net, " modprobe ip_set_hash_net echo $? echo -en "ip_set_hash_netport, " modprobe ip_set_hash_netport echo $? echo -en "ip_set_bitmap_ip, " modprobe ip_set_bitmap_ip echo $? echo -en "ip_set_bitmap_port, " modprobe ip_set_bitmap_port echo $? echo -en "ip_set_hash_ipport, " modprobe ip_set_hash_ipport echo $? echo -en "ip_set_hash_ipportnet, " modprobe ip_set_hash_ipportnet echo $? echo -en "ip_set_hash_netiface, " modprobe ip_set_hash_netiface echo $? echo -en "ip_set_list_set, " modprobe ip_set_list_set echo $? echo "----------------------------------------------------------------------" echo -e " Done Loading All IPSET Required Modules.\n"