Capt Caveman - thank you!
Have been experimenting w cron, and although I seem to be able to use it to call an iptables script to lock the machine down, I cant get it to 'open up' again...
Here is the script I'm using for the 'nightshift' lockdown:
#######################
#!/bin/bash
iptables -A INPUT -j DROP
iptables -A OUTPUT -j DROP
#########################
and here is the one that is meant to clear it...
##########################
#!/bin/bash
iptables -D INPUT -j DROP
iptables -D OUTPUT -j DROP
########################
Called with the following lines in /etc/crontab:
# nightshift
45 0 * * * root /bin/nightshift
# firewall off
30 7 * * * root /bin/morning
The first script seems to work... the second doesnt... Both have been chmoded to make them executable.
Seems pretty basic to me... cant see why this is not working! Any ideas??