When playing around with network/firewall settings there is a good chance you lock yourself out of your router. Here is an instruction how I make sure to get a working config again if that happens.
1) install openwrt
2) ssh to router
3) cp -r /etc/config /etc/config.orig
4) vim /root/restore.sh
#!/bin/sh
rm -rf /etc/config.modified
mv /etc/config /etc/config.modified
cp -r /etc/config.orig /etc/config
reboot
5) chmod u+x /root/restore.sh
6) vim /etc/crontabs/root
# m h dom mon dow command
59 22 * * * /root/restore.sh
7) /etc/init.d/cron restart
and now you can change stuff in /etc/config and if you break something the system will reset itself to the initial config at 22:59 (10:59pm) of course the router has to be powered on for that to happen.
(Last edited by davewood on 31 Mar 2015, 15:01)