vi rstate.sh
#!/bin/shservice firewall stoprm -rf /var/db/stateful/pf*service firewall start
chmod +x rstate.sh
crontab -e
30 1 * * * /path/to/your/script/rstates.sh