I use a simple shell script to block IP addresses that just substitutes my input (an IP) for a variable in an iptables, IPFW, etc. (depending on which platform on) command, but they all basically follow this format:
read -p "IP to Block: " ip
ipfw add deny ip from $ip to any
Is it possible to simply execute, sequentially, a group of user-defined variables. For example, three IP addresses, and have the script execute, basically, three times for each of the variables, but limit my input to a single prompt (being asked to input one time)?