e5c985fe0018462e66acf359c30f7dcb3478928b
Limitator
Monthly quota for OpenWRT
Install
- Copy
limitatorto/etc/init.d/
scp -O limitator root@ROUTER:/etc/init.d
- Run
chmod +x /etc/init.d/limitator - Copy
config/limitatorto/etc/config/
scp -O config/limitator root@ROUTER:/etc/config
- Edit
/etc/config/limitatorif needed. - Copy
www/*to/www/
scp -rO www root@ROUTER:/
- Run
chmod +x /www/cgi-bin/limitator.json - Run
opkg update && opkg install iptables-mod-extra coreutils-date - Run
opkg install iptables-mod-extra - Run
opkg install coreutils-date - Run
mkdir ~/limitator - Run
crontab -eand copy&paste contents incrontabfile. - Run
/etc/init.d/limitator enable - Reboot.
Additional steps for Backfire 10.03
- 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
- 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)
- Delete /bin/date link
- Cannot scp files, you need to paste but vi messes with idents. Use
:set noaicommand in vi. Other option is using wget from other routers (not an option for limitator.json).
Description
Languages
Shell
55.4%
JavaScript
23.7%
HTML
20.9%