Jeff Mahoney wrote:
> Richard Creighton wrote:
>> asus:~ # crontab -e -u root
> 
>> 15 11 * * * /root/OFF.sh
>> 11 22 * * * /root/ON.sh
> 
>> :wq
> 
>> asus:~ # cat OFF.sh
>> #!/bin/bash
>> iptables -I OUTPUT -s 0/0  -p tcp --dport 80 -j DROP
> 
>> done manually
>> asus:~ # ./OFF.sh
>> asus:~ # iptables -L -n | less
>> ...
> 
> Might iptables not be in the PATH for the cron job?
> 
Also make sure the OFF.sh and ON.sh are executable: chmod +x

Ken

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to