Files
limitator/README.md

1.3 KiB

Limitator

Monthly quota for OpenWRT

Install

  1. Copy limitator to /etc/init.d/
scp -O limitator root@ROUTER:/etc/init.d
  1. Run chmod +x /etc/init.d/limitator
  2. Copy config/limitator to /etc/config/
scp -O config/limitator root@ROUTER:/etc/config
  1. Edit /etc/config/limitator if needed.
  2. Copy www/* to /www/
scp -rO www root@ROUTER:/
  1. Run chmod +x /www/cgi-bin/limitator.json
  2. Run opkg update && opkg install iptables-mod-extra coreutils-date
  3. Run opkg install iptables-mod-extra
  4. Run opkg install coreutils-date
  5. Run mkdir ~/limitator
  6. Run crontab -e and copy&paste contents in crontab file.
  7. Run /etc/init.d/limitator enable
  8. 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).