1

Block all incoming connection for 10h

view story
linux-howto

http://www.unix.com – Hi all, I am working on a shell script that blocks all incoming and outgoing connections for 10 hours. After then hours everything will be unblocked again. i am using the ipfw command and put it to sleep the amount of time in seconds. Code: ipfw -q flush ipfw -f add deny tcp from any to any any keep-state setup sleep 36000 ipfw -q flush this works so far, so good. But the problem, I am facing now, is, that when I restart the computer the script will be killed. As I have very low programming skills, I think I need to store a variable to /var/lib and call it when the comput (HowTos)