Implemented iptables conditions of when to block and unblock