# Limitator ## Monthly quota for OpenWRT ### Install 1) Copy `limitator` to `/etc/init.d/` ``` scp -O limitator root@ROUTER:/etc/init.d ``` 2) Run `chmod +x /etc/init.d/limitator` 3) Copy `config/limitator` to `/etc/config/` ``` scp -O config/limitator root@ROUTER:/etc/config ``` 4) Edit `/etc/config/limitator` if needed. 5) Copy `www/*` to `/www/` ``` scp -rO www root@ROUTER:/ ``` 6) Run `chmod +x /www/cgi-bin/limitator.json` 7) Run `opkg update && opkg install iptables-mod-extra coreutils-date` 8) Run `opkg install iptables-mod-extra` 9) Run `opkg install coreutils-date` 10) Run `mkdir ~/limitator` 11) Run `crontab -e` and copy&paste contents in `crontab` file. 12) Run `/etc/init.d/limitator enable` 13) Reboot. ### Additional steps for Backfire 10.03 1) Change packages source in /etc/opkg.conf putting http://web.archive.org/web/20260213065024id_/ before the URL. For example: http://web.archive.org/web/20260213065024id_/https://archive.openwrt.org/backfire/10.03.1/brcm-2.4/packages 2) Install iptables-mod-ipopt (NO ESTOY SEGURO, SIN PONERLO FUNCIONA Y EN EL WRT54G DABA ERROR EL COMANDO IPTABLES CON EL MODULO QUOTA Y LO TENÍA INSTALADO) 3) Delete /bin/date link 4) Cannot scp files, you need to paste but vi messes with idents. Use `:set noai` command in vi. Other option is using wget from other routers (not an option for limitator.json).