#!/bin/ash
echo "strating squid"
/etc/init.d/squid start
iptables -t nat -I PREROUTING -i br-lan -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
echo "sleeping for 24h"
sleep $((60*60*24))
echo "stoping squid"
iptables -t nat -D PREROUTING -i br-lan -p tcp -m tcp --dport 80 -j REDIRECT --to-
ports 3128
/etc/init.d/squid stop
crontab script for start and stop service
Możliwość komentowania crontab script for start and stop service została wyłączona