#!/bin/bash cd /usr/local/bin mv list.txt old_list.txt old=$(wc -c < old_list.txt) wget http://voipbl.org/update -O - | sed -e '1d' > list.txt new=$(wc -c < list.txt) if [[ $new > $old ]] then ipset flush BLACKLIST for ip in $(cat list.txt); do ipset -A BLACKLIST $ip;done ipset save > /etc/ipset.conf else echo "BLACKLISTは最新です" fi
相続財産の泥棒の仕組み
コメント